thanks a lot steve for your answer<br><br>the script is launch by a web page so it&#39;s a AGI executable <br><br>if it was your case which implementation will you choose ?<br><br>regards<br><br>Mickael<br><br><br><br><div class="gmail_quote">
2009/11/20 Steve Edwards <span dir="ltr">&lt;<a href="http://asterisk.org">asterisk.org</a>@<a href="http://sedwards.com">sedwards.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Fri, 20 Nov 2009, mickael ropars wrote:<br>
<br>
&gt; someone send a URL to call someone a PHP script (script 1) is launch and<br>
&gt; in its I configure Astmanager in order to make an originating call then<br>
&gt; my script stop running and Asterisk continue processing the call in an<br>
&gt; extension when hangup occurs I execute another AGI script (script 2).<br>
<br>
</div>Is script1 executed by Asterisk or Apache? If it is Apache, it is not an<br>
Asterisk Gateway Interface (AGI) executable.<br>
<div class="im"><br>
&gt; my concerns is that scipt 2 need same parameters, and mySQL connexions<br>
&gt; that I script 1<br>
&gt;<br>
&gt; so at the end of the script 1 the mySQL connection is closed and I need<br>
&gt; to pass many parameters to script 2 through asterisk<br>
<br>
</div>The 2 scripts execute as 2 separate processes. They cannot share<br>
connections to either MySQL or AMI. You can pass the parameters through<br>
the database or are you contemplating setting a bunch of channel variables<br>
in script1 and reading them in script2?<br>
<div class="im"><br>
&gt; so my idea is to use AGI commands in script 1, and then not use the<br>
&gt; extension on the asterisk server. but I have one question if the call<br>
&gt; duration is hours then the connection to Astmanager will closed ? what&#39;s<br>
&gt; the timeout value for Astmanager ?<br>
<br>
</div>The connection to the Asterisk Manager Interface (AMI) is closed when you<br>
explicitly close it or when the script exits.<br>
<div class="im"><br>
--<br>
Thanks in advance,<br>
-------------------------------------------------------------------------<br>
Steve Edwards       <a href="mailto:sedwards@sedwards.com">sedwards@sedwards.com</a>      Voice: +1-760-468-3867 PST<br>
Newline                                              Fax: +1-760-731-3000<br>
<br>
_______________________________________________<br>
</div><div><div></div><div class="h5">-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</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>