<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 4/7/14, 4:53 AM, Salaheddine Elharit
wrote:<br>
</div>
<blockquote
cite="mid:CAHexamuyTSWjT8z2OtQe2JnSfMd+6uTQ5zgRWj1gzyzZG3w1Uw@mail.gmail.com"
type="cite">
<div dir="ltr">hello list,
<div><br>
</div>
<div style="">i have a question i don't know if there is any
possibility to stop asterisk using a call for exp:</div>
<div style=""><br>
</div>
<div style="">when i call a number 0522xxxxxx i want to excute a
script or any idea to stop asterisk automatically</div>
<div style=""><br>
</div>
</div>
</blockquote>
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)<br>
<blockquote
cite="mid:CAHexamuyTSWjT8z2OtQe2JnSfMd+6uTQ5zgRWj1gzyzZG3w1Uw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div style="">i use asterisk 1.4.43 </div>
<div style=""><br>
</div>
<div style="">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 style=""><br>
</div>
<div style="">thanks and regards.<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Technical Support
<a class="moz-txt-link-freetext" href="http://www.cellroute.net">http://www.cellroute.net</a></pre>
</body>
</html>