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

_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to