[asterisk-bugs] [Asterisk 0017954]: Peer does not hang up when caller hangup while app_dial is executing - Deadagi

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Jan 27 03:19:45 CST 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17954 
====================================================================== 
Reported By:                mn3250
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17954
Category:                   Applications/app_dial
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           SVN 
JIRA:                       SWP-2171 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-09-05 13:36 CDT
Last Modified:              2011-01-27 03:19 CST
====================================================================== 
Summary:                    Peer does not hang up when caller hangup while
app_dial is executing - Deadagi
Description: 
I am trying to execute a dead agi application:

exten => 1111,1,DeadAgi,calling.pl
exten => 1111,n,Hangup()

in calling.pl I have:
$result=$AGI->exec("Background", "connecting");
$dialstr = $type."/$callednumber@".$providerip."|90|rHL(" . ($calltime *
60 * 1000) . ")";
$result=$AGI->exec("DIAL $dialstr");

everything works fine if the caller does not hangup and the progress tone
is played to the caller but if the caller disconnect the call while
connecting.gsm is played, the peer does not disconnect even after the
originating channel is hung up.
Should * not disconnect the briged channel when originating channel
dissconnects?
Asterisk reports the caller disconnect and DIALSTATUS is CANCEL but the
bridged call stays in progress and connects unless a restart is issued. If
this is normal (I do not think so), is there a workaround to disconnect the
bridged leg after caller hangs up in my agi script?

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

---------------------------------------------------------------------- 
 (0131100) Dovid (reporter) - 2011-01-27 03:19
 https://issues.asterisk.org/view.php?id=17954#c131100 
---------------------------------------------------------------------- 
I think it is not related to AGI but maybe an Asterisk bridging issue in
general.

I have the issue with the following scenario:

1) User makes call with u option which sends the called party to another
context.
2) The context that I sent it to plays a message (using Background) in a
loop till the called party enters any dtmf key.
3) If when the gosub is playing the file before entering DTMF the caller
hangs up Asterisk gets the BYE and sends a 200 OK however it never hits the
h extension and asterisk keeps playing the message to the called party.
4) If the called party enters in DTMF then the call gets hung up for both
legs in Asterisk.

I am using Asterisk 1.8.2.2. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-01-27 03:19 Dovid          Note Added: 0131100                          
======================================================================




More information about the asterisk-bugs mailing list