-- Attempting call on Local/917009131384@iaxtel for test@test:1 (Retry 1) -- Executing Dial("Local/917009131384@iaxtel-a528,2", "IAX2/kputland@iaxtel-out/17009131384@iaxtel") in new stack -- Called kputland@iaxtel-out/17009131384@iaxtel NOTICE[262161]: File channel.c, Line 1552 (__ast_request_and_dial): Don't know what to do with control frame -1 -- Call accepted by 69.73.19.178 (format GSM) -- Format for call is GSM -- IAX2[iaxtel-out]/5 stopped sounds NOTICE[262161]: File channel.c, Line 1552 (__ast_request_and_dial): Don't know what to do with control frame -1 -- Accepting AUTHENTICATED call from 69.73.19.178, requested format = 2, actual format = 2 -- Executing Dial("IAX2[iaxtel@iaxtel-out]/6", "SIP/1001&MGCP/aaln/4@dlinkgw2|15|tT") in new stack DEBUG[294931]: File app_dial.c, Line 387 (dial_exec): SIMPLE DIAL (NO URL) DEBUG[294931]: File chan_sip.c, Line 676 (create_addr): Setting NAT on RTP to 0 DEBUG[294931]: File chan_sip.c, Line 877 (sip_call): Outgoing Call for 1001 DEBUG[294931]: File chan_sip.c, Line 1002 (find_user): Call from user '1001' is 1 out of 0 -- Called 1001 DEBUG[294931]: File chan_mgcp.c, Line 1082 (find_subchannel): Coundn't determine subchannel, assuming current master aaln/4@dlinkgw2-1 -- MGCP mgcp_request(aaln/4@dlinkgw2) -- MGCP cw: 0, dnd: 0, so: 0, sno: 0 -- MGCP mgcp_new(MGCP/aaln/4@dlinkgw2-1) created in state: Down DEBUG[294931]: File chan_mgcp.c, Line 438 (mgcp_postrequest): Deferring transmission of transaction 6 -- Called aaln/4@dlinkgw2 -- MGCP/aaln/4@dlinkgw2-1 is ringing -- IAX2[iaxtel-out]/5 is ringing DEBUG[114696]: File chan_sip.c, Line 587 (__sip_semi_ack): (Provisional) Stopping retransmission (but retaining packet) on '75f7a9e6396b910722cb84e576cd5d88@172.17.0.240' Request 102: Found DEBUG[131081]: File chan_mgcp.c, Line 1698 (handle_response): Got response back on tansaction 5 DEBUG[131081]: File chan_mgcp.c, Line 1701 (handle_response): Removing message from aaln/4@dlinkgw2-1 tansaction 5 DEBUG[131081]: File chan_mgcp.c, Line 1698 (handle_response): Got response back on tansaction 6 DEBUG[131081]: File chan_mgcp.c, Line 1701 (handle_response): Removing message from aaln/4@dlinkgw2-1 tansaction 6 DEBUG[114696]: File chan_sip.c, Line 587 (__sip_semi_ack): (Provisional) Stopping retransmission (but retaining packet) on '75f7a9e6396b910722cb84e576cd5d88@172.17.0.240' Request 102: Found -- SIP/1001-232e is ringing DEBUG[114696]: File chan_sip.c, Line 549 (__sip_ack): Acked pending invite 102 DEBUG[114696]: File chan_sip.c, Line 567 (__sip_ack): Stopping retransmission on '75f7a9e6396b910722cb84e576cd5d88@172.17.0.240' of Request 102: Found DEBUG[114696]: File chan_sip.c, Line 3417 (build_route): build_route: Contact hop: -- SIP/1001-232e answered IAX2[iaxtel@iaxtel-out]/6 DEBUG[294931]: File chan_mgcp.c, Line 438 (mgcp_postrequest): Deferring transmission of transaction 8 DEBUG[294931]: File chan_mgcp.c, Line 438 (mgcp_postrequest): Deferring transmission of transaction 9 DEBUG[294931]: File channel.c, Line 2268 (ast_channel_bridge): Got a FRAME_CONTROL frame on channel SIP/1001-232e DEBUG[294931]: File channel.c, Line 2328 (ast_channel_bridge): Bridge stops bridging channels IAX2[iaxtel@iaxtel-out]/6 and SIP/1001-232e DEBUG[294931]: File res_parking.c, Line 393 (ast_bridge_call): Read from SIP/1001-232e (4,4) DEBUG[131081]: File chan_mgcp.c, Line 1698 (handle_response): Got response back on tansaction 7 DEBUG[131081]: File chan_mgcp.c, Line 1701 (handle_response): Removing message from aaln/4@dlinkgw2-1 tansaction 7 DEBUG[131081]: File chan_mgcp.c, Line 1698 (handle_response): Got response back on tansaction 8 DEBUG[131081]: File chan_mgcp.c, Line 1701 (handle_response): Removing message from aaln/4@dlinkgw2-1 tansaction 8 -- IAX2[iaxtel-out]/5 stopped sounds NOTICE[262161]: File channel.c, Line 1552 (__ast_request_and_dial): Don't know what to do with control frame -1 DEBUG[131081]: File chan_mgcp.c, Line 1698 (handle_response): Got response back on tansaction 9 DEBUG[131081]: File chan_mgcp.c, Line 1701 (handle_response): Removing message from aaln/4@dlinkgw2-1 tansaction 9 -- IAX2[iaxtel-out]/5 stopped sounds NOTICE[262161]: File channel.c, Line 1552 (__ast_request_and_dial): Don't know what to do with control frame -1 -- IAX2[iaxtel-out]/5 answered Local/917009131384@iaxtel-a528,2 NOTICE[262161]: File channel.c, Line 1552 (__ast_request_and_dial): Don't know what to do with control frame -1 -- Executing Answer("Local/917009131384@iaxtel-a528,1", "") in new stack -- Executing SetAccount("Local/917009131384@iaxtel-a528,1", "TEST") in new stack -- Executing NoOp("Local/917009131384@iaxtel-a528,1", "VALIDATE AVAILABILITY OF VARIABLES IN THE EXTENSION") in new stack -- Executing NoOp("Local/917009131384@iaxtel-a528,1", "SPOOLJUNK: This is set in the Spool File") in new stack -- Executing NoOp("Local/917009131384@iaxtel-a528,1", "XPHONE: 3039131384") in new stack -- Executing AGI("Local/917009131384@iaxtel-a528,1", "test.py") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/test.py ARGS: ['/var/lib/asterisk/agi-bin/test.py', ''] ENV LINE: agi_request: test.py ENV LINE: agi_channel: Local/917009131384@iaxtel-a528,1 ENV LINE: agi_language: en ENV LINE: agi_type: Local ENV LINE: agi_uniqueid: 1072131715.0 ENV LINE: agi_callerid: unknown ENV LINE: agi_dnid: unknown ENV LINE: agi_rdnis: unknown ENV LINE: agi_context: test ENV LINE: agi_extension: test ENV LINE: agi_priority: 6 ENV LINE: agi_enhanced: 0.0 ENV LINE: agi_accountcode: TEST ENV LINE: class AGI: self.env = {'agi_accountcode': 'TEST', 'agi_callerid': 'unknown', 'agi_channel': 'Local/917009131384@iaxtel-a528,1', 'agi_context': 'test', 'agi_dnid': 'unknown', 'agi_enhanced': '0.0', 'agi_extension': 'test', 'agi_language': 'en', 'agi_priority': '6', 'agi_rdnis': 'unknown', 'agi_request': 'test.py', 'agi_type': 'Local', 'agi_uniqueid': '1072131715.0'} TEST - HERE'S MY ENV: {'agi_type': 'Local', 'agi_channel': 'Local/917009131384@iaxtel-a528,1', 'agi_priority': '6', 'agi_rdnis': 'unknown', 'agi_context': 'test', 'agi_callerid': 'unknown', 'agi_uniqueid': '1072131715.0', 'agi_language': 'en', 'agi_request': 'test.py', 'agi_dnid': 'unknown', 'agi_extension': 'test', 'agi_accountcode': 'TEST', 'agi_enhanced': '0.0'} TEST - TRY TO GET VARIABLES TEST - USING: get variable JUNK COMMAND: get variable JUNK RESULT_LINE: 200 result=0 RESULT_DICT: {'result': ('0', '')} TEST - ERROR look at agilib output for clues TEST - USING: get variable $JUNK COMMAND: get variable $JUNK RESULT_LINE: 200 result=0 RESULT_DICT: {'result': ('0', '')} TEST - ERROR look at agilib output for clues TEST - USING: get variable ${JUNK} COMMAND: get variable ${JUNK} RESULT_LINE: 200 result=0 RESULT_DICT: {'result': ('0', '')} TEST - ERROR look at agilib output for clues TEST - USING: get variable SPOOLJUNK COMMAND: get variable SPOOLJUNK RESULT_LINE: 200 result=1 (This is set in the Spool File) RESULT_DICT: {'result': ('1', 'This is set in the Spool File')} TEST - GOT THIS FOR JUNK: This is set in the Spool File TEST - USING: get variable $SPOOLJUNK COMMAND: get variable $SPOOLJUNK RESULT_LINE: 200 result=0 RESULT_DICT: {'result': ('0', '')} TEST - ERROR look at agilib output for clues TEST - USING: get variable ${SPOOLJUNK} COMMAND: get variable ${SPOOLJUNK} RESULT_LINE: 200 result=0 RESULT_DICT: {'result': ('0', '')} TEST - ERROR look at agilib output for clues TEST - USING: get variable XPHONE COMMAND: get variable XPHONE RESULT_LINE: 200 result=1 (3039131384) RESULT_DICT: {'result': ('1', '3039131384')} TEST - GOT THIS FOR JUNK: 3039131384 TEST - USING: get variable $XPHONE COMMAND: get variable $XPHONE RESULT_LINE: 200 result=0 RESULT_DICT: {'result': ('0', '')} TEST - ERROR look at agilib output for clues TEST - USING: get variable ${XPHONE} COMMAND: get variable ${XPHONE} RESULT_LINE: 200 result=0 RESULT_DICT: {'result': ('0', '')} TEST - ERROR look at agilib output for clues -- AGI Script test.py completed, returning 0 -- Executing Hangup("Local/917009131384@iaxtel-a528,1", "") in new stack == Spawn extension (test, test, 7) exited non-zero on 'Local/917009131384@iaxtel-a528,1' NOTICE[262161]: File pbx_spool.c, Line 206 (attempt_thread): Call completed to Local/917009131384@iaxtel DEBUG[278546]: File channel.c, Line 2260 (ast_channel_bridge): Didn't get a frame from channel: Local/917009131384@iaxtel-a528,2 DEBUG[278546]: File channel.c, Line 2328 (ast_channel_bridge): Bridge stops bridging channels Local/917009131384@iaxtel-a528,2 and IAX2[iaxtel-out]/5 DEBUG[278546]: File chan_iax2.c, Line 1914 (iax2_hangup): We're hanging up IAX2[iaxtel-out]/5 now... -- Hungup 'IAX2[iaxtel-out]/5' == Spawn extension (iaxtel, 917009131384, 1) exited non-zero on 'Local/917009131384@iaxtel-a528,2' DEBUG[147466]: File chan_iax2.c, Line 4397 (socket_read): Immediately destroying 6, having received hangup DEBUG[294931]: File channel.c, Line 2260 (ast_channel_bridge): Didn't get a frame from channel: IAX2[iaxtel@iaxtel-out]/6 DEBUG[294931]: File channel.c, Line 2328 (ast_channel_bridge): Bridge stops bridging channels IAX2[iaxtel@iaxtel-out]/6 and SIP/1001-232e DEBUG[294931]: File chan_sip.c, Line 1078 (sip_hangup): find_user(1001) - decrement outUse counter == Spawn extension (iaxtel-in, s, 1) exited non-zero on 'IAX2[iaxtel@iaxtel-out]/6' -- Hungup 'IAX2[iaxtel@iaxtel-out]/6' DEBUG[114696]: File chan_sip.c, Line 567 (__sip_ack): Stopping retransmission on '75f7a9e6396b910722cb84e576cd5d88@172.17.0.240' of Request 103: Found -- Attempting call on Local/913037389393@trunkld for test@test:1 (Retry 1) -- Executing SetCallerID("Local/913037389393@trunkld-79d2,2", "8004603381") in new stack -- Executing SetCIDName("Local/913037389393@trunkld-79d2,2", "KlassTek") in new stack -- Executing Dial("Local/913037389393@trunkld-79d2,2", "IAX2/kputland@NuFone1/913037389393") in new stack -- Called kputland@NuFone1/913037389393 NOTICE[311313]: File channel.c, Line 1552 (__ast_request_and_dial): Don't know what to do with control frame -1 WARNING[147466]: File chan_iax2.c, Line 4405 (socket_read): Call rejected by 216.234.116.189: No authority found DEBUG[147466]: File chan_iax2.c, Line 4408 (socket_read): Immediately destroying 1, having received reject -- Hungup 'IAX2[NuFone1]/1' == No one is available to answer at this time -- Executing Dial("Local/913037389393@trunkld-79d2,2", "IAX2/kputland@NuFone2/913037389393") in new stack -- Called kputland@NuFone2/913037389393 NOTICE[311313]: File channel.c, Line 1552 (__ast_request_and_dial): Don't know what to do with control frame -1 -- Call accepted by 66.225.202.72 (format GSM) -- Format for call is GSM -- IAX2[NuFone2]/2 is ringing -- IAX2[NuFone2]/2 is ringing DEBUG[147466]: File chan_iax2.c, Line 2933 (raw_hangup): Raw Hangup 216.234.116.189:4569, src=1, dst=5 -- IAX2[NuFone2]/2 stopped sounds -- IAX2[NuFone2]/2 answered Local/913037389393@trunkld-79d2,2 NOTICE[311313]: File channel.c, Line 1552 (__ast_request_and_dial): Don't know what to do with control frame -1 NOTICE[311313]: File channel.c, Line 1552 (__ast_request_and_dial): Don't know what to do with control frame -1 DEBUG[147466]: File chan_iax2.c, Line 4208 (socket_read): Ooh, voice format changed to 2 -- Executing Answer("Local/913037389393@trunkld-79d2,1", "") in new stack -- Executing SetAccount("Local/913037389393@trunkld-79d2,1", "TEST") in new stack -- Executing NoOp("Local/913037389393@trunkld-79d2,1", "VALIDATE AVAILABILITY OF VARIABLES IN THE EXTENSION") in new stack -- Executing NoOp("Local/913037389393@trunkld-79d2,1", "SPOOLJUNK: This is set in the Spool File") in new stack -- Executing NoOp("Local/913037389393@trunkld-79d2,1", "XPHONE: 3039131384") in new stack -- Executing AGI("Local/913037389393@trunkld-79d2,1", "test.py") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/test.py DEBUG[327698]: File channel.c, Line 1894 (ast_channel_masquerade): Planning to masquerade IAX2[NuFone2]/2 into the structure of Local/913037389393@trunkld-79d2,1 DEBUG[327698]: File channel.c, Line 1912 (ast_channel_masquerade): Done planning to masquerade Local/913037389393@trunkld-79d2,1 into the structure of IAX2[NuFone2]/2 DEBUG[311313]: File channel.c, Line 1941 (ast_do_masquerade): Actually Masquerading IAX2[NuFone2]/2(6) into the structure of Local/913037389393@trunkld-79d2,1(6) DEBUG[311313]: File channel.c, Line 1952 (ast_do_masquerade): Got clone lock on 'IAX2[NuFone2]/2' at 0x813bda8 DEBUG[311313]: File channel.c, Line 2088 (ast_do_masquerade): Released clone lock on 'Local/913037389393@trunkld-79d2,1' DEBUG[311313]: File channel.c, Line 2098 (ast_do_masquerade): Putting channel IAX2[NuFone2]/2 in 64/64 formats DEBUG[311313]: File channel.c, Line 2115 (ast_do_masquerade): Done Masquerading IAX2[NuFone2]/2 (6) NOTICE[311313]: File channel.c, Line 1094 (ast_read): Dropping incompatible voice frame on IAX2[NuFone2]/2 of format SLINR since our native format has changed to GSM NOTICE[311313]: File channel.c, Line 1094 (ast_read): Dropping incompatible voice frame on IAX2[NuFone2]/2 of format SLINR since our native format has changed to GSM DEBUG[327698]: File channel.c, Line 2260 (ast_channel_bridge): Didn't get a frame from channel: Local/913037389393@trunkld-79d2,2 DEBUG[327698]: File channel.c, Line 2328 (ast_channel_bridge): Bridge stops bridging channels Local/913037389393@trunkld-79d2,2 and Local/913037389393@trunkld-79d2,1 == Spawn extension (trunkld, 913037389393, 4) exited non-zero on 'Local/913037389393@trunkld-79d2,2' ARGS: ['/var/lib/asterisk/agi-bin/test.py', ''] ENV LINE: agi_request: test.py ENV LINE: agi_channel: Local/913037389393@trunkld-79d2,1 ENV LINE: agi_language: en ENV LINE: agi_type: Local ENV LINE: agi_uniqueid: 1072131746.6 ENV LINE: agi_callerid: unknown ENV LINE: agi_dnid: unknown ENV LINE: agi_rdnis: unknown ENV LINE: agi_context: test ENV LINE: agi_extension: test ENV LINE: agi_priority: 6 ENV LINE: agi_enhanced: 0.0 ENV LINE: agi_accountcode: TEST ENV LINE: class AGI: self.env = {'agi_accountcode': 'TEST', 'agi_callerid': 'unknown', 'agi_channel': 'Local/913037389393@trunkld-79d2,1', 'agi_context': 'test', 'agi_dnid': 'unknown', 'agi_enhanced': '0.0', 'agi_extension': 'test', 'agi_language': 'en', 'agi_priority': '6', 'agi_rdnis': 'unknown', 'agi_request': 'test.py', 'agi_type': 'Local', 'agi_uniqueid': '1072131746.6'} TEST - HERE'S MY ENV: {'agi_type': 'Local', 'agi_channel': 'Local/913037389393@trunkld-79d2,1', 'agi_priority': '6', 'agi_rdnis': 'unknown', 'agi_context': 'test', 'agi_callerid': 'unknown', 'agi_uniqueid': '1072131746.6', 'agi_language': 'en', 'agi_request': 'test.py', 'agi_dnid': 'unknown', 'agi_extension': 'test', 'agi_accountcode': 'TEST', 'agi_enhanced': '0.0'} TEST - TRY TO GET VARIABLES TEST - USING: get variable JUNK COMMAND: get variable JUNK RESULT_LINE: 200 result=0 RESULT_DICT: {'result': ('0', '')} TEST - ERROR look at agilib output for clues TEST - USING: get variable $JUNK COMMAND: get variable $JUNK RESULT_LINE: 200 result=0 RESULT_DICT: {'result': ('0', '')} TEST - ERROR look at agilib output for clues TEST - USING: get variable ${JUNK} COMMAND: get variable ${JUNK} RESULT_LINE: 200 result=0 RESULT_DICT: {'result': ('0', '')} TEST - ERROR look at agilib output for clues TEST - USING: get variable SPOOLJUNK COMMAND: get variable SPOOLJUNK RESULT_LINE: 200 result=0 RESULT_DICT: {'result': ('0', '')} TEST - ERROR look at agilib output for clues TEST - USING: get variable $SPOOLJUNK COMMAND: get variable $SPOOLJUNK RESULT_LINE: 200 result=0 RESULT_DICT: {'result': ('0', '')} TEST - ERROR look at agilib output for clues TEST - USING: get variable ${SPOOLJUNK} COMMAND: get variable ${SPOOLJUNK} RESULT_LINE: 200 result=0 RESULT_DICT: {'result': ('0', '')} TEST - ERROR look at agilib output for clues TEST - USING: get variable XPHONE COMMAND: get variable XPHONE RESULT_LINE: 200 result=0 RESULT_DICT: {'result': ('0', '')} TEST - ERROR look at agilib output for clues TEST - USING: get variable $XPHONE COMMAND: get variable $XPHONE RESULT_LINE: 200 result=0 RESULT_DICT: {'result': ('0', '')} TEST - ERROR look at agilib output for clues TEST - USING: get variable ${XPHONE} COMMAND: get variable ${XPHONE} RESULT_LINE: 200 result=0 RESULT_DICT: {'result': ('0', '')} TEST - ERROR look at agilib output for clues -- AGI Script test.py completed, returning 0 -- Executing Hangup("IAX2[NuFone2]/2", "") in new stack == Spawn extension (test, test, 7) exited non-zero on 'IAX2[NuFone2]/2' DEBUG[311313]: File chan_iax2.c, Line 1914 (iax2_hangup): We're hanging up IAX2[NuFone2]/2 now... -- Hungup 'IAX2[NuFone2]/2' NOTICE[311313]: File pbx_spool.c, Line 206 (attempt_thread): Call completed to Local/913037389393@trunkld