[asterisk-users] FW: Can you reload only one conf file?

Steve Totaro stotaro at first-notification.com
Fri Aug 10 08:08:58 CDT 2007


It wasn't that long ago that repeated reloads would cause an Asterisk 
system to slow and eventually crash.  I think that bug was fixed but I 
would still only use reload on specific modules, not a total reload.

Thanks,
Steve

Mike wrote:
> Ken,
>  
> You understood correctly.
>  
> For those who answered and didn't understand the need, I wanted to 
> reload automatically (based on some external event) part of my conf 
> file.  I only felt that since this was automatic, it would have been 
> better to limit this reloading to only the part that mattered as 
> opposed to the whole thing. For all I know, this could be triggered 
> while I am coding some new thing and could screw up my dialplan.
>  
> But I guess I won't be doing this.
>  
> Regards,
>  
> Mike
>  
>  
>  
>
> ------------------------------------------------------------------------
> *From:* asterisk-users-bounces at lists.digium.com 
> [mailto:asterisk-users-bounces at lists.digium.com] *On Behalf Of *Ken 
> Williams
> *Sent:* Thursday, August 09, 2007 22:01
> *To:* Asterisk Users Mailing List - Non-Commercial Discussion
> *Subject:* Re: [asterisk-users] FW: Can you reload only one conf file?
>
> I think you misunderstood the question Stephen.  I believe he's saying 
> he's got extension.conf & sub_extension.conf that's included.  You can 
> do a dialplan reload to reload both files, but for whatever reason he 
> only wants to load the sub_extension.conf.  Both are related to the 
> same module, one included in the other.
>  
> Clear as mud?
>
> ------------------------------------------------------------------------
> *From:* Stephen Bosch
> *Sent:* Thu 8/9/2007 7:40 PM
> *To:* Asterisk Users Mailing List - Non-Commercial Discussion
> *Subject:* Re: [asterisk-users] FW: Can you reload only one conf file?
>
> Paul wrote:
> > Mike wrote:
> > 
> >>  
> >> In the interest of making things cleaner, I'd like to know if I can
> >> just reload one single conf file. Let's say I have two files,
> >> extensions.conf which includes small_file.conf.
> >>  
> >> I only want "small_file.conf" reloaded, not the main file.  Is this at
> >> all possible?    
> >>  
> >> Mike
> > 
> > Not possible without modifying the asterisk source code.
>
> Yes, it is possible.
>
> > asterisk*CLI> help reload
> > Usage: reload [module ...]
> >        Reloads configuration files for all listed modules which support
> >        reloading, or for all supported modules if none are listed.
>
> If you only want to reload configs for a specific module, just reload
> that module. Example:
>
> > asterisk*CLI> reload chan_sip.so
> >     -- Reloading module 'chan_sip.so' (Session Initiation Protocol (SIP))
> >  Reloading SIP
> >   == Parsing '/etc/asterisk/sip.conf': Found
> >   == Parsing '/etc/asterisk/sip_notify.conf': Found
> > asterisk*CLI>                                                             
>
> -Stephen-
>
>   




More information about the asterisk-users mailing list