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

Jonathan k. Creasy jonathan at bluegrass.net
Fri Aug 11 07:27:41 MST 2006


<?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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060811/243f1074/attachment.htm


More information about the asterisk-users mailing list