<p><a href="https://github.com/telephone-man" class="user-mention">@telephone-man</a> , you are right, whatever you do from script, it should not crash.<br>
The problem is related to $si - you should not use message related variables from an event route (as you do not actually have a sip message here). but, once again, it should not crash.<br>
The solutions are - fix the bogus crash ($si does not expect for internal ip_addr2a() to fail) or, even more, to pre-populate the "fake" msg with some dummy IPs (but I do not like this as it covers a bogus usage -&gt; like trying to use some variable outside their context)</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/817#issuecomment-197018717">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AFOcicrDAZqt9wzlHii2tIPMVgwL2RNDks5ptx8UgaJpZM4Hnk4u.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/817#issuecomment-197018717"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>