<h3>Description</h3>
<p>An error is thrown if either of these functions are not defined. The documentation states under most of the interpeters:</p>
<blockquote>
<p>If this function is not defined, then Kamailio will not write error messages.</p>
</blockquote>
<p>No such statement is made under <code>app_ruby</code>, however given the ethos of KEMI I presume this. is meant to be consistent.</p>
<p>Defining these functions with just a <code>return</code> causes the error to go away.</p>
<h4>Log Messages</h4>
<pre><code>Mar 23 03:40:00 guest /usr/local/sbin/kamailio[7372]: ERROR: {2 1 INVITE 4aa920b44d1d11e98406c08c608bb89c@<IP-removed>} app_ruby [app_ruby_api.c:108]: app_ruby_print_last_exception(): exception: undefined method `ksr_reply_route' for Kernel:Module
Mar 23 03:40:02 guest /usr/local/sbin/kamailio[7372]: ERROR: {1 2 BYE 4aa920b44d1d11e98406c08c608bb89c@<IP-removed>} app_ruby [app_ruby_api.c:108]: app_ruby_print_last_exception(): exception: undefined method `ksr_onsend_route' for Kernel:Module
</code></pre>
<h3>Additional Information</h3>
<ul>
<li><strong>Kamailio Version</strong> - output of <code>kamailio -v</code></li>
</ul>
<pre><code>version: kamailio 5.3.0-dev4 (x86_64/linux) 97189d
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 97189d
compiled on 13:52:08 Mar 23 2019 with gcc 4.8.5
commit: 97189d7508a3946c2b3de49c178614356d816508
</code></pre>

<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/1904">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZSeD5R3SE6rggOte7DOhFRiOAIDIks5vZazggaJpZM4cEtBI">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36Za1oVrJrj9zS6NrqGCDd-DIQL43Sks5vZazggaJpZM4cEtBI.gif" height="1" width="1" alt="" /></p>
<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://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"KEMI app_ruby - reply_route and onsend_route need to be defined (#1904)"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1904"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1904",
"url": "https://github.com/kamailio/kamailio/issues/1904",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>