<p>I think we should also ask the question: "Should it work?". Because the pattern parameter of algorithm 9 only supports a unique type of scripting variable: it must be in shared memory, and it must be global (not related to any tm structs), since concurrent reads from multiple processes must return the same results for each destination URI.</p>

<p>So, the only vars that fit into this profile seem to be:</p>

<ul class="task-list">
<li>$stat()</li>
<li>$shv()</li>
</ul>

<p>Please correct me if it actually makes sense to use $var in the first place. I would suggest a fixup function that mandates the use of the above-mentioned globally shared variables.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/300#issuecomment-77854028">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOcicQkiWmkHegCYXBfXVU_O53wlx3Kks5nzZmfgaJpZM4CW4NI.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/OpenSIPS/opensips/issues/300#issuecomment-77854028"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>