[asterisk-users] dialplan reloading

Ishfaq Malik ish at pack-net.co.uk
Fri Nov 2 05:51:03 CDT 2012


On Fri, 2012-11-02 at 06:25 -0400, Jerry Geis wrote:
> > Hi Jerry,
> >  From the Asterisk CLI, enter the command "core restart when 
> > convenient", this command will restart asterisk only when there is no 
> > incoming call, and when it will close all outgoing calls.
> > With a restart of asterisk should reload all the information: 
> > extensions, sip, agi, iax, voicemail, etc.
> > 
> > Danilo
> > 
> Danilo,
> 
> Ok - but then what if a call comes in "while" it decides to reload -
> or 
> if an AGI is started "while" it decides to reload -   Sure there is
> nothing
> happening at that moment - but lets say "right" after it decides that 
> its "convenient" and before its done - something gets started.
> 
> What to do about that?
> 
> Jerry
> --
Sorry to step in here but I think the 2 of you are talking at cropp
purposes

I initial query was about a dialplan reload, not an asterisk restart.

Jerry, how long does your system take to perform a dialplan reload?
surely it is under a second. 

If you look in the logs, at the end of any dialplan reload (well in 1.8
at least) you will get some time stats such as below

[2012-10-29 00:10:03] VERBOSE[19096] pbx.c:     -- Time to scan old dialplan and merge leftovers back into the new: 0.000041 sec
[2012-10-29 00:10:03] VERBOSE[19096] pbx.c:     -- Time to restore hints and swap in new dialplan: 0.000003 sec
[2012-10-29 00:10:03] VERBOSE[19096] pbx.c:     -- Time to delete the old dialplan: 0.000004 sec
[2012-10-29 00:10:03] VERBOSE[19096] pbx.c:     -- Total time merge_contexts_delete: 0.000048 sec

As you can see in this example it takes under a ten thousandth of a
second.

Is that something to really be concerned about?

Regards

Ish


-- 
Ishfaq Malik <ish at pack-net.co.uk>
Department: VOIP Support
Company: Packnet Limited
t: +44 (0)845 004 4994
f: +44 (0)161 660 9825
e: ish at pack-net.co.uk
w: http://www.pack-net.co.uk

Registered Address: PACKNET LIMITED, 2A ENTERPRISE HOUSE, LLOYD STREET
NORTH, MANCHESTER
SCIENCE PARK, MANCHESTER, M156SE
COMPANY REG NO. 04920552




More information about the asterisk-users mailing list