[asterisk-dev] Reload module

Matthew Jordan mjordan at digium.com
Thu May 24 07:36:32 CDT 2012


----- Original Message -----
> From: "Yaroslav Panych" <panych.y at gmail.com>
> To: "Asterisk Developers Mailing List" <asterisk-dev at lists.digium.com>
> Sent: Thursday, May 24, 2012 7:23:41 AM
> Subject: [asterisk-dev]  Reload module
> 
> Hi
> 
> Is there any possibility to load/unload/reload specific module from
> other C module?

Yes - take a look at ast_module_reload.  The CLI command 'module reload'
uses this function to reload a specific Asterisk module.

> Or at least how to run cli command?

That would be rather inefficient :-)

> I urgently need such routines, because my module periodically updates
> some configuration files and must make modules to reread that files.
> Realtime configuration is not usable in my case.
> 
> regards, Yaroslav
> 
> --



--
Matthew Jordan
Digium, Inc. | Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org



More information about the asterisk-dev mailing list