[asterisk-bugs] [Asterisk 0013811]: peer matching issue when use type=peer

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Dec 11 15:43:46 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13811 
====================================================================== 
Reported By:                pj
Assigned To:                file
====================================================================== 
Project:                    Asterisk
Issue ID:                   13811
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 152765 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-10-30 08:28 CDT
Last Modified:              2008-12-11 15:43 CST
====================================================================== 
Summary:                    peer matching issue when use type=peer
Description: 
When use type=peer in sip.conf, asterisk doesn't match existing peer and
doesn't require invite authentication, as consequence call is then placed
from context specified in [general] section in sip.conf (if
allowguest=yes).
Workaround is to switch back to deprecated 'type=friend'
issue is caused probably from commit 152020


======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0013705 Can't use type=friend anymore in sip.conf
====================================================================== 

---------------------------------------------------------------------- 
 (0096271) pj (reporter) - 2008-12-11 15:43
 http://bugs.digium.com/view.php?id=13811#c96271 
---------------------------------------------------------------------- 
[general]
context=from-guest                 ; Default context for incoming calls
srvlookup=yes                    ; Enable DNS SRV lookups on outbound
calls
allowguest=yes
match_auth_username=yes
allowsubscribe=no
alwaysauthreject=yes
rtptimeout=15
rtpholdtimeout=180
disallow=all                    ; First disallow all codecs
allow=g729,gsm,ilbc,alaw
language=cz
canreinvite=no
nat=yes
realm=xxx
maxexpiry=400
minexpiry=200
defaultexpiry=350

[phone](!)
type=peer
host=dynamic
qualify=4000
qualifyfreq=20
nat=yes
canreinvite=no
disallow=all
allow=g729,gsm,ilbc
callcounter=yes
busylevel=1
allowsubscribe=yes
subscribecontext=linestates
context=zamestnanci


[324p](phone)
secret=xxx
callerid="Pavel Jezek" <324> 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-12-11 15:43 pj             Note Added: 0096271                          
======================================================================




More information about the asterisk-bugs mailing list