<p>These functions should be available already in master branch, but exported by the KSR module, not the old sr module:</p>

<ul>
<li><a href="https://github.com/kamailio/kamailio/blob/master/kemi.c#L484-L497">https://github.com/kamailio/kamailio/blob/master/kemi.c#L484-L497</a></li>
</ul>

<p>In lua script you have to use something like:</p>

<pre><code>KSR.setflag(10);
</code></pre>

<p>The KSR is exported as part of the new KEMI, but can be used even if you don't write full routing blocks in Lua:</p>

<ul>
<li><a href="https://www.kamailio.org/wiki/devel/config-engines#lua_config_kemi_engine">https://www.kamailio.org/wiki/devel/config-engines#lua_config_kemi_engine</a></li>
<li><a href="https://github.com/kamailio/kamailio/blob/master/examples/kemi/kamailio-basic-kemi-lua.lua">https://github.com/kamailio/kamailio/blob/master/examples/kemi/kamailio-basic-kemi-lua.lua</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/666#issuecomment-225124843">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AF36ZRvduTDT0I18plQ49OBgFsEgge7Gks5qKSKXgaJpZM4Iytml">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZQDxKNT_6kmlaf0LXxSxXob_M3_Wks5qKSKXgaJpZM4Iytml.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/pull/666#issuecomment-225124843"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>