Hi all,<br><br>I need some advice to know how to handle event in a PHP agi. do you have an exemple of how to it ?<br><br>more over I need some advices. currently I have the following SW architecture <br><br>someone send a URL to call someone<br>
a PHP script (script 1) is launch and in its I configure Astmanager in order to make an originating call<br>then my script stop running and Asterisk continue processing the call in an extension<br>when hangup occurs I execute another AGI script (script 2).<br>
<br>my concerns is that scipt 2 need same parameters, and mySQL connexions that I script 1<br><br>so at the end of the script 1 the mySQL connection is closed and I need to pass many parameters to script 2 through asterisk<br>
<br>so my idea is to use AGI commands in script 1, and then not use the extension on the asterisk server. but I have one question if the call duration is hours then the connection to Astmanager will closed ? what's the timeout value for Astmanager ?<br>
<br>the other solution is to use AGI session but I don't know how it works, and I don't don't know if my mySQL connection will still being up<br><br>Do you have an other solution to keep mySQL connection UP and not passing several through asterisk ?<br>
<br>Thanks a lot for your help<br><br>regards<br><br>Mickael<br><br><br><br> <br>