<div dir="auto">Could you give some more details please?</div><div class="gmail_extra"><br><div class="gmail_quote">Στις 6 Απρ 2017 8:25 μ.μ., ο χρήστης "Tzafrir Cohen" <<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a>> έγραψε:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, Apr 06, 2017 at 08:16:34PM +0300, Atux Atux wrote:<br>
> hi. i would like to be able to reboot the system from my extension. is that<br>
> possible? if yes, how?<br>
<br>
System('sudo /sbin/reboot')<br>
<br>
You need to allow that in a sudoers file, of course. This may or may not<br>
be a good idea.<br>
<br>
There are a host of other methods to permit unplivilidged users /<br>
processes to run do specific priviliged actions.<br>
<br>
--<br>
Tzafrir Cohen<br>
<a href="tel:%2B972-50-7952406" value="+972507952406">+972-50-7952406</a> mailto:<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.<wbr>com</a><br>
<a href="http://www.xorcom.com" rel="noreferrer" target="_blank">http://www.xorcom.com</a><br>
<br>
--<br>
______________________________<wbr>______________________________<wbr>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer" target="_blank">https://community.asterisk.<wbr>org/</a><br>
<br>
New to Asterisk? Start here:<br>
<a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/<wbr>wiki/display/AST/Getting+<wbr>Started</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/<wbr>mailman/listinfo/asterisk-<wbr>users</a><br>
</blockquote></div></div>