[asterisk-users] Quick One - PHP Script to restart Asterisk

Mojo with Horan & Company, LLC mojo at horanappraisals.com
Fri Aug 11 09:03:59 MST 2006


Or, since you're only touching extensions.conf,

<?php system("asterisk -rx 'extensions reload'"); ?>

instead of a whole restart

Moj

Jonathan k. Creasy wrote:
> <?php
> execute "asterisk -rx 'restart when convienent";
> ?>
>  
> Not the exact syntax but should be enough to get you going.
> 
> ------------------------------------------------------------------------
> *From:* asterisk-users-bounces at lists.digium.com on behalf of Paul Hales
> *Sent:* Fri 8/11/2006 3:51 AM
> *To:* Asterisk Users Mailing List - Non-Commercial Discussion
> *Subject:* Re: [asterisk-users] Quick One - PHP Script to restart Asterisk
> 
> 
> We did this for a customer completely in the dialplan, with the Asterisk
> internal database.
> 
> I don't have the coding here, but I know it involved the read command,
> followed by putting the number keyed into the internal database.
> (as something like ah/mobile)
> 
> later,
> 
> PaulH
> 
> On Fri, 2006-08-11 at 12:56 +1000, Corporate IT Solutions - Michael
> Dunne wrote:
>  > I have spent the best part of half the morning googling a solution to
>  > this but nothing has jumped out at me.
>  >
>  > Is there a simple method of allowing dynamic changes to the extensions
>  > via a web interface without having to go the @home method.
>  >
>  > All I want is to make a webpage to select which person gets the call
>  > redirections after hours, then reload the extensions/pbx_config.
>  >
>  > Basically, a MySQL database will contain the phone numbers of
>  > individuals. Another table will have the "Time Of Day" configuration in
>  > it. The extensions.conf will have all the configurations for the
>  > extensions for after hours redirection.
>  >
>  > All I want is to dump out a new "timeofday.conf" into /etc/asterisk with
>  > the updated refereces, then a last command like reload pbx_config.
>  >
>  > A quick link with example code would be nice.
>  > _______________________________________________
>  > --Bandwidth and Colocation provided by Easynews.com --
>  >
>  > asterisk-users mailing list
>  > To UNSUBSCRIBE or update options visit:
>  >    http://lists.digium.com/mailman/listinfo/asterisk-users
>  >
> 
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> !DSPAM:500,44dc939a84436491211187!
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> 
> !DSPAM:500,44dc939a84436491211187!

-- 
Mojo <mojo at horanappraisals.com>
Office Manager, Horan & Company, LLC
(907) 747-6666 x112



More information about the asterisk-users mailing list