[asterisk-users] PHP AGI : handle Event /AGI session
mickael ropars
mropars at gmail.com
Fri Nov 20 12:17:24 CST 2009
thanks a lot steve for your answer
the script is launch by a web page so it's a AGI executable
if it was your case which implementation will you choose ?
regards
Mickael
2009/11/20 Steve Edwards <asterisk.org at sedwards.com>
> On Fri, 20 Nov 2009, mickael ropars wrote:
>
> > someone send a URL to call someone a PHP script (script 1) is launch and
> > in its I configure Astmanager in order to make an originating call then
> > my script stop running and Asterisk continue processing the call in an
> > extension when hangup occurs I execute another AGI script (script 2).
>
> Is script1 executed by Asterisk or Apache? If it is Apache, it is not an
> Asterisk Gateway Interface (AGI) executable.
>
> > my concerns is that scipt 2 need same parameters, and mySQL connexions
> > that I script 1
> >
> > 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
>
> The 2 scripts execute as 2 separate processes. They cannot share
> connections to either MySQL or AMI. You can pass the parameters through
> the database or are you contemplating setting a bunch of channel variables
> in script1 and reading them in script2?
>
> > 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 ?
>
> The connection to the Asterisk Manager Interface (AMI) is closed when you
> explicitly close it or when the script exits.
>
> --
> Thanks in advance,
> -------------------------------------------------------------------------
> Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
> Newline Fax: +1-760-731-3000
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091120/0e7f442e/attachment.htm
More information about the asterisk-users
mailing list