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

Miguel Molina mmolina at millenium.com.co
Tue Jul 21 08:39:25 CDT 2009


J. G. escribió:
> 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
To be sure of the values of the variables you set on the call file, 
while the call is on you can do a CLI "core show channel <tech>/<chan>". 
That will give you a complete information, including channel variables 
and their actual values. If the call happens too fast, add a 
Wait(<seconds>) on your dialplan to keep the channel alive while you 
check its info with the command.

Cheers,

-- 
Ing. Miguel Molina
Grupo de Tecnología
Millenium Phone Center




More information about the asterisk-users mailing list