[asterisk-bugs] [Asterisk 0011715]: Wrong matching of "type=friend" (but username mismatches!!)

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Jan 9 10:29:30 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11715 
====================================================================== 
Reported By:                ibc
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11715
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.17 
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             01-09-2008 07:46 CST
Last Modified:              01-09-2008 10:29 CST
====================================================================== 
Summary:                    Wrong matching of "type=friend" (but username
mismatches!!)
Description: 
When there are both SIP "friend" and "peer" defined with same "host"
parameter the "friend" is matched in cases it shouldn't (incorrect From
username). It depends on the order "friend" and "peer" and defined in
"sip.conf".

This occurs as well using RealTime.
====================================================================== 

---------------------------------------------------------------------- 
 file - 01-09-08 10:29  
---------------------------------------------------------------------- 
So here it goes:

A friend creates both a user and a peer.
A user is matched based on the username in the From header.
In your case because you are using insecure the peer entry can be matched
by the IP address.
Most individuals don't use the insecure option with a friend entry, they
just create a peer on their own.
There is no "friend" type really... it just creates a user entry and a
peer entry with the options given. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-09-08 10:29  file           Note Added: 0076560                          
======================================================================




More information about the asterisk-bugs mailing list