On Fri, 2 Apr 2010, salaheddine elharit wrote:
thank you for your response but i need this solution as soon as possible
to restart the asterisk service via a agent poste
if ther is any solution please
Are you asking for clues or are you asking somebody to write it for you?
General outline (off the top of my head) would be to add an entry to
/etc/sudoers to allow the user executing the httpd process to execute
/etc/init.d/asterisk (and maybe /etc/init.d/{zaptel,dahdi) and then add a
CGI to the web server that executes something like:
system('sudo -u <user-running-asterisk-process> /etc/init.d/asterisk restart');
If you are asking someone to write the PHP code, most coders respond well
to an offer of compensation -- $$$, beer, etc.
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards [email protected] Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users