[Asterisk-Users] Re: pickup account code in agi

Florian Overkamp florian at obsimref.com
Fri Mar 12 00:59:55 MST 2004


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




More information about the asterisk-users mailing list