[asterisk-users] restart system from extension

Tzafrir Cohen tzafrir.cohen at xorcom.com
Thu Apr 6 12:25:07 CDT 2017


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



More information about the asterisk-users mailing list