Sorry -
THIS WORKED (zap2)
-- Executing Macro("SIP/8110-08d63388", "dialout-trunk|2|388110||") in new stack
-- Executing Set("SIP/8110-08d63388", "DIAL_TRUNK=2") in new stack
-- Executing Set("SIP/8110-08d63388", "_NODEST=") in new stack
-- Executing Set("SIP/8110-08d63388", "DIAL_NUMBER=388110") in new stack
-- Executing Set("SIP/8110-08d63388", "ROUTE_PASSWD=") in new stack
-- Executing Set("SIP/8110-08d63388", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing GotoIf("SIP/8110-08d63388", "1?noauth") in new stack
-- Goto (macro-dialout-trunk,s,
-- Executing Set("SIP/8110-08d63388", "GROUP()=OUT_2") in new stack
-- Executing Macro("SIP/8110-08d63388", "user-callerid|SKIPTTL") in new stack
-- Executing NoOp("SIP/8110-08d63388", "user-callerid: device 8110") in new stack
-- Executing GotoIf("SIP/8110-08d63388", "0?report") in new stack
-- Executing GotoIf("SIP/8110-08d63388", "0?start") in new stack
-- Executing Set("SIP/8110-08d63388", "REALCALLERIDNUM=8110") in new stack
-- Executing NoOp("SIP/8110-08d63388", "REALCALLERIDNUM is 8110") in new stack
-- Executing Set("SIP/8110-08d63388", "AMPUSER=8110") in new stack
-- Executing Set("SIP/8110-08d63388", "AMPUSERCIDNAME=Paul Francis") in new stack
-- Executing GotoIf("SIP/8110-08d63388", "0?report") in new stack
-- Executing Set("SIP/8110-08d63388", "CALLERID(all)=Paul Francis <8110>") in new stack
-- Executing Set("SIP/8110-08d63388", "REALCALLERIDNUM=8110") in new stack
-- Executing NoOp("SIP/8110-08d63388", "TTL: ARG1: SKIPTTL") in new stack
-- Executing GotoIf("SIP/8110-08d63388", "1?continue") in new stack
-- Goto (macro-user-callerid,s,21)
-- Executing NoOp("SIP/8110-08d63388", "Using CallerID "Paul Francis" <8110>") in new stack
-- Executing Macro("SIP/8110-08d63388", "record-enable|8110|OUT") in new stack
-- Executing GotoIf("SIP/8110-08d63388", "0?2:4") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing DeadAGI("SIP/8110-08d63388", "recordingcheck|20070829-145945|1188395985.42") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20070829-145945|1188395985.42: Outbound recording not enabled
-- AGI Script recordingcheck completed, returning 0
-- Executing NoOp("SIP/8110-08d63388", "No recording needed") in new stack
-- Executing GotoIf("SIP/8110-08d63388", "0?skipoutcid") in new stack
-- Executing Set("SIP/8110-08d63388", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing Macro("SIP/8110-08d63388", "outbound-callerid|2") in new stack
-- Executing GotoIf("SIP/8110-08d63388", "1?start") in new stack
-- Goto (macro-outbound-callerid,s,3)
-- Executing NoOp("SIP/8110-08d63388", "REALCALLERIDNUM is 8110") in new stack
-- Executing GotoIf("SIP/8110-08d63388", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,9)
-- Executing Set("SIP/8110-08d63388", "USEROUTCID=") in new stack
-- Executing Set("SIP/8110-08d63388", "EMERGENCYCID=") in new stack
-- Executing Set("SIP/8110-08d63388", "TRUNKOUTCID=") in new stack
-- Executing GotoIf("SIP/8110-08d63388", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,16)
-- Executing GotoIf("SIP/8110-08d63388", "1?usercid") in new stack
-- Goto (macro-outbound-callerid,s,1
-- Executing GotoIf("SIP/8110-08d63388", "1?report") in new stack
-- Goto (macro-outbound-callerid,s,22)
-- Executing NoOp("SIP/8110-08d63388", "CallerID set to "Paul Francis" <8110>") in new stack
-- Executing GotoIf("SIP/8110-08d63388", "0?nomax") in new stack
-- Executing GotoIf("SIP/8110-08d63388", "0?chanfull") in new stack
-- Executing DeadAGI("SIP/8110-08d63388", "fixlocalprefix") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
-- AGI Script fixlocalprefix completed, returning 0
-- Executing Set("SIP/8110-08d63388", "OUTNUM=388110") in new stack
-- Executing Set("SIP/8110-08d63388", "custom=ZAP/2") in new stack
-- Executing GotoIf("SIP/8110-08d63388", "0?customtrunk") in new stack
-- Executing Dial("SIP/8110-08d63388", "ZAP/2/388110|300|") in new stack
-- Called 2/388110
-- Zap/2-1 answered SIP/8110-08d63388
-- Started music on hold, class 'default', on Zap/2-1
-- Stopped music on hold on Zap/2-1
-- Hungup 'Zap/2-1'
== Spawn extension (macro-dialout-trunk, s, 20) exited non-zero on 'SIP/8110-08d63388' in macro 'dialout-trunk'
== Spawn extension (macro-dialout-trunk, s, 20) exited non-zero on 'SIP/8110-08d63388'
-- Executing Macro("SIP/8110-08d63388", "hangupcall") in new stack
-- Executing ResetCDR("SIP/8110-08d63388", "w") in new stack
-- Executing NoCDR("SIP/8110-08d63388", "") in new stack
-- Executing GotoIf("SIP/8110-08d63388", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing GotoIf("SIP/8110-08d63388", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing Wait("SIP/8110-08d63388", "5") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/8110-08d63388' in macro 'hangupcall'
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/8110-08d63388'
asterisk1*CLI>
THIS DID NOT WORK (group 0)
-- Executing Macro("SIP/8110-08cf6eb0", "dialout-trunk|1|388110||") in new stack
-- Executing Set("SIP/8110-08cf6eb0", "DIAL_TRUNK=1") in new stack
-- Executing Set("SIP/8110-08cf6eb0", "_NODEST=") in new stack
-- Executing Set("SIP/8110-08cf6eb0", "DIAL_NUMBER=388110") in new stack
-- Executing Set("SIP/8110-08cf6eb0", "ROUTE_PASSWD=") in new stack
-- Executing Set("SIP/8110-08cf6eb0", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing GotoIf("SIP/8110-08cf6eb0", "1?noauth") in new stack
-- Goto (macro-dialout-trunk,s,
-- Executing Set("SIP/8110-08cf6eb0", "GROUP()=OUT_1") in new stack
-- Executing Macro("SIP/8110-08cf6eb0", "user-callerid|SKIPTTL") in new stack
-- Executing NoOp("SIP/8110-08cf6eb0", "user-callerid: device 8110") in new stack
-- Executing GotoIf("SIP/8110-08cf6eb0", "0?report") in new stack
-- Executing GotoIf("SIP/8110-08cf6eb0", "0?start") in new stack
-- Executing Set("SIP/8110-08cf6eb0", "REALCALLERIDNUM=8110") in new stack
-- Executing NoOp("SIP/8110-08cf6eb0", "REALCALLERIDNUM is 8110") in new stack
-- Executing Set("SIP/8110-08cf6eb0", "AMPUSER=8110") in new stack
-- Executing Set("SIP/8110-08cf6eb0", "AMPUSERCIDNAME=Paul Francis") in new stack
-- Executing GotoIf("SIP/8110-08cf6eb0", "0?report") in new stack
-- Executing Set("SIP/8110-08cf6eb0", "CALLERID(all)=Paul Francis <8110>") in new stack
-- Executing Set("SIP/8110-08cf6eb0", "REALCALLERIDNUM=8110") in new stack
-- Executing NoOp("SIP/8110-08cf6eb0", "TTL: ARG1: SKIPTTL") in new stack
-- Executing GotoIf("SIP/8110-08cf6eb0", "1?continue") in new stack
-- Goto (macro-user-callerid,s,21)
-- Executing NoOp("SIP/8110-08cf6eb0", "Using CallerID "Paul Francis" <8110>") in new stack
-- Executing Macro("SIP/8110-08cf6eb0", "record-enable|8110|OUT") in new stack
-- Executing GotoIf("SIP/8110-08cf6eb0", "0?2:4") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing DeadAGI("SIP/8110-08cf6eb0", "recordingcheck|20070829-145347|1188395627.39") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20070829-145347|1188395627.39: Outbound recording not enabled
-- AGI Script recordingcheck completed, returning 0
-- Executing NoOp("SIP/8110-08cf6eb0", "No recording needed") in new stack
-- Executing GotoIf("SIP/8110-08cf6eb0", "0?skipoutcid") in new stack
-- Executing Set("SIP/8110-08cf6eb0", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing Macro("SIP/8110-08cf6eb0", "outbound-callerid|1") in new stack
-- Executing GotoIf("SIP/8110-08cf6eb0", "1?start") in new stack
-- Goto (macro-outbound-callerid,s,3)
-- Executing NoOp("SIP/8110-08cf6eb0", "REALCALLERIDNUM is 8110") in new stack
-- Executing GotoIf("SIP/8110-08cf6eb0", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,9)
-- Executing Set("SIP/8110-08cf6eb0", "USEROUTCID=") in new stack
-- Executing Set("SIP/8110-08cf6eb0", "EMERGENCYCID=") in new stack
-- Executing Set("SIP/8110-08cf6eb0", "TRUNKOUTCID=") in new stack
-- Executing GotoIf("SIP/8110-08cf6eb0", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,16)
-- Executing GotoIf("SIP/8110-08cf6eb0", "1?usercid") in new stack
-- Goto (macro-outbound-callerid,s,1
-- Executing GotoIf("SIP/8110-08cf6eb0", "1?report") in new stack
-- Goto (macro-outbound-callerid,s,22)
-- Executing NoOp("SIP/8110-08cf6eb0", "CallerID set to "Paul Francis" <8110>") in new stack
-- Executing GotoIf("SIP/8110-08cf6eb0", "0?nomax") in new stack
-- Executing GotoIf("SIP/8110-08cf6eb0", "0?chanfull") in new stack
-- Executing DeadAGI("SIP/8110-08cf6eb0", "fixlocalprefix") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
-- AGI Script fixlocalprefix completed, returning 0
-- Executing Set("SIP/8110-08cf6eb0", "OUTNUM=388110") in new stack
-- Executing Set("SIP/8110-08cf6eb0", "custom=ZAP/g0") in new stack
-- Executing GotoIf("SIP/8110-08cf6eb0", "0?customtrunk") in new stack
-- Executing Dial("SIP/8110-08cf6eb0", "ZAP/g0/388110|300|") in new stack
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing Goto("SIP/8110-08cf6eb0", "s-CHANUNAVAIL|1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing NoOp("SIP/8110-08cf6eb0", "Dial failed due to CHANUNAVAIL - failing through to other trunks") in new stack
-- Executing Macro("SIP/8110-08cf6eb0", "outisbusy|") in new stack
-- Executing Playback("SIP/8110-08cf6eb0", "all-circuits-busy-now|noanswer") in new stack
-- Playing 'all-circuits-busy-now' (language 'en')
-- Executing Playback("SIP/8110-08cf6eb0", "pls-try-call-later|noanswer") in new stack
-- Playing 'pls-try-call-later' (language 'en')
== Parsing '/etc/asterisk/manager.conf': Found!
== Parsing '/etc/asterisk/manager_custom.conf': Found
== Manager 'admin' logged on from 127.0.0.1
-- Executing Macro("SIP/8110-08cf6eb0", "hangupcall") in new stack
-- Executing ResetCDR("SIP/8110-08cf6eb0", "w") in new stack
-- Executing NoCDR("SIP/8110-08cf6eb0", "") in new stack
-- Executing GotoIf("SIP/8110-08cf6eb0", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing GotoIf("SIP/8110-08cf6eb0", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing Wait("SIP/8110-08cf6eb0", "5") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/8110-08cf6eb0' in macro 'hangupcall'
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/8110-08cf6eb0' in macro 'outisbusy'
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/8110-08cf6eb0'
-- Got SIP response 400 "Bad Request" back from 172.25.1.57
root@asterisk1 asterisk]# cat zapata.conf
;
; Zapata telephony interface
;
; Configuration file
[trunkgroups]
[channels]
context=from-pstn
signalling=fxs_ks
channel => 1-4
group=0
rxwink=300
; Atlas seems to use long (250ms) winks
;
; Whether or not to do distinctive ring detection on FXO lines
;
;usedistinctiveringdetection=yes
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=800
rxgain=0.0
txgain=0.0
callgroup=1
pickupgroup=1
immediate=no
;faxdetect=both
faxdetect=incoming
;faxdetect=outgoing
;faxdetect=no
;Include genzaptelconf configs
#include zapata-auto.conf
;Include AMP configs
#include zapata_additional.conf
Please let me know if I should post anything else.
Thanks.