[asterisk-users] Channel Variables in a Call file?

J. G. palletboy at gmail.com
Tue Jul 21 07:26:28 CDT 2009


Yeah, I accidentally pressed "Send" too early on my question - I knew I was
going to get a google back, was trying to beat the buzzer on a reply!

I am using as stated, but when I attempt to retrieve the channel variable in
an AGI, I get nothing back correctly

In my Call file:
Setvar: LICENSE=test

In my AGI
$AGI->get_full_variable('LICENSE');
(or)
$AGI->get_variable('LICENSE');

AGI Rx << GET FULL VARIABLE LICENSE
AGI Tx >> 200 result=1 (LICENSE)
AGI Rx << NOOP --> LICENSE = LICENSE
(instead of 'test')

So, is my Call file syntax incorrect?  Is my AGI retrieve incorrect?

Thanks,
PB

On Tue, Jul 21, 2009 at 8:03 AM, Doug Lytle <support at drdos.info> wrote:

> J. G. wrote:
> > Hey gang,
> > I'm trying to find a) If you can put channel variables into a Call
> > file and b) what the appropriate syntax is.
>
> Google is your friend:
>
> http://www.the-asterisk-book.com/unstable/call-file.html
>
>
>      Parameters
>
> These parameters may be used in call files:
>
> |Setvar: <var=value>|
>    /|Setvar:|/ lets you set one or more channel variables.
>
>
>
> Doug
>
>
> --
>
> Ben Franklin quote:
>
> "Those who would give up Essential Liberty to purchase a little Temporary
> Safety, deserve neither Liberty nor Safety."
>
>
> _______________________________________________
> -- 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/20090721/e82a40f9/attachment.htm 


More information about the asterisk-users mailing list