<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="monospace">Hi Chris,<br>
<br>
Only one msg per process at a time, but my advice, do not make
plans based on (3), it may be a bad, risky practice.<br>
<br>
Regards,<br>
</font>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
<a class="moz-txt-link-freetext" href="https://www.siphub.com">https://www.siphub.com</a></pre>
<div class="moz-cite-prefix">On 23.02.2024 10:21, Chris Warr via
Users wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAE8H83VB5b3aZFLprEwoPptkJe870PT0ce+Lh3Np79TsppH1LA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi, I see in the documentation for $var below.
Regarding point 3. Does a single opensips process handle a
single message at a time? Or are they multi-threaded processing
many messages at one time? My concern being if I'm using $var
for message processing, will my messages corrupt each other's
variables?<br>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature"><br>
</div>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">Naming: **$var(name)**<br>
Hints:<br>
1. if you want to start using a script variable in a route,
better initialize it with same value (or reset it), otherwise
you may inherit a value from a previous route that was
executed by the same process.<br>
2. script variables are faster than AVPs, as they directly
reference a memory location.<br>
3. the value of script variables persists over a OpenSIPS
process.<br>
</div>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature"><br>
</div>
<div class="gmail_signature" data-smartmail="gmail_signature">Thanks,</div>
<div class="gmail_signature" data-smartmail="gmail_signature">Chris.</div>
<div class="gmail_signature" data-smartmail="gmail_signature"><br>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>