[Asterisk-Users] Fast AGI Options. Eeeek!
Sig Lange
sig.lange at gmail.com
Wed Jan 25 20:19:38 MST 2006
On 1/25/06, Douglas Garstang <dgarstang at oneeighty.com> wrote:
>
> Some questions regarding calling Fast AGI from the dial plan.
>
> Considering that the server side of the Fast AGI has to be able to a) use
> threading and b) connect to MySQL, this causes some serious limitations. I'm
> not a C programmer, so development options are either perl or python.
In ref to using perl, You can't connect to the database for each thread?
It appears that the perl DBI isn't thread safe, so that rules out Perl.
> Python's database interfaces are apparently thread safe _to a point_, so
> that seems like a better idea. I'd prefer to stick with Perl because I am
> more familar with it, but oh well...
>
> Has anyone done this? Was it successful? Did you control the entire dial
> plan logic from the AGI, or did you just make AGI calls as necessary to look
> certain things up? What about iterative queries where you had to maintain
> the state from one call of the AGI to the next? Did you stay in the AGI
> until control was complete, or did you return control to the Asterisk dial
> plan after every lookup, where it performed some actions, and then you
> returned to the AGI.... if this was the way you did it, how did you maintain
> the database state from one call to the next???
Anytime I decide to include AGI into an application, I try to keep most of
the code and logic inside the AGI. I have successfully written FastAGI
applications in python, and it was a good experience.
What state are you speaking of? I don't quite follow.
Did you have multiple AGI scripts, broken down by function, or did you have
> one AGI script that was passed a value that specified it's function, and
> then you branched into some section of this all-encompassing AGI based on
> the value passed?
>
> Thanks,
> Doug.
>
>
>
>
>
>
>
>
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>
--
Sig Lange
http://www.signuts.net/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060125/08631390/attachment.htm
More information about the asterisk-users
mailing list