[asterisk-bugs] [Asterisk 0018722]: When using ugc in dial - If first leg hangs up call is in limbo

Asterisk Bug Tracker noreply at bugs.digium.com
Sun Feb 6 23:01:26 CST 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18722 
====================================================================== 
Reported By:                Dovid
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18722
Category:                   Applications/app_dial
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.8.2.3 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2011-02-01 05:40 CST
Last Modified:              2011-02-06 23:01 CST
====================================================================== 
Summary:                    When using ugc in dial - If first leg hangs up call
is in limbo
Description: 
Hi,

If phone1 calls phone2 with a gosub (sent because of u in dial string)
that sends that sends the called party to a macro where they have to enter
DTMF to have the call bridged, if the caller hangs up after the called
person picks up the first leg is in limbo.

1) phone1 calls phone2
2) phone2 picks up and is sent to a GoSub where a message is played for
phone2 to enter dtmf to bridge the calls.
3) phone2 does not enter anything and hears the message over and over.
4) phone1 hangs up the phone. Asterisk gets the BYE and sends a 200 in
response, however the call is not hung up and the call is in limbo till
phone2 enters DTMF or hangs up.

I will upload the full log as well as a tshark trace.
====================================================================== 

---------------------------------------------------------------------- 
 (0131548) jcovert (reporter) - 2011-02-06 23:01
 https://issues.asterisk.org/view.php?id=18722#c131548 
---------------------------------------------------------------------- 
Another way to do something in the Gosub would be to pass a variable
through (be sure to prefix it with at least one, probably two underscores)
that you set through the dialplan with the name of the originating channel;
the gosub could then check for the originating channel's continued
existence.

Bottom line: I don't think there's a bug here.

The reason the terminating channel doesn't go away is that these are
really two independent channels until they bridge, which isn't going to
happen until the Gosub exits.

In any case, with the info I've provided, you can make your application
work and be aware in the terminating channel that the caller hung up.

/john 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-02-06 23:01 jcovert        Note Added: 0131548                          
======================================================================




More information about the asterisk-bugs mailing list