Summary:ASTERISK-09885: Peer configured in configuration files disapear from `sip show peers`
Reporter:Igor Goncharovsky (igorg)Labels:
Date Opened:2007-07-17 02:55:45Date Closed:2011-06-07 14:08:12
Versions:Frequency of
Environment:Attachments:( 0) cli.txt
( 1) debug-1a.txt
( 2) debug-2.txt
( 3) sip_templates.conf
( 4) sip_trunk.conf
( 5) startup.txt
Description:After half a day on test system we try to call over one of SIP peers. Dial failed,   console output in cli.txt. All collected debug in debug.txt, seems that onl user `sipnet` exists, but `sipnet` configured as friend.

After reload all works. Configuration have 3 peers in config files and 2 VoIP phones, configured via realtime.

Configuration stored in sip_trunk.conf, included in sip.conf. Also configuration of sipnet use template t_sipnet from sip_template.conf


I have also meet this bug in asterisk 1.4

CLI output - cli.txt
Debug before reload - debug-1.txt
Debug after reload - debug-2.txt
Comments:By: Igor Goncharovsky (igorg) 2007-07-19 03:36:52

I have done more debug and get a reason of this bug. Peers don't load only on system startup. All of peers have host that set as domain name. Seems that asterisk can't resolve domain names and don't load peer.
I have described host in /etc/hosts and all peers load on system start. Log from asterisk attached.

I think that unresolved domain name mustn't block loading peers configurations.

By: Igor Goncharovsky (igorg) 2007-08-25 00:26:03

This issue semms to be same to 10521 for chan_sip.

By: Olle Johansson (oej) 2007-12-04 09:30:19.000-0600

Well, unresolved names do block asterisk. We have a serious issue with DNS in Asterisk...

By: Olle Johansson (oej) 2007-12-18 02:44:55.000-0600

Ok, we need to delay the resolution of the peer IP until after the configuration load.

By: () 2008-03-28 16:21:48

I think this might be fixed by your dnsmgr changes.  Thoughts?

By: Olle Johansson (oej) 2008-07-06 08:16:24

Is this still an issue?

By: Igor Goncharovsky (igorg) 2008-07-06 10:35:00

No, can be closed. Thank you.

By: Olle Johansson (oej) 2008-07-06 11:02:32

Closing on report's request. Thanks for your help.