Re: [asterisk-users] restart system from extension

2017-04-07 Thread J Montoya or A J Stiles
On Thursday 06 Apr 2017, Atux Atux wrote: > hi. i would like to be able to reboot the system from my extension. is that > possible? if yes, how? It's possible, with something this in extensions.conf; exten => 99,1,NoOp(Restarting server now) exten => 99,n,System(shutdown -r now) Then

Re: [asterisk-users] restart system from extension

2017-04-06 Thread Steve Edwards
Please don't top post. 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? Στις 6 Απρ 2017 8:25 μ.μ., ο χρήστης "Tzafrir Cohen" έγραψε: System('sudo

Re: [asterisk-users] restart system from extension

2017-04-06 Thread Atux Atux
Could you give some more details please? Στις 6 Απρ 2017 8:25 μ.μ., ο χρήστης "Tzafrir Cohen" < tzafrir.co...@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,

Re: [asterisk-users] restart system from extension

2017-04-06 Thread Tzafrir Cohen
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

[asterisk-users] restart system from extension

2017-04-06 Thread Atux Atux
hi. i would like to be able to reboot the system from my extension. is that possible? if yes, how? -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: