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

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Mar 20 15:43:45 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-20 15:43 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.
====================================================================== 

---------------------------------------------------------------------- 
 (0102024) trendboy (reporter) - 2009-03-20 15:43
 http://bugs.digium.com/view.php?id=14632#c102024 
---------------------------------------------------------------------- 
Ok even worse.....

A call comes in through one IAX2 channel and is then routed out through
another IAX2 channel. Everything works...

BUT!!

When the caller who started the call hangs up - the connection never
removes from the IAX2 list so:

iax2 show netstats

shows the connections forever!!!!! Even though they are long gone.

What is even more strange is that the second channel that the call went
out on again is actually aware that the call has ended as the VOIP phone
company who provide the channel actually stop charging me at that point.
Yet asterisk on my box thinks the call is very much alive and shows:

diva*CLI> iax2 show netstats
                                -------- LOCAL --------------------- 
-------- REMOTE --------------------
Channel                    RTT  Jit  Del  Lost   %  Drop  OOO  Kpkts  Jit 
Del  Lost   %  Drop  OOO  Kpkts
IAX2/out-10789    1000   -1    0    -1  -1     0   -1      0    0    0    
0   0     0    0      0
IAX2/out-12247    1000   -1    0    -1  -1     0   -1      0    0    0    
0   0     0    0      0
2 active IAX channels

yet those calls are dead!!!!

Any ideas?? 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-03-20 15:43 trendboy       Note Added: 0102024                          
======================================================================




More information about the asterisk-bugs mailing list