-- Executing Dial("Local/913037389393@trunkld-37b5,2", "IAX2/kputland@NuFone2/913037389393") in new stack -- Called kputland@NuFone2/913037389393 NOTICE[376849]: File channel.c, Line 1552 (__ast_request_and_dial): Don't know what to do with control frame -1 DEBUG[114696]: File chan_sip.c, Line 567 (__sip_ack): Stopping retransmission on '62e0fcd411f1c5c86125bc9a24cd430e@172.17.0.240' of Request 102: Found -- Call accepted by 66.225.202.72 (format GSM) -- Format for call is GSM -- IAX2[NuFone2]/10 is ringing -- IAX2[NuFone2]/10 is ringing DEBUG[147466]: File chan_iax2.c, Line 2933 (raw_hangup): Raw Hangup 216.234.116.189:4569, src=9, dst=23 -- IAX2[NuFone2]/10 stopped sounds NOTICE[376849]: File channel.c, Line 1552 (__ast_request_and_dial): Don't know what to do with control frame -1 -- IAX2[NuFone2]/10 answered Local/913037389393@trunkld-37b5,2 NOTICE[376849]: 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-37b5,1", "") in new stack -- Executing SetAccount("Local/913037389393@trunkld-37b5,1", "TEST") in new stack -- Executing SetVar("Local/913037389393@trunkld-37b5,1", "JUNK=This is to see if masq whacks vars set in the extension") in new stack -- Executing NoOp("Local/913037389393@trunkld-37b5,1", "VALIDATE AVAILABILITY OF VARIABLES IN THE EXTENSION") in new stack -- Executing NoOp("Local/913037389393@trunkld-37b5,1", "JUNK: This is to see if masq whacks vars set in the extension") in new stack -- Executing NoOp("Local/913037389393@trunkld-37b5,1", "SPOOLJUNK: This is set in the Spool File") in new stack -- Executing NoOp("Local/913037389393@trunkld-37b5,1", "XPHONE: 3039131384") in new stack -- Executing AGI("Local/913037389393@trunkld-37b5,1", "test.py") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/test.py DEBUG[393234]: File channel.c, Line 1894 (ast_channel_masquerade): Planning to masquerade IAX2[NuFone2]/10 into the structure of Local/913037389393@trunkld-37b5,1 DEBUG[393234]: File channel.c, Line 1912 (ast_channel_masquerade): Done planning to masquerade Local/913037389393@trunkld-37b5,1 into the structure of IAX2[NuFone2]/10 DEBUG[376849]: File channel.c, Line 1941 (ast_do_masquerade): Actually Masquerading IAX2[NuFone2]/10(6) into the structure of Local/913037389393@trunkld-37b5,1(6) DEBUG[376849]: File channel.c, Line 1952 (ast_do_masquerade): Got clone lock on 'IAX2[NuFone2]/10' at 0x81448b8 DEBUG[376849]: File channel.c, Line 2088 (ast_do_masquerade): Released clone lock on 'Local/913037389393@trunkld-37b5,1' DEBUG[376849]: File channel.c, Line 2098 (ast_do_masquerade): Putting channel IAX2[NuFone2]/10 in 64/64 formats DEBUG[376849]: File channel.c, Line 2115 (ast_do_masquerade): Done Masquerading IAX2[NuFone2]/10 (6) NOTICE[376849]: File channel.c, Line 1094 (ast_read): Dropping incompatible voice frame on IAX2[NuFone2]/10 of format SLINR since our native format has changed to GSM NOTICE[376849]: File channel.c, Line 1094 (ast_read): Dropping incompatible voice frame on IAX2[NuFone2]/10 of format SLINR since our native format has changed to GSM NOTICE[376849]: File channel.c, Line 1094 (ast_read): Dropping incompatible voice frame on IAX2[NuFone2]/10 of format SLINR since our native format has changed to GSM DEBUG[393234]: File channel.c, Line 2260 (ast_channel_bridge): Didn't get a frame from channel: Local/913037389393@trunkld-37b5,2 DEBUG[393234]: File channel.c, Line 2328 (ast_channel_bridge): Bridge stops bridging channels Local/913037389393@trunkld-37b5,2 and Local/913037389393@trunkld-37b5,1 == Spawn extension (trunkld, 913037389393, 4) exited non-zero on 'Local/913037389393@trunkld-37b5,2' ARGS: ['/var/lib/asterisk/agi-bin/test.py', ''] ENV LINE: agi_request: test.py ENV LINE: agi_channel: Local/913037389393@trunkld-37b5,1 ENV LINE: agi_language: en ENV LINE: agi_type: Local ENV LINE: agi_uniqueid: 1072132636.14 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: 8 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-37b5,1', 'agi_context': 'test', 'agi_dnid': 'unknown', 'agi_enhanced': '0.0', 'agi_extension': 'test', 'agi_language': 'en', 'agi_priority': '8', 'agi_rdnis': 'unknown', 'agi_request': 'test.py', 'agi_type': 'Local', 'agi_uniqueid': '1072132636.14'} TEST - HERE'S MY ENV: {'agi_type': 'Local', 'agi_channel': 'Local/913037389393@trunkld-37b5,1', 'agi_priority': '8', 'agi_rdnis': 'unknown', 'agi_context': 'test', 'agi_callerid': 'unknown', 'agi_uniqueid': '1072132636.14', '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 NoOp("IAX2[NuFone2]/10", "VALIDATE AVAILABILITY OF VARIABLES IN THE EXTENSION AFTER AGI/MASQ") in new stack -- Executing NoOp("IAX2[NuFone2]/10", "JUNK: ") in new stack -- Executing NoOp("IAX2[NuFone2]/10", "SPOOLJUNK: ") in new stack -- Executing NoOp("IAX2[NuFone2]/10", "XPHONE: ") in new stack -- Executing Hangup("IAX2[NuFone2]/10", "") in new stack == Spawn extension (test, test, 13) exited non-zero on 'IAX2[NuFone2]/10' DEBUG[376849]: File chan_iax2.c, Line 1914 (iax2_hangup): We're hanging up IAX2[NuFone2]/10 now... -- Hungup 'IAX2[NuFone2]/10'