[asterisk-users] Help getting info from caller
Steve Totaro
stotaro at totarotechnologies.com
Sat Jan 2 10:47:24 CST 2010
On Sat, Jan 2, 2010 at 11:45 AM, Steve Totaro <
stotaro at totarotechnologies.com> wrote:
>
>
> On Sat, Jan 2, 2010 at 9:01 AM, Landy Landy <landysaccount at yahoo.com>wrote:
>
>> Hello. Happy New Year to everyone.
>>
>> I have a small WISP and would like to have customers to call our number to
>> check their balance. I am planning on writing an AGI with php so it can get
>> the customer info from the customer database. I don't know how to interact
>> with the caller while in the agi script so this is what I have in mind:
>>
>>
>> [test-agi]
>> exten => 33,1,Answer()
>> exten => 33,n,Wait(0.5)
>> exten => 33,n,BackGround(please-enter)
>> exten => 33,n,BackGround(customer-account)
>> exten => 33,n, ---- I would like to set a variable here but don't know how
>> -----
>> exten => 33,n,BackGround(enter-password)
>> exten => 33,n, ---- I would like to set a variable here but don't know how
>> -----
>> exten => 33,n,AGI(testphp.agi,${ACCOUNT},${PASSWORD})
>> ---- receive the balance here from agi ----
>>
>> exten => 33,n,Verbose(".... This is agi status ...${AGISTATUS}...")
>> exten => 33,n,hangup()
>>
>> I've never worked with agi but, I'm reading some documents I found online
>> but, need more help trying to get this working.
>>
>> Thanks in advanced for your help.
>>
>>
> I suggest checking out both ASTCC and ASTCC. I learned a great deal by
> dissecting the AGI scripts and dialplan pieces.
>
> It is very helpful to watch an AGI run on the console with AGI debugging
> turned on.
>
> Thanks,
> Steve T
>
Sorry, meant to say ASTCC and ASTPP.
ASTPP is much more powerful than ASTCC, thanks to Darren and may just be a
turn key solution for you.
Thanks,
Steve T
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100102/a805405c/attachment.htm
More information about the asterisk-users
mailing list