magnus.b at inputinterior.se
2011-Mar-28 12:41 UTC
[asterisk-users] Variable. AMI and dialplan
Hi! Guess I am doing something totally wrong here: Some smart person could maybe plz tell me what.
On 3/28/2011 7:41 AM, magnus.b at inputinterior.se wrote:> Hi! > > Guess I am doing something totally wrong here: Some smart person could > maybe plz tell me what. > > From AMI, I set a variable Action: Setvar\r\nVariable:x\r\n\Value: > 5\r\n\r\n > > From dialplan i can ?access? the variable ?x? and see the value ?5? > From dialplan i modify ?x? to ?8?. > > But from AMI i still se ?x? as ?5? not ?8?. > > /MagnusMaybe you need to perform a GetVar to read the new value of that channel variable -- Sherwood McGowan <sherwood.mcgowan at gmail.com> Carrier, ITSP, Call Center, and PBX Solutions Consultant
magnus.b at inputinterior.se
2011-Mar-28 13:18 UTC
[asterisk-users] Variable. AMI and dialplan
I did use Action: Getvar when i read it back in AMI. On 3/28/2011 7:41 AM, magnus.b at inputinterior.se wrote:> Hi! > > Guess I am doing something totally wrong here: Some smart person could > maybe plz tell me what. > > From AMI, I set a variable Action: Setvar\r\nVariable:x\r\n\Value: > 5\r\n\r\n > > From dialplan i can ?access? the variable ?x? and see the value ?5? > From dialplan i modify ?x? to ?8?. > > But from AMI i still se ?x? as ?5? not ?8?. > > /MagnusMaybe you need to perform a GetVar to read the new value of that channel variable -- Sherwood McGowan <sherwood.mcgowan at gmail.com> Carrier, ITSP, Call Center, and PBX Solutions Consultant