[asterisk-bugs] [Asterisk 0012963]: [patch] chan_iax2 will create multiple sessions when receiving retransmitted NEW

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Jul 14 13:38:23 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12963 
====================================================================== 
Reported By:                jpgrayson
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12963
Category:                   Channels/chan_iax2
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.21 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             06-30-2008 18:48 CDT
Last Modified:              07-14-2008 13:38 CDT
====================================================================== 
Summary:                    [patch] chan_iax2 will create multiple sessions when
receiving retransmitted NEW
Description: 
When a client initiates a call with a NEW frame, frequently the client will
send a retransmitted NEW frame prior to receiving the ACCEPT frame from
asterisk. This may result in asterisk receiving duplicate NEW frames from
the same client in short succession.

As of at least 1.4.20, asterisk will ACCEPT and create new call sessions
for both of these NEW frames originating from the same client. This results
in much protocol confusion between asterisk and the client and ultimately
leads to asterisk and/or the client terminating the call.

The correct behavior would be for asterisk to recognize second (and third
and fourth) NEW frames from the same source (socket and callno) and ignore
them.

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

---------------------------------------------------------------------- 
 mvanbaak - 07-14-08 13:38  
---------------------------------------------------------------------- 
this is too weird.
With this patch, I dont see any packets on the wire when I call my
system.
Without this patch, I can see them.

Looks like I have to capture the register packets as well, might be
something wrong in there.

some CLI output:
asterisk*CLI> iax2 show registry 
Host                  dnsmgr  Username    Perceived             Refresh 
State
my_itsp_ip:4569   N       username     my_public_ip:61187         60 
Registered
1 IAX2 registrations.
asterisk*CLI> iax2 show peers
Name/Username    Host                 Mask             Port         
Status    
speakup01/vanba  my_itsp_ip  (S)  255.255.255.255  4569          OK (15
ms)
...
4 iax2 peers [4 online, 0 offline, 0 unmonitored]

so registration, and the qualify stuff works correctly.
Outgoing calls via speakup01 work as well

I did not try the 1.4 version. You want me to test that one as well ?

IIRC speakup is using asterisk 1.4.<someversion> on their side. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-14-08 13:38  mvanbaak       Note Added: 0090230                          
======================================================================




More information about the asterisk-bugs mailing list