[root@asterisk1 asterisk]# cat /etc/zaptel.conf # Autogenerated by /usr/local/sbin/genzaptelconf -- do not hand edit # Zaptel Configuration File # # This file is parsed by the Zaptel Configurator, ztcfg # # It must be in the module loading order # Span 1: WCT1/0 "Digium Wildcard TE110P T1/E1 Card 0" # channel 1, WCT1, unhandled for now # channel 2, WCT1, unhandled for now # channel 3, WCT1, unhandled for now # channel 4, WCT1, unhandled for now # channel 5, WCT1, unhandled for now # channel 6, WCT1, unhandled for now # channel 7, WCT1, unhandled for now # channel 8, WCT1, unhandled for now # channel 9, WCT1, unhandled for now # channel 10, WCT1, unhandled for now # channel 11, WCT1, unhandled for now # channel 12, WCT1, unhandled for now # channel 13, WCT1, unhandled for now # channel 14, WCT1, unhandled for now # channel 15, WCT1, unhandled for now # channel 16, WCT1, unhandled for now # channel 17, WCT1, unhandled for now # channel 18, WCT1, unhandled for now # channel 19, WCT1, unhandled for now # channel 20, WCT1, unhandled for now # channel 21, WCT1, unhandled for now # channel 22, WCT1, unhandled for now # channel 23, WCT1, unhandled for now # channel 24, WCT1, unhandled for now # Span 2: ZTDUMMY/1 "ZTDUMMY/1 1" # Global data span=1,1,0,esf,b8zs bchan=1-23 dchan=24 loadzone = us defaultzone = us ---------------------------------------------------------------------------------------------- [root@asterisk1 asterisk]# cat zapata.conf [channels] language=en context=from-pstn switchtype=national pridialplan=national signalling=pri_cpe faxdetect=incoming usecallerid=yes echocancel=yes callerid=asreceived echocancelwhenbridged=no echotraining=800 group=0 channel=1-23 ;Include genzaptelconf configs #include zapata-auto.conf ;Include AMP configs #include zapata_additional.conf ---------------------------------------------------------------------------------------------- [root@asterisk1 asterisk]# tail -f /var/log/asterisk/full Jul 10 11:34:04 DEBUG[8995] chan_zap.c: Updated conferencing on 1, with 0 conference users Jul 10 11:34:04 DEBUG[8995] chan_zap.c: Set option AUDIO MODE, value: OFF(0) on Zap/1-1 Jul 10 11:34:04 DEBUG[8995] chan_zap.c: disabled echo cancellation on channel 1 Jul 10 11:34:04 VERBOSE[8995] logger.c: -- Hungup 'Zap/1-1' Jul 10 11:34:04 DEBUG[7509] devicestate.c: Changing state for Zap/1 - state 0 (Unknown) Jul 10 11:34:04 DEBUG[8998] app_queue.c: Device 'Zap/1' changed to state '0' (Unknown) Jul 10 11:35:34 DEBUG[8728] manager.c: Manager received command 'Command' Jul 10 11:35:34 DEBUG[8728] manager.c: Manager received command 'Command' Jul 10 11:37:34 DEBUG[8728] manager.c: Manager received command 'Command' Jul 10 11:37:34 DEBUG[8728] manager.c: Manager received command 'Command' -- Executing Macro("SIP/101-f19b", "dialout-trunk|1|7692355||") in new stack -- Executing GotoIf("SIP/101-f19b", "1?3:2") in new stack -- Goto (macro-dialout-trunk,s,3) -- Executing Macro("SIP/101-f19b", "user-callerid") in new stack -- Executing GotoIf("SIP/101-f19b", "0?report") in new stack -- Executing GotoIf("SIP/101-f19b", "0?start") in new stack -- Executing Set("SIP/101-f19b", "REALCALLERIDNUM=101") in new stack -- Executing NoOp("SIP/101-f19b", "REALCALLERIDNUM is 101") in new stack -- Executing Set("SIP/101-f19b", "AMPUSER=101") in new stack -- Executing Set("SIP/101-f19b", "AMPUSERCIDNAME=AUS - Nathaniel R. Ben-Attar") in new stack -- Executing GotoIf("SIP/101-f19b", "0?report") in new stack -- Executing Set("SIP/101-f19b", "CALLERID(all)=AUS - Nathaniel R. Ben-Attar <101>") in new stack -- Executing NoOp("SIP/101-f19b", "Using CallerID "AUS - Nathaniel R. Ben-Attar" <101>") in new stack -- Executing Macro("SIP/101-f19b", "record-enable|101|OUT") in new stack -- Executing GotoIf("SIP/101-f19b", "0 > 0?2:4") in new stack -- Goto (macro-record-enable,s,4) -- Executing AGI("SIP/101-f19b", "recordingcheck|20060710-113849|1152549529.11") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck recordingcheck|20060710-113849|1152549529.11: Outbound recording not enabled -- AGI Script recordingcheck completed, returning 0 -- Executing NoOp("SIP/101-f19b", "No recording needed") in new stack -- Executing Macro("SIP/101-f19b", "outbound-callerid|1") in new stack -- Executing GotoIf("SIP/101-f19b", "1?start") in new stack -- Goto (macro-outbound-callerid,s,3) -- Executing NoOp("SIP/101-f19b", "REALCALLERIDNUM is 101") in new stack -- Executing Set("SIP/101-f19b", "USEROUTCID=") in new stack -- Executing Set("SIP/101-f19b", "EMERGENCYCID=") in new stack -- Executing Set("SIP/101-f19b", "TRUNKOUTCID=") in new stack -- Executing GotoIf("SIP/101-f19b", "1?trunkcid") in new stack -- Goto (macro-outbound-callerid,s,11) -- Executing GotoIf("SIP/101-f19b", "1?usercid") in new stack -- Goto (macro-outbound-callerid,s,13) -- Executing GotoIf("SIP/101-f19b", "1?report") in new stack -- Goto (macro-outbound-callerid,s,15) -- Executing NoOp("SIP/101-f19b", "CallerID set to "AUS - Nathaniel R. Ben-Attar" <101>") in new stack -- Executing Set("SIP/101-f19b", "GROUP()=OUT_1") in new stack -- Executing GotoIf("SIP/101-f19b", "1?108") in new stack -- Goto (macro-dialout-trunk,s,108) -- Executing NoOp("SIP/101-f19b", "max channels used up") in new stack -- Executing Macro("SIP/101-f19b", "outisbusy|") in new stack -- Executing Playback("SIP/101-f19b", "all-circuits-busy-now") in new stack -- Playing 'all-circuits-busy-now' (language 'en') Jul 10 11:38:49 DEBUG[7521] chan_sip.c: Allocating new SIP dialog for abb02b0a-55aa5bf4-85212467@10.50.230.5 - INVITE (With RTP) Jul 10 11:38:49 DEBUG[7521] chan_sip.c: **** Received INVITE (5) - Command in SIP INVITE Jul 10 11:38:49 DEBUG[7521] chan_sip.c: * SIP extension value: 2 for call abb02b0a-55aa5bf4-85212467@10.50.230.5 Jul 10 11:38:49 DEBUG[7521] chan_sip.c: Setting NAT on RTP to 0 Jul 10 11:38:49 DEBUG[7521] chan_sip.c: **** Received ACK (6) - Command in SIP ACK Jul 10 11:38:49 DEBUG[7521] chan_sip.c: Stopping retransmission on 'abb02b0a-55aa5bf4-85212467@10.50.230.5' of Response 1: Match Found Jul 10 11:38:49 DEBUG[7521] chan_sip.c: **** Received INVITE (5) - Command in SIP INVITE Jul 10 11:38:49 DEBUG[7521] chan_sip.c: Setting NAT on RTP to 0 Jul 10 11:38:49 DEBUG[7521] chan_sip.c: Checking SIP call limits for device 101 Jul 10 11:38:49 DEBUG[7521] chan_sip.c: Updating call counter for incoming call Jul 10 11:38:49 DEBUG[7521] chan_sip.c: build_route: Contact hop: Jul 10 11:38:49 DEBUG[7509] chan_sip.c: Checking device state for peer 101 Jul 10 11:38:49 DEBUG[9266] pbx.c: Launching 'Macro' Jul 10 11:38:49 DEBUG[7509] devicestate.c: Changing state for SIP/101 - state 2 (In use) Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Executing Macro("SIP/101-f19b", "dialout-trunk|1|7692355||") in new stack Jul 10 11:38:49 DEBUG[7509] chan_sip.c: Checking device state for peer 101 Jul 10 11:38:49 DEBUG[9266] pbx.c: Expression result is '1' Jul 10 11:38:49 DEBUG[9266] pbx.c: Launching 'GotoIf' Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Executing GotoIf("SIP/101-f19b", "1?3:2") in new stack Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Goto (macro-dialout-trunk,s,3) Jul 10 11:38:49 DEBUG[9266] pbx.c: Launching 'Macro' Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Executing Macro("SIP/101-f19b", "user-callerid") in new stack Jul 10 11:38:49 DEBUG[9266] pbx.c: Expression result is '0' Jul 10 11:38:49 DEBUG[9266] pbx.c: Launching 'GotoIf' Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Executing GotoIf("SIP/101-f19b", "0?report") in new stack Jul 10 11:38:49 DEBUG[9266] pbx.c: Not taking any branch Jul 10 11:38:49 DEBUG[9266] pbx.c: Expression result is '0' Jul 10 11:38:49 DEBUG[9266] pbx.c: Launching 'GotoIf' Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Executing GotoIf("SIP/101-f19b", "0?start") in new stack Jul 10 11:38:49 DEBUG[9266] pbx.c: Not taking any branch Jul 10 11:38:49 DEBUG[9266] pbx.c: Function result is '101' Jul 10 11:38:49 DEBUG[9266] pbx.c: Launching 'Set' Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Executing Set("SIP/101-f19b", "REALCALLERIDNUM=101") in new stack Jul 10 11:38:49 DEBUG[9266] pbx.c: Launching 'NoOp' Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Executing NoOp("SIP/101-f19b", "REALCALLERIDNUM is 101") in new stack Jul 10 11:38:49 DEBUG[9266] pbx.c: Function result is '101' Jul 10 11:38:49 DEBUG[9266] pbx.c: Launching 'Set' Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Executing Set("SIP/101-f19b", "AMPUSER=101") in new stack Jul 10 11:38:49 DEBUG[9266] pbx.c: Function result is 'AUS - Nathaniel R. Ben-Attar' Jul 10 11:38:49 DEBUG[9266] pbx.c: Launching 'Set' Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Executing Set("SIP/101-f19b", "AMPUSERCIDNAME=AUS - Nathaniel R. Ben-Attar") in new stack Jul 10 11:38:49 DEBUG[9266] pbx.c: Expression result is '0' Jul 10 11:38:49 DEBUG[9266] pbx.c: Launching 'GotoIf' Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Executing GotoIf("SIP/101-f19b", "0?report") in new stack Jul 10 11:38:49 DEBUG[9266] pbx.c: Not taking any branch Jul 10 11:38:49 DEBUG[9266] pbx.c: Launching 'Set' Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Executing Set("SIP/101-f19b", "CALLERID(all)=AUS - Nathaniel R. Ben-Attar <101>") in new stack Jul 10 11:38:49 DEBUG[9266] pbx.c: Function result is '"AUS - Nathaniel R. Ben-Attar" <101>' Jul 10 11:38:49 DEBUG[9266] pbx.c: Launching 'NoOp' Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Executing NoOp("SIP/101-f19b", "Using CallerID "AUS - Nathaniel R. Ben-Attar" <101>") in new stack Jul 10 11:38:49 DEBUG[9266] pbx.c: Function result is '101' Jul 10 11:38:49 DEBUG[9266] pbx.c: Launching 'Macro' Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Executing Macro("SIP/101-f19b", "record-enable|101|OUT") in new stack Jul 10 11:38:49 DEBUG[9266] pbx.c: Function result is '0' Jul 10 11:38:49 DEBUG[9266] pbx.c: Launching 'GotoIf' Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Executing GotoIf("SIP/101-f19b", "0 > 0?2:4") in new stack Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Goto (macro-record-enable,s,4) Jul 10 11:38:49 DEBUG[9266] pbx.c: Launching 'AGI' Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Executing AGI("SIP/101-f19b", "recordingcheck|20060710-113849|1152549529.11") in new stack Jul 10 11:38:49 DEBUG[9267] app_queue.c: Device 'SIP/101' changed to state '2' (In use) Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck Jul 10 11:38:49 VERBOSE[9266] logger.c: recordingcheck|20060710-113849|1152549529.11: Outbound recording not enabled Jul 10 11:38:49 VERBOSE[9266] logger.c: -- AGI Script recordingcheck completed, returning 0 Jul 10 11:38:49 DEBUG[9266] pbx.c: Launching 'NoOp' Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Executing NoOp("SIP/101-f19b", "No recording needed") in new stack Jul 10 11:38:49 DEBUG[9266] pbx.c: Launching 'Macro' Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Executing Macro("SIP/101-f19b", "outbound-callerid|1") in new stack Jul 10 11:38:49 DEBUG[9266] pbx.c: Expression result is '1' Jul 10 11:38:49 DEBUG[9266] pbx.c: Launching 'GotoIf' Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Executing GotoIf("SIP/101-f19b", "1?start") in new stack Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Goto (macro-outbound-callerid,s,3) Jul 10 11:38:49 DEBUG[9266] pbx.c: Launching 'NoOp' Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Executing NoOp("SIP/101-f19b", "REALCALLERIDNUM is 101") in new stack Jul 10 11:38:49 DEBUG[9266] pbx.c: Function result is '' Jul 10 11:38:49 DEBUG[9266] pbx.c: Launching 'Set' Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Executing Set("SIP/101-f19b", "USEROUTCID=") in new stack Jul 10 11:38:49 DEBUG[9266] db.c: Unable to find key '101/emergency_cid' in family 'DEVICE' Jul 10 11:38:49 DEBUG[9266] func_db.c: DB: DEVICE/101/emergency_cid not found in database. Jul 10 11:38:49 DEBUG[9266] pbx.c: Function result is '' Jul 10 11:38:49 DEBUG[9266] pbx.c: Launching 'Set' Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Executing Set("SIP/101-f19b", "EMERGENCYCID=") in new stack Jul 10 11:38:49 DEBUG[9266] pbx.c: Launching 'Set' Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Executing Set("SIP/101-f19b", "TRUNKOUTCID=") in new stack Jul 10 11:38:49 DEBUG[9266] pbx.c: Expression result is '1' Jul 10 11:38:49 DEBUG[9266] pbx.c: Launching 'GotoIf' Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Executing GotoIf("SIP/101-f19b", "1?trunkcid") in new stack Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Goto (macro-outbound-callerid,s,11) Jul 10 11:38:49 DEBUG[9266] pbx.c: Expression result is '1' Jul 10 11:38:49 DEBUG[9266] pbx.c: Launching 'GotoIf' Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Executing GotoIf("SIP/101-f19b", "1?usercid") in new stack Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Goto (macro-outbound-callerid,s,13) Jul 10 11:38:49 DEBUG[9266] pbx.c: Expression result is '1' Jul 10 11:38:49 DEBUG[9266] pbx.c: Launching 'GotoIf' Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Executing GotoIf("SIP/101-f19b", "1?report") in new stack Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Goto (macro-outbound-callerid,s,15) Jul 10 11:38:49 DEBUG[9266] pbx.c: Function result is '"AUS - Nathaniel R. Ben-Attar" <101>' Jul 10 11:38:49 DEBUG[9266] pbx.c: Launching 'NoOp' Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Executing NoOp("SIP/101-f19b", "CallerID set to "AUS - Nathaniel R. Ben-Attar" <101>") in new stack Jul 10 11:38:49 DEBUG[9266] pbx.c: Launching 'Set' Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Executing Set("SIP/101-f19b", "GROUP()=OUT_1") in new stack Jul 10 11:38:49 DEBUG[9266] pbx.c: Function result is '1' Jul 10 11:38:49 DEBUG[9266] pbx.c: Expression result is '1' Jul 10 11:38:49 DEBUG[9266] pbx.c: Launching 'GotoIf' Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Executing GotoIf("SIP/101-f19b", "1?108") in new stack Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Goto (macro-dialout-trunk,s,108) Jul 10 11:38:49 DEBUG[9266] pbx.c: Launching 'NoOp' Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Executing NoOp("SIP/101-f19b", "max channels used up") in new stack Jul 10 11:38:49 DEBUG[9266] pbx.c: Launching 'Macro' Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Executing Macro("SIP/101-f19b", "outisbusy|") in new stack Jul 10 11:38:49 DEBUG[9266] pbx.c: Launching 'Playback' Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Executing Playback("SIP/101-f19b", "all-circuits-busy-now") in new stack Jul 10 11:38:49 DEBUG[9266] chan_sip.c: sip_answer(SIP/101-f19b) Jul 10 11:38:49 DEBUG[7509] chan_sip.c: Checking device state for peer 101 Jul 10 11:38:49 DEBUG[7509] channel.c: Avoiding initial deadlock for 'SIP/101-f19b' Jul 10 11:38:49 DEBUG[9266] channel.c: Set channel SIP/101-f19b to write format gsm Jul 10 11:38:49 DEBUG[9266] rtp.c: Ooh, format changed from unknown to ulaw Jul 10 11:38:49 DEBUG[9266] channel.c: Scheduling timer at 160 sample intervals Jul 10 11:38:49 VERBOSE[9266] logger.c: -- Playing 'all-circuits-busy-now' (language 'en') Jul 10 11:38:49 DEBUG[7509] devicestate.c: Changing state for SIP/101 - state 2 (In use) Jul 10 11:38:49 DEBUG[7509] chan_sip.c: Checking device state for peer 101 Jul 10 11:38:49 DEBUG[9269] app_queue.c: Device 'SIP/101' changed to state '2' (In use) Jul 10 11:38:49 DEBUG[7521] chan_sip.c: **** Received ACK (6) - Command in SIP ACK Jul 10 11:38:49 DEBUG[7521] chan_sip.c: Stopping retransmission on 'abb02b0a-55aa5bf4-85212467@10.50.230.5' of Response 2: Match Found Jul 10 11:38:49 DEBUG[9266] rtp.c: Got RTCP report of 112 bytes -- Executing Playback("SIP/101-f19b", "pls-try-call-later") in new stack -- Playing 'pls-try-call-later' (language 'en') Jul 10 11:38:51 DEBUG[9266] channel.c: Scheduling timer at 0 sample intervals Jul 10 11:38:51 DEBUG[9266] channel.c: Scheduling timer at 0 sample intervals Jul 10 11:38:51 DEBUG[9266] channel.c: Set channel SIP/101-f19b to write format ulaw Jul 10 11:38:51 DEBUG[9266] pbx.c: Launching 'Playback' Jul 10 11:38:51 VERBOSE[9266] logger.c: -- Executing Playback("SIP/101-f19b", "pls-try-call-later") in new stack Jul 10 11:38:51 DEBUG[9266] channel.c: Set channel SIP/101-f19b to write format gsm Jul 10 11:38:51 DEBUG[9266] channel.c: Scheduling timer at 160 sample intervals Jul 10 11:38:51 VERBOSE[9266] logger.c: -- Playing 'pls-try-call-later' (language 'en') Jul 10 11:38:52 DEBUG[7521] chan_sip.c: **** Received BYE (8) - Command in SIP BYE Jul 10 11:38:52 DEBUG[9266] channel.c: Scheduling timer at 0 sample intervals Jul 10 11:38:52 DEBUG[9266] channel.c: Set channel SIP/101-f19b to write format ulaw Jul 10 11:38:52 DEBUG[9266] app_macro.c: Spawn extension (macro-outisbusy,s,2) exited non-zero on 'SIP/101-f19b' in macro 'outisbusy' Jul 10 11:38:52 DEBUG[9266] pbx.c: Spawn extension (macro-outisbusy,s,2) exited non-zero on 'SIP/101-f19b' Jul 10 11:38:52 DEBUG[9266] cdr_addon_mysql.c: cdr_mysql: inserting a CDR record. Jul 10 11:38:52 DEBUG[9266] cdr_addon_mysql.c: cdr_mysql: SQL command as follows: INSERT INTO cdr (calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode,uniqueid) VALUES ('2006-07-10 11:38:49','\"AUS - Nathaniel R. Ben-Attar\" <101>','101','97692355','from-internal', 'SIP/101-f19b','','Playback','pls-try-call-later',3,3,'ANSWERED',3,'','1152549529.11') Jul 10 11:38:52 DEBUG[9266] channel.c: Hanging up channel 'SIP/101-f19b' Jul 10 11:38:52 DEBUG[9266] chan_sip.c: Hangup call SIP/101-f19b, SIP callid abb02b0a-55aa5bf4-85212467@10.50.230.5) Jul 10 11:38:52 DEBUG[9266] chan_sip.c: update_call_counter(101) - decrement call limit counter Jul 10 11:38:52 DEBUG[9266] chan_sip.c: Updating call counter for incoming call Jul 10 11:38:52 DEBUG[7509] chan_sip.c: Checking device state for peer 101 Jul 10 11:38:52 DEBUG[7509] devicestate.c: Changing state for SIP/101 - state 1 (Not in use) Jul 10 11:38:52 DEBUG[7509] chan_sip.c: Checking device state for peer 101 Jul 10 11:38:52 DEBUG[9270] app_queue.c: Device 'SIP/101' changed to state '1' (Not in use)