[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:26:19 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:26 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.
====================================================================== 

---------------------------------------------------------------------- 
 ibc - 01-09-08 10:26  
---------------------------------------------------------------------- 
The main question here is: how is matched a "friend"? AFAIK it requires
"From" username to match the "friend" name but it doesn't occur and causes
the issue I comment.

To demostrate it:

I delete the "peer" and leave just the "friend":

  [iam_friend]
  type = friend
  username = iam_friend
  host = 222.111.235.18
  context = test
  insecure = port
  nat=yes

Now I call with "From" username = "anonimo" and the peer is matched, why?
I thougth it is a requisite that the "From" username matches "iam_friend",
isn't it?

Of course, if "host=dynamic" for a "friend" then the INVITE above will not
match "iam_friend", so this seems no logical to me:
It seems that matching "From" username with "friend" name is a need except
if "host" is specific and matched. ¿?¿?


PD: Please Olle, "kill the user"!!  XD 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-09-08 10:26  ibc            Note Added: 0076558                          
======================================================================




More information about the asterisk-bugs mailing list