<div dir="ltr"><div>thank so much again for your response ,</div>
<div> </div>
<div>i don&#39;t understand what shoud i do if you can please give me more information how to do in oreder to excute this script </div>
<div> </div>
<div>best regards<br><br></div>
<div class="gmail_quote">2010/4/2 Tzafrir Cohen <span dir="ltr">&lt;<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="im">On Fri, Apr 02, 2010 at 09:52:31AM -0700, Steve Edwards wrote:<br>&gt;&gt; On Fri, 2 Apr 2010, salaheddine elharit wrote:<br>&gt;&gt;<br>&gt;&gt;&gt; thank you for your response but i need this solution as soon as possible<br>
&gt;&gt;&gt;  <br>&gt;&gt;&gt; to restart the asterisk service via a agent poste<br>&gt;&gt;&gt;  <br>&gt;&gt;&gt; if ther is any solution please<br>&gt;<br>&gt; On Fri, 2 Apr 2010, Steve Edwards wrote:<br>&gt;<br>&gt;&gt; Are you asking for clues or are you asking somebody to write it for you?<br>
&gt;&gt;<br>&gt;&gt; General outline (off the top of my head) would be to add an entry to<br>&gt;&gt; /etc/sudoers to allow the user executing the httpd process to execute<br>&gt;&gt; /etc/init.d/asterisk (and maybe /etc/init.d/{zaptel,dahdi) and then add<br>
&gt;&gt; a CGI to the web server that executes something like:<br>&gt;<br>&gt; &quot;to allow the user executing the httpd process to execute<br>&gt; /etc/init.d/asterisk as the user executing the Asterisk process&quot;<br>
<br></div>Rather: you only need to allow it to run &#39;/etc/init.d/asterisk restart&#39;<br><br>No need to allow it any other action (and for &#39;status&#39; it should already<br>have the permissions).<br><br>When using sudo and alike, keep in mind to provide the minimal required<br>
permissions, and keep things as simple as possible.<br><font color="#888888"><br>--<br></font>
<div>
<div></div>
<div class="h5">              Tzafrir Cohen<br>icq#16849755              <a href="mailto:jabber%3Atzafrir.cohen@xorcom.com">jabber:tzafrir.cohen@xorcom.com</a><br>+972-50-7952406           mailto:<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a><br>
<a href="http://www.xorcom.com/" target="_blank">http://www.xorcom.com</a>  <a href="http://iax:guest@local.xorcom.com/tzafrir" target="_blank">iax:guest@local.xorcom.com/tzafrir</a><br><br>--<br>_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com/" target="_blank">http://www.api-digital.com</a> --<br>New to Asterisk? Join us for a live introductory webinar every Thurs:<br>              <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</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" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br></div>