[asterisk-bugs] [Asterisk 0016723]: type=user and type=friend are no longer the same for chan_sip

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Jan 28 09:52:45 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16723 
====================================================================== 
Reported By:                yarique
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16723
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.2.1 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-01-27 22:08 CST
Last Modified:              2010-01-28 09:52 CST
====================================================================== 
Summary:                    type=user and type=friend are no longer the same for
chan_sip
Description: 
The comments in sip.conf as well as various on-line pages suggest that node
types "user" and "friend" are synonyms for chan_sip.  However, since SVN
rev 169791 they are treated differently.  In particular, a user node will
not get the SIP_TYPE_PEER flag, which makes it impossible for it to
REGISTER with chan_sip:
  
chan_sip.c: Registration from '"foo" <sip:foo at example.org>' failed for
'192.0.2.101' - No matching peer found

As soon as the node type is changed to friend, it can register OK.

Perhaps this needs clarification.  Thanks!
====================================================================== 

---------------------------------------------------------------------- 
 (0117308) lmadsen (administrator) - 2010-01-28 09:52
 https://issues.asterisk.org/view.php?id=16723#c117308 
---------------------------------------------------------------------- 
Well, registrations are only against type=peer, and type=friend (which is
user+peer). The type=peer also needs to have host=dynamic in order for
registrations to be permitted for that peer.

A type=user, as it states in the documentation, only matched on the From,
and not the IP address, thus a registration wouldn't be applied to the user
structure.

I agree that documentation that states that a friend and user are synonyms
seems wrong to me, or at the very least, not very clear.

I don't believe there is any bug here, other than confusing documentation. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-01-28 09:52 lmadsen        Note Added: 0117308                          
======================================================================




More information about the asterisk-bugs mailing list