<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-2" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Each variable is specyfied by name and callid <br>
Call number 1. Executing Set("SIP/X-2749", "DL=0") in new stack<br>
Call number 2. Executing Set("SIP/X-9100", "DL=0") in new stack<br>
X - sip provider login and there is -number (i think that this number
is in HEX)<br>
so every "local" variable have diffrent identity<br>
<br>
As You can see Asterisk uses stack so there should be:<br>
1. Executing Set(global_VAR....) in new stack <br>
2. Executing Set(global_VAR....) in new stack<br>
No.1 resolves then next ... ther is no simultaneous operation<br>
it's my opinion. <br>
Try it and see what is shown in * console.<br>
<br>
-FD<br>
<blockquote
 cite="mid2dce5e710605310539y64502a19md8ee8bd77f9fe9bf@mail.gmail.com"
 type="cite">
  <div>If I edit the value of a global variable in my dialplan, could
there be a risk of collision between calls?</div>
  <div> </div>
  <div>More in details: could a global var be used to build a counter
that will be incremented by every call that passes.</div>
  <div>I think when 2 calls come in almost sumiltaneously, they could
both be incrementing and saving the same value... which is bad!</div>
  <div> </div>
  <div>Anybody knows how asterisk handles this?</div>
  <div> </div>
  <div>K</div>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

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>
</body>
</html>