[asterisk-bugs] [Asterisk 0014340]: [patch] Calls are not matched to correct peer when using callbackextension parameter

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Oct 2 14:24:43 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=14340 
====================================================================== 
Reported By:                Nick_Lewis
Assigned To:                dvossel
====================================================================== 
Project:                    Asterisk
Issue ID:                   14340
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-01-27 04:03 CST
Last Modified:              2009-10-02 14:24 CDT
====================================================================== 
Summary:                    [patch] Calls are not matched to correct peer when
using callbackextension parameter
Description: 
If there are a number of peers with different callbackextension parameters
the incoming calls are not matched to the right peers

for example with two peers as follows
[trunk1]
host=sip.myitsp.com
callbackextension=9991
...
[trunk2]
host=sip.myitsp.com
callbackextension=9992
...

incoming calls to 9991 and to 9992 are both matched to the peer for 9992
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
duplicate of        0014250 [patch] Incoming calls from registratio...
====================================================================== 

---------------------------------------------------------------------- 
 (0111807) dvossel (administrator) - 2009-10-02 14:24
 https://issues.asterisk.org/view.php?id=14340#c111807 
---------------------------------------------------------------------- 
There is not always a double search.  If the first peer found by address
has a callback that matches the URI, the "tighter" search is not done. 
Depending on the configuration, having the "tighter" search before the ip
search may be slightly more efficient, but in other config's it may be the
other way around.  The only time we are guaranteed a double lookup
regardless of which comes first is when no callbackextension is used at
all, and that will probably happen more often than not.  I don't believe
this is done frequently enough for this to really be an issue... I could be
wrong, but isn't this just done once at the beginning of a dialog during
authentication? 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-10-02 14:24 dvossel        Note Added: 0111807                          
======================================================================




More information about the asterisk-bugs mailing list