[Home]

Summary:ASTERISK-01184: Disconecting when running agi script crashes Asterisk when running in daemon mode
Reporter:brixius (brixius)Labels:
Date Opened:2004-03-09 17:01:29.000-0600Date Closed:2004-09-25 02:54:40
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:When running an agi script, even the test-agi and disconnectiong prior to agi script finishing asterisk will crash.  If starting asterisk -vvvvc it doesn't crash.  here's what I get for output.

****** ADDITIONAL INFORMATION ******

Here's the dialplan:

exten => 4503,1,answer
exten => 4503,2,agi(agi-test.agi)
exten => 4503,3,hangup

here's the output from the console:
*CLI>     -- Executing Answer("SIP/4003-25f9", "") in new stack
   -- Executing AGI("SIP/4003-25f9", "agi-test.agi") in new stack
   -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-test.agi
AGI Environment Dump:
-- accountcode =
-- callerid = "Kelly Murphy" <4003>
-- channel = SIP/4003-25f9
-- context = local
-- dnid = unknown
-- enhanced = 0.0
-- extension = 4503
-- language = en
-- priority = 2
-- rdnis = unknown
-- request = agi-test.agi
-- type = SIP
-- uniqueid = 1078868765.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')
Mar  9 15:46:12 WARNING[1125350192]: chan_sip.c:495 retrans_pkt: Maximum retries exceeded on call ed5c8305a271f608@192.168.2.58 for seqno 102 (Request)
 == Spawn extension (local, 4503, 2) exited non-zero on 'SIP/4003-25f9'
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
==================================================

here's the output from asterisk -vvvvvr with asterisk running in daemon mode:


   -- Executing Answer("SIP/4003-c80d", "") in new stack
   -- Executing AGI("SIP/4003-c80d", "agi-test.agi") in new stack
   -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-test.agi
   -- 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')
 == Spawn extension (local, 4503, 2) exited non-zero on 'SIP/4003-c80d'
rhlab*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
[root@rhlab asterisk]#
Comments:By: James Golovich (jamesgolovich) 2004-03-09 17:53:29.000-0600

This turned out to be the redhat 9 NPTL problem that is solved by setting LD_ASSUME_KERNEL=2.4.1