Re: [Asterisk-Users] SIP and AGI crash...
Hi! I'm trying to use the say-ani agi asterisk-perl script and am experiencing crashes, I am also experienceing problems with the test-agi scripts shipped with asterisk. Looks like the AGI script quoted above doesn't detect the hangup condition and exit. Is asterisk exiting on you after the quoted section? From what is quoted it doesn't look like a crash, but an over simplistic example app that didn't take hangup into account. Note: There is a bug (in the bug tracker, bug has been closed) known with Grandstream phones that shows when using agi-test.agi. So do use a different SIP device for testing. See: http://www.voip-info.org/wiki-Asterisk+phone+grandstream+budgetone Cheers, Philipp ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[Asterisk-Users] SIP and AGI crash...
Hi, I'm trying to use the say-ani agi asterisk-perl script and am experiencing crashes, I am also experienceing problems with the test-agi scripts shipped with asterisk. The clearest demonstration of the problem is that if I dial extension 125 configured as... exten = 125,1,Ringing exten = 125,2,Wait(3) exten = 125,3,Answer exten = 125,4,Wait(2) exten = 125,5,AGI(agi-sayani.agi) exten = 125,6,Hangup I can crash the asterisk server by hanging up during the call, if I leave the call to complete and let * hang up then everything seems fine. Asterisk does not crash if I am running from the console, only if asterisk has been started in the background (it does still crash if I am attached via asterisk -r at the time the call is hung up). Using the agi test script (on extension 126, same config as above) I get the following... *CLI -- Executing Ringing(SIP/-08135e80, ) in new stack -- Executing Wait(SIP/-08135e80, 3) in new stack -- Executing Answer(SIP/-08135e80, ) in new stack -- Executing Wait(SIP/-08135e80, 2) in new stack -- Executing AGI(SIP/-08135e80, agi-test2.agi) in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-test2.agi AGI Environment Dump: -- accountcode = -- callerid = SNOM Phone 1543 8552 -- channel = SIP/-08135e80 -- context = sip-gw -- dnid = unknown -- enhanced = 0.0 -- extension = 126 -- language = en -- priority = 5 -- rdnis = unknown -- request = agi-test2.agi -- type = SIP -- uniqueid = 1074011198.0 1. Testing 'sendfile'...PASS (0) 2. Testing 'sendtext'...PASS (0) 3. Testing 'sendimage'...PASS (0) -- Playing 'digits/1' (language 'en') -- Playing 'digits/hundred' (language 'en') -- Playing 'digits/90' (language 'en') -- Playing 'digits/2' (language 'en') -- Playing 'digits/million' (language 'en') -- Playing 'digits/8' (language 'en') -- Playing 'digits/hundred' (language 'en') -- Playing 'digits/30' (language 'en') -- Playing 'digits/7' (language 'en') -- Playing 'digits/thousand' (language 'en') Jan 13 16:26:50 WARNING[1116941120]: chan_sip.c:471 retrans_pkt: Maximum retries exceeded on call [EMAIL PROTECTED] for seqno 102 (Request) == Spawn extension (sip-gw, 126, 5) exited non-zero on 'SIP/-08135e80' -- Executing Hangup(SIP/-08135e80, ) in new stack == Spawn extension (sip-gw, h, 1) exited non-zero on 'SIP/-08135e80' PASS (-1) 5. Testing 'waitdtmf'...FAIL (unexpected result '') 6. Testing 'record'...FAIL (unexpected result '') 6a. Testing 'record' playback...FAIL (unexpected result '') == Complete == 7 tests completed, 4 passed, 3 failed == The test seems to stop half way through. I am not entirely sure that these two issues are actually related though as I don't see any of the warning from chan_sip if I hang up during a call to the say-ani script. I don't seem to be getting a core dump, are there any known issues with AGI at the moment? Voicemail, SayUnixTime and everything else is working fine. -- Tristan 'Minty' Colgate [EMAIL PROTECTED] | ICQ #154577755 --- I don't mean to sound bitter, cold, or cruel, but I am, so that's how it comes out - Bill Hicks ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] SIP and AGI crash...
What version of Asterisk are you running? There were some problems with AGI fixed right around the beginning of the year. Jared On Tue, 2004-01-13 at 09:55, Tristan 'Minty' Colgate wrote: Hi, I'm trying to use the say-ani agi asterisk-perl script and am experiencing crashes, I am also experienceing problems with the test-agi scripts shipped with asterisk. The clearest demonstration of the problem is that if I dial extension 125 configured as... exten = 125,1,Ringing exten = 125,2,Wait(3) exten = 125,3,Answer exten = 125,4,Wait(2) exten = 125,5,AGI(agi-sayani.agi) exten = 125,6,Hangup I can crash the asterisk server by hanging up during the call, if I leave the call to complete and let * hang up then everything seems fine. Asterisk does not crash if I am running from the console, only if asterisk has been started in the background (it does still crash if I am attached via asterisk -r at the time the call is hung up). Using the agi test script (on extension 126, same config as above) I get the following... *CLI -- Executing Ringing(SIP/-08135e80, ) in new stack -- Executing Wait(SIP/-08135e80, 3) in new stack -- Executing Answer(SIP/-08135e80, ) in new stack -- Executing Wait(SIP/-08135e80, 2) in new stack -- Executing AGI(SIP/-08135e80, agi-test2.agi) in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-test2.agi AGI Environment Dump: -- accountcode = -- callerid = SNOM Phone 1543 8552 -- channel = SIP/-08135e80 -- context = sip-gw -- dnid = unknown -- enhanced = 0.0 -- extension = 126 -- language = en -- priority = 5 -- rdnis = unknown -- request = agi-test2.agi -- type = SIP -- uniqueid = 1074011198.0 1. Testing 'sendfile'...PASS (0) 2. Testing 'sendtext'...PASS (0) 3. Testing 'sendimage'...PASS (0) -- Playing 'digits/1' (language 'en') -- Playing 'digits/hundred' (language 'en') -- Playing 'digits/90' (language 'en') -- Playing 'digits/2' (language 'en') -- Playing 'digits/million' (language 'en') -- Playing 'digits/8' (language 'en') -- Playing 'digits/hundred' (language 'en') -- Playing 'digits/30' (language 'en') -- Playing 'digits/7' (language 'en') -- Playing 'digits/thousand' (language 'en') Jan 13 16:26:50 WARNING[1116941120]: chan_sip.c:471 retrans_pkt: Maximum retries exceeded on call [EMAIL PROTECTED] for seqno 102 (Request) == Spawn extension (sip-gw, 126, 5) exited non-zero on 'SIP/-08135e80' -- Executing Hangup(SIP/-08135e80, ) in new stack == Spawn extension (sip-gw, h, 1) exited non-zero on 'SIP/-08135e80' PASS (-1) 5. Testing 'waitdtmf'...FAIL (unexpected result '') 6. Testing 'record'...FAIL (unexpected result '') 6a. Testing 'record' playback...FAIL (unexpected result '') == Complete == 7 tests completed, 4 passed, 3 failed == The test seems to stop half way through. I am not entirely sure that these two issues are actually related though as I don't see any of the warning from chan_sip if I hang up during a call to the say-ani script. I don't seem to be getting a core dump, are there any known issues with AGI at the moment? Voicemail, SayUnixTime and everything else is working fine. ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] SIP and AGI crash...
On Tue, 2004-01-13 at 10:55, Tristan 'Minty' Colgate wrote: Hi, I'm trying to use the say-ani agi asterisk-perl script and am experiencing crashes, I am also experienceing problems with the test-agi scripts shipped with asterisk. The clearest demonstration of the problem is that if I dial extension 125 configured as... exten = 125,1,Ringing exten = 125,2,Wait(3) exten = 125,3,Answer exten = 125,4,Wait(2) exten = 125,5,AGI(agi-sayani.agi) exten = 125,6,Hangup I can crash the asterisk server by hanging up during the call, if I leave the call to complete and let * hang up then everything seems fine. Asterisk does not crash if I am running from the console, only if asterisk has been started in the background (it does still crash if I am attached via asterisk -r at the time the call is hung up). Using the agi test script (on extension 126, same config as above) I get the following... *CLI -- Executing Ringing(SIP/-08135e80, ) in new stack -- Executing Wait(SIP/-08135e80, 3) in new stack -- Executing Answer(SIP/-08135e80, ) in new stack -- Executing Wait(SIP/-08135e80, 2) in new stack -- Executing AGI(SIP/-08135e80, agi-test2.agi) in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-test2.agi AGI Environment Dump: -- accountcode = -- callerid = SNOM Phone 1543 8552 -- channel = SIP/-08135e80 -- context = sip-gw -- dnid = unknown -- enhanced = 0.0 -- extension = 126 -- language = en -- priority = 5 -- rdnis = unknown -- request = agi-test2.agi -- type = SIP -- uniqueid = 1074011198.0 1. Testing 'sendfile'...PASS (0) 2. Testing 'sendtext'...PASS (0) 3. Testing 'sendimage'...PASS (0) -- Playing 'digits/1' (language 'en') -- Playing 'digits/hundred' (language 'en') -- Playing 'digits/90' (language 'en') -- Playing 'digits/2' (language 'en') -- Playing 'digits/million' (language 'en') -- Playing 'digits/8' (language 'en') -- Playing 'digits/hundred' (language 'en') -- Playing 'digits/30' (language 'en') -- Playing 'digits/7' (language 'en') -- Playing 'digits/thousand' (language 'en') Jan 13 16:26:50 WARNING[1116941120]: chan_sip.c:471 retrans_pkt: Maximum retries exceeded on call [EMAIL PROTECTED] for seqno 102 (Request) == Spawn extension (sip-gw, 126, 5) exited non-zero on 'SIP/-08135e80' -- Executing Hangup(SIP/-08135e80, ) in new stack == Spawn extension (sip-gw, h, 1) exited non-zero on 'SIP/-08135e80' PASS (-1) 5. Testing 'waitdtmf'...FAIL (unexpected result '') 6. Testing 'record'...FAIL (unexpected result '') 6a. Testing 'record' playback...FAIL (unexpected result '') == Complete == 7 tests completed, 4 passed, 3 failed == The test seems to stop half way through. I am not entirely sure that these two issues are actually related though as I don't see any of the warning from chan_sip if I hang up during a call to the say-ani script. I don't seem to be getting a core dump, are there any known issues with AGI at the moment? Voicemail, SayUnixTime and everything else is working fine. Looks like the AGI script quoted above doesn't detect the hangup condition and exit. Is asterisk exiting on you after the quoted section? From what is quoted it doesn't look like a crash, but an over simplistic example app that didn't take hangup into account. If asterisk is crashing as in exiting, issue the command 'ulimit -c unlimited' and this should allow asterisk to drop a core file if it can. -- Steven Critchfield [EMAIL PROTECTED] ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] SIP and AGI crash...
Looks familiar to me - check this: http://bugs.digium.com/bug_view_page.php?bug_id=695 Iain --On Tuesday, January 13, 2004 4:55 pm + Tristan 'Minty' Colgate [EMAIL PROTECTED] wrote: Hi, I'm trying to use the say-ani agi asterisk-perl script and am experiencing crashes, I am also experienceing problems with the test-agi scripts shipped with asterisk. The clearest demonstration of the problem is that if I dial extension 125 configured as... exten = 125,1,Ringing exten = 125,2,Wait(3) exten = 125,3,Answer exten = 125,4,Wait(2) exten = 125,5,AGI(agi-sayani.agi) exten = 125,6,Hangup I can crash the asterisk server by hanging up during the call, if I leave the call to complete and let * hang up then everything seems fine. Asterisk does not crash if I am running from the console, only if asterisk has been started in the background (it does still crash if I am attached via asterisk -r at the time the call is hung up). Using the agi test script (on extension 126, same config as above) I get the following... *CLI -- Executing Ringing(SIP/-08135e80, ) in new stack -- Executing Wait(SIP/-08135e80, 3) in new stack -- Executing Answer(SIP/-08135e80, ) in new stack -- Executing Wait(SIP/-08135e80, 2) in new stack -- Executing AGI(SIP/-08135e80, agi-test2.agi) in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-test2.agi AGI Environment Dump: -- accountcode = -- callerid = SNOM Phone 1543 8552 -- channel = SIP/-08135e80 -- context = sip-gw -- dnid = unknown -- enhanced = 0.0 -- extension = 126 -- language = en -- priority = 5 -- rdnis = unknown -- request = agi-test2.agi -- type = SIP -- uniqueid = 1074011198.0 1. Testing 'sendfile'...PASS (0) 2. Testing 'sendtext'...PASS (0) 3. Testing 'sendimage'...PASS (0) -- Playing 'digits/1' (language 'en') -- Playing 'digits/hundred' (language 'en') -- Playing 'digits/90' (language 'en') -- Playing 'digits/2' (language 'en') -- Playing 'digits/million' (language 'en') -- Playing 'digits/8' (language 'en') -- Playing 'digits/hundred' (language 'en') -- Playing 'digits/30' (language 'en') -- Playing 'digits/7' (language 'en') -- Playing 'digits/thousand' (language 'en') Jan 13 16:26:50 WARNING[1116941120]: chan_sip.c:471 retrans_pkt: Maximum retries exceeded on call [EMAIL PROTECTED] for seqno 102 (Request) == Spawn extension (sip-gw, 126, 5) exited non-zero on 'SIP/-08135e80' -- Executing Hangup(SIP/-08135e80, ) in new stack == Spawn extension (sip-gw, h, 1) exited non-zero on 'SIP/-08135e80' PASS (-1) 5. Testing 'waitdtmf'...FAIL (unexpected result '') 6. Testing 'record'...FAIL (unexpected result '') 6a. Testing 'record' playback...FAIL (unexpected result '') == Complete == 7 tests completed, 4 passed, 3 failed == The test seems to stop half way through. I am not entirely sure that these two issues are actually related though as I don't see any of the warning from chan_sip if I hang up during a call to the say-ani script. I don't seem to be getting a core dump, are there any known issues with AGI at the moment? Voicemail, SayUnixTime and everything else is working fine. -- Tristan 'Minty' Colgate [EMAIL PROTECTED] | ICQ #154577755 --- I don't mean to sound bitter, cold, or cruel, but I am, so that's how it comes out - Bill Hicks ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] SIP and AGI crash...
On Tue, 2004-01-13 at 13:55, Tristan 'Minty' Colgate wrote: Hi, I'm trying to use the say-ani agi asterisk-perl script and am experiencing crashes, I am also experienceing problems with the test-agi scripts shipped with asterisk. Are you running RedHat 9? If you do, try with this line before launching asterisk (with stock redhat 9 kernels): export LD_ASSUME_KERNEL=2.4.1 -- Nicolas Gudino [EMAIL PROTECTED] House Internet S.R.L. ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users