No subject


Mon Jan 10 01:51:56 CST 2011


the AGI script right along/after a command response. This does not happen
and the channel is never hung -unless the script returns-.

I am using adhearsion and a very simple dialplan.

====================================================================== 

---------------------------------------------------------------------- 
 (0131862) bklang (reporter) - 2011-02-11 12:13
 https://issues.asterisk.org/view.php?id=18492#c131862 
---------------------------------------------------------------------- 
The issue isn't that the socket stays open, it is that Asterisk never
signals the hangup to the AGI process.

Here's a simple example:

=>:unknown, :callingani2=>0, :priority=>1}
DEBUG agi: >>> ANSWER
DEBUG agi: <<< 200 result=0

DEBUG agi: >>> EXEC Wait "5"
**** Caller attached to AGI hangs up here; Wait returns -1
DEBUG agi: <<< 200 result=-1

DEBUG agi: >>> EXEC Wait "5"
DEBUG agi: <<< 200 result=0
**** This response is wrong.  It should be "511 Command not permitted on a
dead channel"


The problem is that the AGI script has no way of knowing that the remote
end has hung up and so continues processing indefinitely.  Because the AGI
socket is open, Asterisk leaves the channel in a zombie state until the AGI
process is killed. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-02-11 12:13 bklang         Note Added: 0131862                          
======================================================================




More information about the asterisk-bugs mailing list