<p>When using</p>
<p><code>KSR.tm.t_next_contacts</code></p>
<p>The following error is shown:</p>
<pre><code>PYT {INVITE}:  5(11047) INFO: <core> [core/kemi.c:86]: sr_kemi_core_info(): [18:27:34.526536] Loading destination routes
PYT {INVITE}:  5(11047) ERROR: *** cfgtrace:request_route=[] c=[] l=0 a=26 n=append_branch
PYT {INVITE}:  5(11047) ERROR: *** cfgtrace:request_route=[] c=[] l=0 a=26 n=append_branch
PYT {INVITE}:  5(11047) INFO: <core> [core/kemi.c:86]: sr_kemi_core_info(): [18:27:34.692021] Test
PYT {INVITE}:  5(11047) ERROR: tm [t_fwd.c:1723]: t_forward_nonack(): no branches for forwarding
PYT {INVITE}:  5(11047) ERROR: sl [sl_funcs.c:362]: sl_reply_error(): stateless error reply used: I'm terribly sorry, server error occurred (1/SL)
PYT {INVITE}:  5(11047) INFO: <core> [core/receive.c:277]: receive_msg(): request-route executed in: 167884 usec
</code></pre>
<p>Replacing the line that doesn't work with:</p>
<p><code>msg.call_function("t_next_contacts")</code></p>
<p>makes the script run as expected.</p>
<p>I'm running the master branch of Kamailio pulled yesterday.</p>

<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/issues/1131">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZZjt5dJAQHLIA585iM2m_P1nKJHzks5r6z3QgaJpZM4NeRke">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZY4CuY_xkS-bruf-zwkAuFljoKRyks5r6z3QgaJpZM4NeRke.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/1131"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"KEMI Python: Possible bug in TM t_next_contacts (#1131)"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1131"}}}</script>