[asterisk-users] PHP/AGI/SetVar Issue
Philipp Kempgen
philipp.kempgen at amooma.de
Fri Jun 5 15:29:19 CDT 2009
Steve Edwards schrieb:
> On Fri, 5 Jun 2009, Philipp Kempgen wrote:
>> Steve Edwards schrieb:
>>>
>>> One of my AGIs sets almost 600 channel variables.
>>
>> Wow that's a lot. Why would you do that?
>
> Why? That's always a tough question :)
>
> It's a "survey" system. Ask a question, record (voice or DTMF) a response,
> maybe branch based on a single DTMF.
>
> All the "steps" are stored in the database.
>
> When a call comes in, an AGI looks up the steps for the DNIS and loads all
> the variables of the form:
>
> STEP-01-DATA -- name of variable, branch targets, etc
> STEP-01-TYPE -- types are BRANCH, DTMF, END, PROMPT, VOICE, etc.
> .
> STEP-xx-DATA
> STEP-xx-TYPE
>
> (There's actually 8 variables per step. One customer has 75 steps. Thus,
> 600 channel variables.)
> The dialplan (in AEL) just loops through the indexes. A switch statement
> determines which AGI is invoked. A branch just changes the index. I never
> touch the database again until call completion.
That's an interesting idea!
Thanks for the explanation.
Philipp Kempgen
--
AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de
Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de
Videos of the AMOOCON VoIP conference 2009 -> http://www.amoocon.de
--
More information about the asterisk-users
mailing list