<p>Allows for assertions which can be enabled or disabled for easier script debugging.</p>

<p>Usage:</p>

<pre><code>    assert($var(foo) == 42, "Whoops, var(foo) wasn't equal to 42");
</code></pre>

<hr>

<h4>You can merge this Pull Request by running</h4>
<pre>  git pull https://github.com/dsanders11/opensips master</pre>
<p>Or view, comment on, or merge it at:</p>
<p>&nbsp;&nbsp;<a href='https://github.com/OpenSIPS/opensips/pull/313'>https://github.com/OpenSIPS/opensips/pull/313</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>New assert script keyword for script debugging</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/OpenSIPS/opensips/pull/313/files#diff-0">action.c</a>
    (25)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/OpenSIPS/opensips/pull/313/files#diff-1">cfg.lex</a>
    (6)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/OpenSIPS/opensips/pull/313/files#diff-2">cfg.y</a>
    (8)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/OpenSIPS/opensips/pull/313/files#diff-3">errinfo.h</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/OpenSIPS/opensips/pull/313/files#diff-4">globals.h</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/OpenSIPS/opensips/pull/313/files#diff-5">main.c</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/OpenSIPS/opensips/pull/313/files#diff-6">route_struct.c</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/OpenSIPS/opensips/pull/313/files#diff-7">route_struct.h</a>
    (2)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/OpenSIPS/opensips/pull/313.patch'>https://github.com/OpenSIPS/opensips/pull/313.patch</a></li>
  <li><a href='https://github.com/OpenSIPS/opensips/pull/313.diff'>https://github.com/OpenSIPS/opensips/pull/313.diff</a></li>
</ul>

<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/pull/313">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/5479561__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyNDY2NDk4MywiZGF0YSI6eyJpZCI6NDA2NzUzMDd9fQ==--2e6b6389eff2da5df09db1ba055081388a2d7d48.gif" width="1" /></p>