[Asterisk-Users] Asterisk crash on AGI

Ívar Ragnarsson ivar at grunnur.is
Fri Oct 10 09:21:53 MST 2003


I wanted to add that I just updated from the CVS and compiled everything. 
Still getting crashed.

I'm running on Redhat 9.0 and using chan_h323 and using NetMeeting to call
the system.

Any help appreciated.

Thanks,
	Ívar



-----Original Message-----
From: Ívar Ragnarsson 
Sent: 10. október 2003 11:09
To: 'asterisk-users at lists.digium.com'
Subject: [Asterisk-Users] Asterisk crash on AGI


Hi 

I've just started to play around with AGI scripts and have run into
problems.
When I run Asterisk in console mode everything works just fine.  If I run
Asterisk in 'regular' mode (not console) it crashes if I hang up on the
script.  I have used Python scripts to test this and also the "agi-test.agi"
script.
(the Asterisk code was compiled from CVS code just a few days ago)

extensions.conf would have something like this:
exten => 147,1,Answer
exten => 147,2,AGI(agi-test.agi)
exten => 147,3,Hangup

Does anyone know what the problem is?  Is this a bug or am I doing something
wrong?

If I run "asterisk -vvv" this is the output (I hang up after hearing 90)

e164: [147]
    -- Executing Answer("H323/ip$192.168.0.100:3016/2107", "") in new stack
    -- Executing AGI("H323/ip$192.168.0.100:3016/2107", "agi-test.agi") in
new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-test.agi
AGI Environment Dump:
 -- accountcode =
 -- callerid = Ivar <>
 -- channel = H323/ip$192.168.0.100:3016/2107
 -- context = default
 -- dnid = unknown
 -- enhanced = 0.0
 -- extension = 147
 -- language = en
 -- priority = 2
 -- rdnis = unknown
 -- request = agi-test.agi
 -- type = H323
 -- uniqueid = 1065783976.0
Answering1.  Testing 'sendfile'...PASS (0)
2.  Testing 'sendtext'...PASS (0)
3.  Testing 'sendimage'...PASS (0)
    -- Playing 'digits/1'.
    -- Playing 'digits/hundred'
    -- Playing 'digits/90'
  == Spawn extension (default, 147, 2) exited non-zero on
'H323/ip$192.168.0.100:3016/2107'
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
==================================================
[root at obelix root]#


Thanks,
	Ívar
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list