[asterisk-users] restart system from extension

Atux Atux atuxnull at gmail.com
Thu Apr 6 12:56:44 CDT 2017


Could you give some more details please?

Στις 6 Απρ 2017 8:25 μ.μ., ο χρήστης "Tzafrir Cohen" <
tzafrir.cohen at xorcom.com> έγραψε:

> On Thu, Apr 06, 2017 at 08:16:34PM +0300, Atux Atux wrote:
> > hi. i would like to be able to reboot the system from my extension. is
> that
> > possible? if yes, how?
>
> System('sudo /sbin/reboot')
>
> You need to allow that in a sudoers file, of course. This may or may not
> be a good idea.
>
> There are a host of other methods to permit unplivilidged users /
> processes to run do specific priviliged actions.
>
> --
>                Tzafrir Cohen
> +972-50-7952406           mailto:tzafrir.cohen at xorcom.com
> http://www.xorcom.com
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at: https://community.asterisk.
> org/
>
> New to Asterisk? Start here:
>       https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> 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/20170406/113b9672/attachment.html>


More information about the asterisk-users mailing list