[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 Sep 4 03:18:42 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:                     assigned
Asterisk Version:           1.6.1-beta4 
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-09-04 03:18 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...
====================================================================== 

---------------------------------------------------------------------- 
 (0110210) Nick_Lewis (reporter) - 2009-09-04 03:18
 https://issues.asterisk.org/view.php?id=14340#c110210 
---------------------------------------------------------------------- 
Re SIPS over UDP, the attached patch made use of the old parse_uri
function. I assume that when reworked for the new parse_uri function this
will be ok.

Re hashing on IP, this is the current behaviour. The callbackexten check
is in addition not instead of the IP check. Since many currently use the
matching as a form of security it is important not to relax the criteria
for matching. Any such change would need a different peer type. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-09-04 03:18 Nick_Lewis     Note Added: 0110210                          
======================================================================




More information about the asterisk-bugs mailing list