[asterisk-users] Problem with AGI Script

Matt mhoppes at gmail.com
Mon Nov 19 09:11:54 CST 2007


What exactly does the write("SET VARIABLE myvariable"); do?

I understand the Set(CALLERID.... sets the calleridnumber equal to
${myvariable}, but then do you use the write to read that in?  Or is that to
dump something back out?

Just want to make sure I understand clearly.

On Nov 19, 2007 6:00 AM, Chris Blunt <chris.blunt at entropy-it.com> wrote:

> Hello,
>
> I had a similar problem with a PHP AGI script.  I'm not sure if it's a bug
> or what, but it seems the new way of setting variables is an application,
> no
> way could I get it to work.
>
> In the end I set a user defined variable in the AGI like this: write("SET
> VARIABLE myvariable");
>
> Then in the dial play did something like
> Set(CALLERID(number)=${myvariable})
>
> It may not be the most elegant solution but it works fine for me.
>
> Chris
>
>
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Eric
> "ManxPower" Wieling
> Sent: 18 November 2007 16:48
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [asterisk-users] Problem with AGI Script
>
> didier wrote:
> > Callerid(number) ?  or callerid(num) ?
>
> Grasshopper, you will find many answers you seek by looking in
> /path/to/src/asterisk-1.4/doc/channelvariables.txt
>
> _______________________________________________
> --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
>
>
> _______________________________________________
> --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/20071119/1dcf7bbd/attachment.htm 


More information about the asterisk-users mailing list