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

Stephen Bosch posting at vodacomm.ca
Thu Aug 9 20:40:10 CDT 2007


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