[asterisk-bugs] [Asterisk 0015052]: registration fails if multiple peers are specified in sip.conf

Asterisk Bug Tracker noreply at bugs.digium.com
Fri May 15 08:00:01 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15052 
====================================================================== 
Reported By:                fsantulli
Assigned To:                lmadsen
====================================================================== 
Project:                    Asterisk
Issue ID:                   15052
Category:                   Channels/chan_sip/Registration
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     assigned
Target Version:             1.6.1.1
Asterisk Version:           1.6.1.0 
Regression:                 Yes 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-05-07 11:07 CDT
Last Modified:              2009-05-15 08:00 CDT
====================================================================== 
Summary:                    registration fails if multiple peers are specified
in sip.conf
Description: 
if i use only one register line and only one peer is configured in
sip.conf, registration works okey. If i add a registration line for another
proxy and i add the relative section, asterisk wants to resolve
[section_name] as hostname and registration fails
====================================================================== 

---------------------------------------------------------------------- 
 (0104812) lmadsen (administrator) - 2009-05-15 08:00
 https://issues.asterisk.org/view.php?id=15052#c104812 
---------------------------------------------------------------------- 
*CLI>        > doing dnsmgr_lookup for 'lmadsen'
       > doing dnsmgr_lookup for 'callcentric'
       > doing dnsmgr_lookup for 'lmadsen'
       > doing dnsmgr_lookup for 'callcentric'
sip show registry
Host                           dnsmgr Username       Refresh State        
       Reg.Time                 
416479XXXX:5060                N      416479XXXX         485 Registered   
       Fri, 15 May 2009 06:56:41
lmadsen:5060                   N      lmadsen            485 Registered   
       Fri, 15 May 2009 06:56:41
callcentric:5060               N      1777289XXXX         45 Registered   
       Fri, 15 May 2009 06:56:41
3 SIP registrations.


; sip.conf

[general]
register => 1777289XXXX:welcome at callcentric/1777289XXXX
register => lmadsen:welcome at lmadsen/lmadsen
register => 416479XXXX:welcome at 416479XXXX/lmentinc

externip=174.116.XXX.XXX
localnet=192.168.128.0/255.255.255.0

[authentication]


[416479XXXX]
type=friend
username=416479XXXX
host=sip02.unlimitel.ca
secret=welcome
context=inbound
disallow=all
allow=ulaw
allow=g729
nat=no
call-limit=5
insecure=invite,port

[lmadsen]
type=friend
username=lmadsen
fromuser=lmadsen
host=pbx.somewhere.com
secret=welcome
context=alt_inbound
disallow=all
allow=ulaw
nat=no
call-limit=5
insecure=invite,port

[callcentric]
type=peer
context=from-callcentric
host=callcentric.com
username=1777289XXXX
secret=canada
fromuser=1777289XXXX
fromdomain=callcentric.com
insecure=invite,port 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-05-15 08:00 lmadsen        Note Added: 0104812                          
======================================================================




More information about the asterisk-bugs mailing list