<p><strong>Nice, it works and won't crash anymore. Thanks!</strong></p>

<p>For the further readers who has same problem and couldn't apply this patch temporarily,<br>
<strong>below is my workaround before this patch:</strong></p>

<ol>
<li>load htable module</li>
<li>wrap a event route using htable:mod-init exported from htable</li>
<li>use $shv to substitute $sel cfg variables as cross-process global setting</li>
<li>then you can use $shv in un-patched evapi event_route
( or other modules which has similar situation, especially when async jobs to a non-main-sip process.  )</li>
</ol>

<pre><code>loadmodule "htable.so"

event_route[htable:mod-init] {
    $shv(MYIP) = $sel(cfg_get.self.MYIP);
}

</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/issues/287#issuecomment-134035171">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZS3P0Y3H2rNz6zeoMp0NeMZcTuZiks5oqppUgaJpZM4FqDy-.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/kamailio/kamailio/issues/287#issuecomment-134035171"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>