<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Maybe you could use the Asterisk Database. <br>
In 1.4 you can do it with DBGet and DBPut:<br>
<a href="http://www.voip-info.org/wiki/view/Asterisk+cmd+DBget">http://www.voip-info.org/wiki/view/Asterisk+cmd+DBget</a><br>
<a href="http://www.voip-info.org/wiki/view/Asterisk+cmd+DBput">http://www.voip-info.org/wiki/view/Asterisk+cmd+DBput</a><br>
<br>
In 1.6 use DB() function.<br>
<br>
Regards,<br>
Juan<br>
<br>
David Backeberg wrote:
<blockquote
cite="mid:3de056a30907060925p45ac1770w7ef0210c46aa9aa@mail.gmail.com"
type="cite">
<pre wrap="">On Mon, Jul 6, 2009 at 11:37 AM, Carlos Ruiz
Diaz<a class="moz-txt-link-rfc2396E" href="mailto:carlos.ruizdiaz@gmail.com"><carlos.ruizdiaz@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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.
</pre>
</blockquote>
<pre wrap=""><!---->
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.
_______________________________________________
-- Bandwidth and Colocation Provided by <a class="moz-txt-link-freetext" href="http://www.api-digital.com">http://www.api-digital.com</a> --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
</pre>
</blockquote>
<br>
<br>
</body>
</html>