I'm trying to pick up the account code that has been set already earlier in the dial plan inside an AGI script. So far what I have is: $user = $AGI ->get_variable('ACCOUNTCODE'); But it only returns a ' 0 '?? Is there a way around this? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040311/7562309f/attachment.htm
Hi,> -----Original Message----- > I'm trying to pick up the account code that has been set > already earlier in the dial plan inside an AGI script. > > So far what I have is: > > $user = $AGI ->get_variable('ACCOUNTCODE'); > > But it only returns a ' 0 '?? > Is there a way around this?Why don't you just read the environment at start of your AGI script (agi_accountcode exists). Florian