rendered paste bodyzapata.conf:
[channels]
signalling=fxs_ks
context=incoming
echocancel=yes
echocancelwhenbridged=yes
relaxdtmf=yes
rxgain=1.5
txgain=1.5
immediate=no
busydetect=no
callprogress=no
musiconhold=default
usecallerid=yes
;callerid=asreceived
cidsignalling=bell
;cidstart=ring
callwaitingcallerid=yes
callwaiting=yes
threewaycalling=yes
hidecallerid=yes
;I tried chaninging this to hidecallerid=no, but nothing changed.
channel => 1
extensions.conf:
[globals]
[extensions]
;How to dial phones:
exten => 21,1, Dial(SIP/1,20|Tt)
exten => 21,2,Hangup
exten => 22,1, Dial(SIP/22,20|Tt)
exten => 22,2,Hangup
exten => 23,1, Dial(SIP/23,20|Tt)
exten => 23,2,Hangup
[incoming]
; Incoming calls from digium card (channel 1)
exten => s,1,Answer
exten => s,2,DigitTimeout(1)
exten => s,3,ResponseTimeout(20)
;exten => s,4,Background(vm-extension)
exten => s,4,Goto(STUFF,1)
exten => STUFF,1,NoOP(${CALLERID(num)})
exten => STUFF,2,Goto(CID,1)
;Then go to CallerID Menu
;Check/Insert CID info to database
exten => CID,1,agi(processCID.pl|${CALLERID(num)}_${CALLERID(name)})
exten => CID,2,Goto(MENU1,1)
exten => MENU1,1,Background(/astemp/thankyouforcalling)
exten => MENU1,2,Background(/astemp/icanhelpeithyourcall)
exten => MENU1,3,Background(/astemp/press1toreingoffice)
exten => MENU1,4,Background(/astemp/press2toleaveamessage)
exten => MENU1,5,Background(/astemp/press3formoreoptions)
exten => MENU1,6,Background(/astemp/torepeatthechoicespress0)
; hangup if caller does nothing
;
exten => t,1,Hangup
include => callermenu
include => INVALID
[callermenu]
; Dial Sip Phone
; add |Tt for to press # for call transfer
exten => 0,1,goto(incoming,MENU1,1)
exten => 1,1,Set(CALLFILENAME=IN_${CALLERIDNUM}_${TIMESTAMP})
exten => 1,2,Monitor(wav,var/spool/asterisk/monitor/incoming/${CALLFILENAME},m)
exten => 1,3,Dial(SIP/1,20|Tt)
; exten => 1,2,Dial(SIP/22,20|Tt)
exten => 1,4,System(/bin/rm /var/spool/asterisk/monitor/incoming/${CALLFILENAME}.wav)
exten => 1,5,Voicemail(u${EXTEN})
exten => 1,6,Hangup
exten => 1,102,Voicemail(b${EXTEN})
exten => 1,103,Hangup
;Exten 2, goto voicemail at mailbox EXTEN
;exten => 2,1,Voicemail(u${EXTEN})
exten => 2,1,Voicemail(1)
exten => 2,2,Hangup
exten => 3,1,goto(callermenu2,MENU2,1)
; attendant reads back date + time then hangs up
;
; exten => 3,1,DateTime()
; exten => 3,2,Wait(1)
;exten => 3,3,DateTime()
;exten => 3,4,Hangup
; exten => 3,3,goto(incoming,s,4)
; attendant reads back calling phone # then hangs up
;
exten => 4,1,Wait(1)
exten => 4,2,SayDigits(${CALLERID(num)})
exten => 4,3,Wait(1)
;exten => 4,4,SayDigits(${CALLERID(num)})
;exten => 4,5,Hangup
exten => 4,4,goto(incoming,s,4)
exten => 5,1,agi(surf-report.pl);
exten => 5,2,goto(incoming,MENU1,1);
[callermenu2]
exten => MENU2,1,Background(/astemp/ForSurfPress1)
exten => MENU2,2,Background(/astemp/ForTimePress2)
exten => MENU2,3,Background(/astemp/ForInsultPress3)
exten => MENU2,4,Background(/astemp/torepeatthechoicespress0)
exten => 1,1,agi(surf-report.pl);
exten => 1,2,goto(incoming,MENU1,1);
exten => 2,1,DateTime()
exten => 2,2,Wait(1)
exten => 2,3,goto(incoming,MENU1,1)
; exten => 3,1,agi(festival-script.pl|When you were born you were so ugly the doctor slapped your mom.)
exten => 3,1,agi(festival-script.pl|Your momma is so fat I ran out of gas trying to drive around her.)
exten => 3,2,Wait(1)
exten => 3,3,goto(incoming,MENU1,1)
[local-trunks]
;exten => _9NXXXXXX,1,Dial(Zap/1/${EXTEN:1})
;exten => _9NXXXXXX,2,Congestion
exten => _X.,1,Dial(Zap/1/${EXTEN})
exten => _X.,2,Congestion
;exten => 411,1,Dial(Zap/1/411)
;exten => 411,2,Congestion
;Dial 911
exten => 911,1,Dial(Zap/1/911)
exten => 911,2,Congestion
;Record outgoing call
exten => _8.,1,Set(CALLFILENAME=${EXTEN}_${TIMESTAMP})
exten => _8.,2,Monitor(wav,/var/spool/asterisk/monitor/outgoing/${CALLFILENAME},m)
;exten => _8.,1,Monitor(wav,RECORDEDCALL,m)
exten => _8.,3,Dial(Zap/1/${EXTEN:1})
exten => _8.,4,Congestion
exten => _8.,104,Congestion
;Press Zero to check VM, from extension 1 (ZAP Fone 1)
exten => _0,1,VoiceMailMain(1@default)
exten => _0,2,Congestion
;exten => _9NXXNXXXXXX,1,Dial(Zap/1/${EXTEN:1})
;exten => _9NXXNXXXXXX,2,Congestion
[INVALID]
exten => i,1,Answer
exten => i,2,Playback(pbx-invalid)
exten => i,3,Hangup
exten => i,4,NoOP(this was invalid)
[local-access]
;ignorepat => 9 ; Continue dialtone after 9 on zap devices
include => extensions
include => local-trunks ; Access to Local numbers