Hello to everyone,
We are searching for a dispatcher solution connected to a radio network based on Tait products.
Tait is using AIS, a sip protocole with additional functionalities like a push to talk.
Do you think possible to add this functionality to your sip server and maybe working together to propose this product to our client.
Regards.
Andrés Cabezas
Triangle - Vos projets au sommet
### Description
Hello,
When I try to reload ruby scripts with (in linux CLI) :
`kamcmd app_ruby.reload`
This message is returned:
`error: 500 - command app_ruby.reload not found`
I double checked the command name, module status, and debug logs.
I can run other kamcmd commands and can use ruby scripts.
### Troubleshooting
#### Reproduction
in linux CLI:
`yum install kamailio-ruby`
in kamailio.cfg
`loadmodule "app_ruby.so"`
`modparam("app_ruby", "load", "/etc/kamailio/ruby/myscript.rb")`
in linux CLI:
`kamcmd app_ruby.reload`
#### Log Messages
When I execute kamcmd, these debug lines appear:
```
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
```
### Possible Solutions
I tried to read kamcmd and app_ruby source code but quickly got lost, so no leads there :)
Tried other combinations to no avail:
`kamcmd ruby.reload`
`kamcmd app_ruby_jsdt.reload`
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
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
```
* **Operating System**:
Centos 7.2 64bit
```
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
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1764
Module: kamailio
Branch: master
Commit: 3d43f546ddff613c50068c9d47521a15b42f1c7b
URL: https://github.com/kamailio/kamailio/commit/3d43f546ddff613c50068c9d47521a1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-12-13T10:22:35+01:00
tm: error log message about new final reply made info
- can happen due to races of packets on the network
---
Modified: src/modules/tm/t_reply.c
---
Diff: https://github.com/kamailio/kamailio/commit/3d43f546ddff613c50068c9d47521a1…
Patch: https://github.com/kamailio/kamailio/commit/3d43f546ddff613c50068c9d47521a1…
---
diff --git a/src/modules/tm/t_reply.c b/src/modules/tm/t_reply.c
index 859c73cd37..81f041fc60 100644
--- a/src/modules/tm/t_reply.c
+++ b/src/modules/tm/t_reply.c
@@ -477,7 +477,7 @@ static int _reply_light( struct cell *trans, char* buf, unsigned int len,
if (lock) LOCK_REPLIES( trans );
if (trans->uas.status>=200) {
- LM_ERR("can't generate %d reply when a final %d was sent out\n",
+ LM_INFO("can't generate %d reply when a final %d was sent out\n",
code, trans->uas.status);
goto error2;
}