On Mon, Jul 6, 2009 at 11:37 AM, Carlos Ruiz
Diaz<carlos.ruizdiaz at gmail.com> wrote:> Hello,
>
> if I do a variable assignation using AMI interface, that variable will be
> visible only for the current AMI instance or will be readable for all AMI
> instances?. I will login using the same user, concurrently. A program will
> write a global variable using the same name and if asterisk don't have
any
> scope rules I have to find another way to do what I want.
If you want to maintain scope for a variable across multiple calls you
should maintain the value of that variable outside of asterisk and
keep setting it for each new phonecall. Global variables in asterisk
do not do what you are describing.
AMI does have something where you can name a particular AMI session,
and then communication for that session will care that name. That
should not be confused with a system-wide global variable.