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

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Mar 20 14:03:33 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 14:03 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.
====================================================================== 

---------------------------------------------------------------------- 
 (0102023) trendboy (reporter) - 2009-03-20 14:03
 http://bugs.digium.com/view.php?id=14632#c102023 
---------------------------------------------------------------------- 
I have more information on this after investigation.

If you set up asterisk on a default install (compile everything with
menuselect) then set up some basic extensions.

Do NOT use extensions.conf - ONLY USE extensions.ael.

Now set up something like this:

s => {

   Ringing();
   Wait(2);
   Answer();

... do whatever and send to a queue

What you will find is that Asterisk will play the Ring sound but NEVER DO
MUSIC ON HOLD when you send to a queue nor if you Dial and extension on
IAX2. If you call a SIP extension it will not know when you hangup and keep
the SIP call active.

Now if you comment out Ringing() and wait(2) it works perfect!!! SIP
extension hangs up as expected and music on hold works perfect.

Very strange!!! :-)

could it be something to do with Ringing()?

ps-if you would like me to give you more info on anything and out the case
pending me could you let me know how to update it?? do I just enter the
update in here? as in a previous bug I couldn't work out how to reply and
assign it back to you guys. Hehe sorry I know it must be a silly request.

D 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-03-20 14:03 trendboy       Note Added: 0102023                          
======================================================================




More information about the asterisk-bugs mailing list