[asterisk-bugs] [Asterisk 0014632]: IAX2 doesn't issue HANGUP when using DIAL ring

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Mar 23 10:59:14 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14632 
====================================================================== 
Reported By:                trendboy
Assigned To:                dvossel
====================================================================== 
Project:                    Asterisk
Issue ID:                   14632
Category:                   Channels/chan_iax2
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.6.0.6 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-03-09 12:22 CDT
Last Modified:              2009-03-23 10:59 CDT
====================================================================== 
Summary:                    IAX2 doesn't issue HANGUP when using DIAL ring
Description: 
This is a strange one.

I have recorded a video of this happening on:

http://video.google.com/videoplay?docid=-8122305684689236739

Steps to repro:
1) Set up your extensions.ael with simple extensions like as follows
inside some context:

        7001 =>  {
                        Dial(IAX2/7001,30,r);
                        Hangup();
                }


        7002 =>  {
                        Dial(IAX2/7002,30,r);
                        Hangup();
                }


        7003 =>  {
                        Dial(IAX2/7003,30,r);
                        Hangup();
                }

2) Call one of the extensions and hang up without answering it

3) The call will not end and the phone will continue to ring out.

** This also happens on Zoiper as well as real phones. It is as though
there is no Hangup request being sent to the software or the phone in the
IAX2 packet.

*** Please see the video of this happening (link above) ***

Now continue on by changing the ring flag in the dial command to be m for
music on hold so you have:


        7001 =>  {
                        Dial(IAX2/7001,30,m);
                        Hangup();
                }

and so on

2) Again call an extension and hang up, the hangup packet works and the
phone hangs up. Same correct behaviour on Zoiper softphone.

So could it have something to do with the m option??? I first thought it
was the phones themselves and reported it to the makers of the phones,
however when I saw it happening on Zoiper then I knew it has to be
something to do with asterisk.
====================================================================== 

---------------------------------------------------------------------- 
 (0102075) dvossel (administrator) - 2009-03-23 10:59
 http://bugs.digium.com/view.php?id=14632#c102075 
---------------------------------------------------------------------- 
"My Dial plan has Answer(); first then Dial(iax/etc.. dial command); and
then Hangup();

If I remove the Answer() then when the call hangs up it actually hangs up
and the iax2 show netstats shows no calls as it should do."



I'm confused.  In your last post you said taking out the Answer() fixed
the problem, but your initial report said to use the following extension
which has no Answer() could reproduce it. 
7002 => {
        Dial(IAX2/7002,30,r);
        Hangup();
}

I haven't been able to reproduce the issue, Can you update to the latest
1.6.0 branch code and verify the problem still exists? 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-03-23 10:59 dvossel        Note Added: 0102075                          
======================================================================




More information about the asterisk-bugs mailing list