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
_______________________________________________
-- 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