[Home]

Summary:ASTERISK-08851: asterisk takes a lot of time loading/reloading if not connected to internet
Reporter:donpaolo (donpaolo)Labels:
Date Opened:2007-02-26 16:24:57.000-0600Date Closed:2007-02-27 10:05:24.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:In the situation in which I am using an internet based voip service, the process of loading/reloading asterisk gets critically long when I haven't a working internet connection.

In my case, I have some voip service like:

[wengo]
type=friend
fromdomain=voip.wengo.fr
fromuser=xxxxxxxx
username=xxxxxxxx
secret=*****************
host=voip.wengo.fr
realm=voip.wengo.fr
outboundproxy=213.92.9.206
;outboundproxy=sipproxy.wengo.fr
outboundproxyport=5060
disallow=all
;allow=g729 ;if you have license
allow=ulaw
;allow=alaw
dtmfmode=inband
context=entrantes
insecure=very
qualify=yes
nat=yes
canreinvite=no

Asterisk loads without problems when I have an internet connection, but if I'm disconnected then I have big problems loading asterisk: the loading/reloading process lasts some 10 minutes.

I consider this a considerably important issue, because in such a situation restarting asterisk will let incommunicate all the extensions all the time asterisk lasts in order to end loading.

****** ADDITIONAL INFORMATION ******

Ubuntu edgy
Comments:By: Russell Bryant (russell) 2007-02-26 16:47:05.000-0600

First, you should be using the DNS lookup manager, configured in dnsmgr.conf, to enable managed lookups.  Second, if there are network problems, then there is obviously nothing we can do about it.

By: Russell Bryant (russell) 2007-02-26 16:49:25.000-0600

As it turns out, the DNS manager does not work for chan_sip.  In any case, this is still not a bug in the code.  It is just a feature that nobody has gotten around to implementing yet.

By: donpaolo (donpaolo) 2007-02-26 19:47:11.000-0600

I consider that the issue is not closed.

I think the right behaviour would be that asterisk go on loading the config files without waiting for a possibly inexistent internet connection.

It would be something like parallelize the loading of config files.

I keep considering that in the form in which asterisk loads the config files now, it becomes unusable for many minutes, and that is a mayor issue for a telephone manager like asterisk.

By: Serge Vecher (serge-v) 2007-02-27 10:03:09.000-0600

donpaulo, it is agreed that this would be an important feature to add to Asterisk. However, our policy is to only keep open feature requests issues that have a patch attached.

 The development team is aware of the need for this feature, and may implement it in the feature once the resources are available. In the meanwhile, you can help yourself and the project by writing the code yourself or helping somebody develop it. Remember that we are an open source project, so ask not what Asterisk can do for you, but what you can do for Asterisk.