[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 19:15:05 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:                   text
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.6.2.1 
JIRA:                       SWP-816 
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 19:15 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!
====================================================================== 

---------------------------------------------------------------------- 
 (0117348) yarique (reporter) - 2010-01-28 19:15
 https://issues.asterisk.org/view.php?id=16723#c117348 
---------------------------------------------------------------------- 
Can a typical use case be suggested for each type in the documentation?  I
think it would be a fairly good way to clarify the issue.  It's done for
peers and friends but not users.  E.g.:

peer - a SIP trunk, authenticated by its IP, any From is accepted, can
initiate and receive calls.
friend - a SIP phone, authenticated by its From, can register as well as
initiate and receive calls.
user - ???

Thanks! 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-01-28 19:15 yarique        Note Added: 0117348                          
======================================================================




More information about the asterisk-bugs mailing list