<div dir="ltr">thanks a lot it works correctly </div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-04-07 12:08 GMT+00:00 Andres <span dir="ltr"><<a href="mailto:andres@telesip.net" target="_blank">andres@telesip.net</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div class="">
<div>On 4/7/14, 4:53 AM, Salaheddine Elharit
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">hello list,
<div><br>
</div>
<div>i have a question i don't know if there is any
possibility to stop asterisk using a call for exp:</div>
<div><br>
</div>
<div>when i call a number 0522xxxxxx i want to excute a
script or any idea to stop asterisk automatically</div>
<div><br>
</div>
</div>
</blockquote></div>
Sure, try something like:<br>
[custom-stop]<br>
exten => 052212345,1,System(sudo /usr/sbin/service asterisk stop)<br>
<br>
(you need to give the asterisk owner permission to execute 'service'
comand via sudo)<div class=""><br>
<blockquote type="cite">
<div dir="ltr">
<div>i use asterisk 1.4.43 </div>
<div><br>
</div>
<div>NB: with mysql using a database i can insert into
table using php without issue. but now with SSH how can i do </div>
<div><br>
</div>
<div>thanks and regards.<br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</blockquote>
<br>
<br>
</div><span class="HOEnZb"><font color="#888888"><pre cols="72">--
Technical Support
<a href="http://www.cellroute.net" target="_blank">http://www.cellroute.net</a></pre>
</font></span></div>
<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></blockquote></div><br></div>