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

Asterisk Bug Tracker noreply at bugs.digium.com
Thu May 14 11:13:27 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-14 11:13 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
====================================================================== 

---------------------------------------------------------------------- 
 (0104743) fsantulli (reporter) - 2009-05-14 11:13
 https://issues.asterisk.org/view.php?id=15052#c104743 
---------------------------------------------------------------------- 
in the main configuration i have about 100 accounts pointing to the same
sip server. 
Register lines appears as follows:

register => user1:pass1 at trunk_name/0001
register => user2:pass2 at trunk_name/0002
register => user3:pass3 at trunk_name/0003
register => user4:pass4 at trunk_name/0004

also

register => user1:pass1 at second_trunk_name/0001

[trunk_name]
type=peer
insecure=invite,port
host=192.168.0.100
canreinvite=no
qualify=no
disallow=all
allow=g729

[second_trunk_name]
type=peer
insecure=invite,port
host=192.168.0.101
canreinvite=no
qualify=no
disallow=all
allow=g729

this kind of output also produce the defect as follow:
[May 14 18:07:50] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:50] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:50] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:50] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:50] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:50] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:51] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:51] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:51] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:51] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:51] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:51] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:51] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:51] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:51] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:51] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:51] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:52] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:52] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:52] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:52] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:52] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:52] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:52] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:52] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:52] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:52] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:52] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:53] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:53] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:53] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:53] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:53] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:53] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:53] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:53] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:53] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:53] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:53] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:54] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:54] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:54] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:54] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:54] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:54] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:54] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:54] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:54] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:54] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:55] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:55] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:55] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:55] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'second_trunk_name'
[May 14 18:07:55] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:55] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:55] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:55] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:55] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:56] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:56] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:56] WARNING[4317]: chan_sip.c:16334
handle_response_register: Got 200 OK on REGISTER, but there isn't a
registry entry for 'user1' (we probably already got the OK)
[May 14 18:07:56] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:56] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:56] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:56] WARNING[4317]: chan_sip.c:16334
handle_response_register: Got 200 OK on REGISTER, but there isn't a
registry entry for 'user2' (we probably already got the OK)
[May 14 18:07:56] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:56] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:56] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:56] WARNING[4317]: chan_sip.c:16334
handle_response_register: Got 200 OK on REGISTER, but there isn't a
registry entry for 'user3' (we probably already got the OK)
[May 14 18:07:56] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:56] WARNING[4317]: chan_sip.c:16334
handle_response_register: Got 200 OK on REGISTER, but there isn't a
registry entry for 'user4' (we probably already got the OK)
[May 14 18:07:56] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:56] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:57] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:57] WARNING[4317]: chan_sip.c:16334
handle_response_register: Got 200 OK on REGISTER, but there isn't a
registry entry for 'user5' (we probably already got the OK)
[May 14 18:07:57] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:57] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:57] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:57] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:57] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:57] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:57] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:57] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:58] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:58] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:58] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:58] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:58] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:58] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:58] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:58] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:58] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:58] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:58] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'second_trunk_name'
[May 14 18:07:58] NOTICE[4317]: chan_sip.c:9923 sip_reg_timeout:    --
Registration for 'user1 at trunk_name' timed out, trying again (Attempt
https://issues.asterisk.org/view.php?id=2)
[May 14 18:07:59] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:59] NOTICE[4317]: chan_sip.c:9923 sip_reg_timeout:    --
Registration for 'user2 at trunk_name' timed out, trying again (Attempt
https://issues.asterisk.org/view.php?id=2)
[May 14 18:07:59] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:59] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:59] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:59] WARNING[4317]: chan_sip.c:16334
handle_response_register: Got 200 OK on REGISTER, but there isn't a
registry entry for 'user6' (we probably already got the OK)
[May 14 18:07:59] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:59] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:59] WARNING[4317]: chan_sip.c:16334
handle_response_register: Got 200 OK on REGISTER, but there isn't a
registry entry for 'user7' (we probably already got the OK)
[May 14 18:07:59] WARNING[4317]: chan_sip.c:16334
handle_response_register: Got 200 OK on REGISTER, but there isn't a
registry entry for 'user8' (we probably already got the OK)
[May 14 18:07:59] WARNING[4317]: chan_sip.c:16334
handle_response_register: Got 200 OK on REGISTER, but there isn't a
registry entry for 'user9' (we probably already got the OK)
[May 14 18:07:59] WARNING[4317]: chan_sip.c:16334
handle_response_register: Got 200 OK on REGISTER, but there isn't a
registry entry for 'user10' (we probably already got the OK)
[May 14 18:07:59] WARNING[4317]: chan_sip.c:16334
handle_response_register: Got 200 OK on REGISTER, but there isn't a
registry entry for 'user11' (we probably already got the OK)
[May 14 18:07:59] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:59] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:59] WARNING[4317]: chan_sip.c:16334
handle_response_register: Got 200 OK on REGISTER, but there isn't a
registry entry for 'user12' (we probably already got the OK)
[May 14 18:07:59] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:07:59] WARNING[4317]: chan_sip.c:16334
handle_response_register: Got 200 OK on REGISTER, but there isn't a
registry entry for 'user13' (we probably already got the OK)
[May 14 18:07:59] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:08:00] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:08:00] WARNING[4317]: chan_sip.c:16334
handle_response_register: Got 200 OK on REGISTER, but there isn't a
registry entry for 'user14' (we probably already got the OK)
[May 14 18:08:00] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'
[May 14 18:08:00] WARNING[4317]: acl.c:376 ast_get_ip_or_srv: Unable to
lookup 'trunk_name'


I have noticed that srvlookup=no in sip.conf let the sip accounts
registerbut warnings are still there.

Also i noticed that in "sip show registry" i have DNSMGR column marked to
N for every peer specified. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-05-14 11:13 fsantulli      Note Added: 0104743                          
======================================================================




More information about the asterisk-bugs mailing list