[asterisk-dev] Another bounty - app_reload

Kristian Kielhofner kris at krisk.org
Wed Oct 4 13:43:35 MST 2006


Kristian Kielhofner wrote:
> Hello everyone,
> 
>     It seems to me that a dialplan application that functioned just like 
> "asterisk -rx reload" would be trivial to write.  Unfortunately, even 
> trivial is beyond me...
> 
>     So, here is another bounty!  app_reload should be able to initiate a 
> reload from the dialplan.  It should also be able to (optionally) 
> specify a single module to reload, i.e. chan_sip.so, etc.
> 
>     What do you think?  Simple enough?  Tell me your thoughts!
> 
> P.S. - Yes, yes I know that I could be using realtime, etc. 
> Unfortunately, the required DB support for realtime is still way to big 
> for something like a gumstix!
> 
> -- 
> Kristian Kielhofner

To reply to my own post (and answer several replies)-

	Yes, obviously System("asterisk -rx reload") and other variations would 
work.  But does using the System command to launch another Asterisk 
process to connect to the already running Asterisk instance over a UNIX 
socket to issue a reload bother anyone else?  It sure bothers me... 
Wouldn't having a dialplan app to call ast_module_reload be sooo much 
simpler?

	Sorry, I should have mentioned my objections to using System() in the 
first place.

--
Kristian Kielhofner


More information about the asterisk-dev mailing list