<h3>Description</h3>
<p>Hello,</p>
<p>When I try to reload ruby scripts with (in linux CLI) :<br>
<code>kamcmd app_ruby.reload</code></p>
<p>This message is returned:<br>
<code>error: 500 - command app_ruby.reload not found</code></p>
<p>I double checked the command name, module status, and debug logs.<br>
I can run other kamcmd commands and can use ruby scripts.</p>
<h3>Troubleshooting</h3>
<h4>Reproduction</h4>
<p>in linux CLI:<br>
<code>yum install kamailio-ruby</code></p>
<p>in kamailio.cfg<br>
<code>loadmodule "app_ruby.so"</code><br>
<code>modparam("app_ruby", "load", "/etc/kamailio/ruby/myscript.rb")</code></p>
<p>in linux CLI:<br>
<code>kamcmd app_ruby.reload</code></p>
<h4>Log Messages</h4>
<p>When I execute kamcmd, these debug lines appear:</p>
<pre><code>Dec 13 14:57:30 servername /usr/sbin/kamailio[4479]: DEBUG: ctl [../../core/io_wait.h:380]: io_watch_add(): DBG: io_watch_add(0x7fc7ee451320, 19, 3, 0x2b70310), fd_no=1
Dec 13 14:57:30 servername /usr/sbin/kamailio[4479]: DEBUG: ctl [io_listener.c:442]: handle_new_connect(): handle_stream read: new connection (1) on /var/run/kamailio//kamailio_ctl
Dec 13 14:57:30 servername /usr/sbin/kamailio[4479]: DEBUG: ctl [io_listener.c:495]: handle_stream_read(): handle_stream read: eof on /var/run/kamailio//kamailio_ctl
Dec 13 14:57:30 servername /usr/sbin/kamailio[4479]: DEBUG: ctl [../../core/io_wait.h:602]: io_watch_del(): DBG: io_watch_del (0x7fc7ee451320, 19, -1, 0x10) fd_no=2 called
</code></pre>
<h3>Possible Solutions</h3>
<p>I tried to read kamcmd and app_ruby source code but quickly got lost, so no leads there :)</p>
<p>Tried other combinations to no avail:<br>
<code>kamcmd ruby.reload</code><br>
<code>kamcmd app_ruby_jsdt.reload</code></p>
<h3>Additional Information</h3>
<ul>
<li><strong>Kamailio Version</strong> - output of <code>kamailio -v</code></li>
</ul>
<pre><code>version: kamailio 5.2.0 (x86_64/linux) 535e13
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, 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: 535e13
compiled on 10:26:34 Nov 28 2018 with gcc 4.8.5
</code></pre>
<ul>
<li><strong>Operating System</strong>:<br>
Centos 7.2 64bit</li>
</ul>
<pre><code>Linux servername 3.10.0-327.28.2.el7.x86_64 #1 SMP Wed Aug 3 11:11:39 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
</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/1764">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36Zb-RE6Pq4lVnbMgSMjvPRt2-nubdks5u4koPgaJpZM4ZRjFj">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZdlR0KUWIE5_R7FZR0ADflhMiud8ks5u4koPgaJpZM4ZRjFj.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":"kamcmd app_ruby.reload returns error: 500 - command app_ruby.reload not found (#1764)"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1764"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1764",
"url": "https://github.com/kamailio/kamailio/issues/1764",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>