[asterisk-users] asterisk start with php

salaheddine elharit salah.elharit200 at gmail.com
Fri Apr 2 12:49:38 CDT 2010


thank so much again for your response ,

i don't understand what shoud i do if you can please give me more
information how to do in oreder to excute this script

best regards

2010/4/2 Tzafrir Cohen <tzafrir.cohen at xorcom.com>

> On Fri, Apr 02, 2010 at 09:52:31AM -0700, Steve Edwards wrote:
> >> 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
> >
> > On Fri, 2 Apr 2010, Steve Edwards wrote:
> >
> >> 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:
> >
> > "to allow the user executing the httpd process to execute
> > /etc/init.d/asterisk as the user executing the Asterisk process"
>
> Rather: you only need to allow it to run '/etc/init.d/asterisk restart'
>
> No need to allow it any other action (and for 'status' it should already
> have the permissions).
>
> When using sudo and alike, keep in mind to provide the minimal required
> permissions, and keep things as simple as possible.
>
> --
>                Tzafrir Cohen
> icq#16849755              jabber:tzafrir.cohen at xorcom.com<jabber%3Atzafrir.cohen at xorcom.com>
> +972-50-7952406           mailto:tzafrir.cohen at xorcom.com
> http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir
>
> --
> _____________________________________________________________________
> -- 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100402/8193f6ba/attachment.htm 


More information about the asterisk-users mailing list