Is there any way to use selects in KEMI? I understand it's syntax sugar, but maybe there's a workaround.
________________________________
Regards,
Alexandru Covalschi
VoIP Engineer and System Administrator
tel: +380 97 24 75445
if kamailio doe snot use TLS all the mechanish in atuh module are send the
pasword nude to the network?
Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com
Hello list,
I'm trying to use async evapi with app_python3 KEMI, but I don't know how to get t_suspend variables.
What am I doing is connecting to evapi via telnet and making a call, which successfully reaches that point:
if KSR.evapi.async_relay(str(KSR.pv.get("$T(id_label)"))):
KSR.xlog.xinfo("processing suspended in transaction [" + str(KSR.pv.get("$T(id_index)")) + ":" + str(KSR.pv.get("$T(id_label)")) +"]\n");
I have the id_label in the log, but in telnet I have None.
How can I get transaction index and label transferred using python3 KEMI?
Shall I use KSR.x.modf (in that case I'm losing almost all KEMI benefits)?..
________________________________
Regards,
Alexandru Covalschi
VoIP Engineer and System Administrator
tel: +380 97 24 75445
Hi Guys,
After enabling TLS i am getting following error in Kamailio 5.1
/usr/sbin/kamailio[2214]: ERROR: tls [tls_util.h:42]: tls_err_ret():
load_cert:error:20074002:BIO routines:file_ctrl:system lib
/usr/sbin/kamailio[2214]: ERROR: tls [tls_util.h:42]: tls_err_ret():
load_cert:error:140DC002:SSL routines:use_certificate_chain_file:system lib
/usr/sbin/kamailio[2214]: ERROR: <core> [core/sr_module.c:940]:
init_mod_child(): error while initializing module tls
(/usr/lib/x86_64-linux-gnu/kamailio/modules/tls.so) (idx: 0 rank: -127
desc: [main])
My tls.conf is as follows:
[server:default]
method = TLSv1+
verify_certificate = no
require_certificate = no
private_key = /etc/kamailio/keys/my.key.pem
certificate = /etc/kamailio/keys/my.crt.pem
#ca_list = /etc/kamailio/tls/cacert.pem
#crl = /etc/kamailio/tls/crl.pem
# This is the default client domain, settings
# in this domain will be used for all outgoing
# TLS connections that do not match any other
# client domain in this configuration file.
# We require that servers present valid certificate.
#
[client:default]
#method = TLSv1
verify_certificate = yes
require_certificate = yes
Please hep me to understand and fix the issue.
Hello,
Hello dear list,
Today, I have had mutiples crashes. It seems it linked to tm.so module.
-rw------- 1 root kamailio 4299702272 Feb 25 13:08 core.kamailio.sig11.29204
-rw------- 1 root kamailio 1453023232 Feb 25 13:12 core.kamailio.sig11.29203
-rw------- 1 root kamailio 1416065024 Feb 25 13:12 core.kamailio.sig11.29207
-rw------- 1 root kamailio 4299681792 Feb 25 13:16 core.kamailio.sig11.19047
-rw------- 1 root kamailio 2108506112 Feb 25 13:20 core.kamailio.sig11.19043
-rw------- 1 root kamailio 4299689984 Feb 25 13:34 core.kamailio.sig11.19247
-rw------- 1 root kamailio 4299681792 Feb 25 13:34 core.kamailio.sig11.19246
-rw------- 1 root kamailio 4299698176 Feb 25 13:35 core.kamailio.sig11.19248
-rw------- 1 root kamailio 4299689984 Feb 25 13:35 core.kamailio.sig11.19243
-rw------- 1 root kamailio 4299685888 Feb 25 13:35 core.kamailio.sig11.19244
-rw------- 1 root kamailio 4299689984 Feb 25 13:36 core.kamailio.sig11.19242
root@sbc:/var/cores# gdb /usr/local/sbin/kamailio core.kamailio.sig11.29204
GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/sbin/kamailio...done.
[New LWP 29204]
warning: .dynamic section for "/lib/x86_64-linux-gnu/libpthread.so.0" is
not at the expected address (wrong library or version mismatch?)
Warning: couldn't activate thread debugging using libthread_db: Cannot find
new threads: generic error
warning: File "/lib/x86_64-linux-gnu/libthread_db-1.0.so" auto-loading has
been declined by your `auto-load safe-path' set to
"$debugdir:$datadir/auto-load".
To enable execution of this file add
add-auto-load-safe-path /lib/x86_64-linux-gnu/libthread_db-1.0.so
line to your configuration file "/root/.gdbinit".
To completely disable this security protection add
set auto-load safe-path /
line to your configuration file "/root/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual. E.g., run from the
shell:
info "(gdb)Auto-loading safe path"
warning: Unable to find libthread_db matching inferior's thread library,
thread debugging will not be available.
Warning: couldn't activate thread debugging using libthread_db: Cannot find
new threads: generic error
warning: File "/lib/x86_64-linux-gnu/libthread_db-1.0.so" auto-loading has
been declined by your `auto-load safe-path' set to
"$debugdir:$datadir/auto-load".
warning: Unable to find libthread_db matching inferior's thread library,
thread debugging will not be available.
Core was generated by `/usr/local/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -f /usr/local/etc/ka'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f68b9bb4515 in reply_received (p_msg=0x7f693ccd5cc8) at
t_reply.c:2240
2240 last_uac_status=uac->last_received;
(gdb)
Any ideas?
Regards
Abdoul
Hi there!
we have an issue, and it's similar to reported in this thread:
http://sip-router.1086192.n5.nabble.com/exec-warning-td165448.html
We use kamailio 5.0.6. When we call route from http_event by url reguest
(code is below)
event_route[xhttp:request] {
set_reply_close();
set_reply_no_connect();
if ($(hu{url.path}) ==”update”) {
route(DO_SMTH);
xhttp_reply("200", "OK”, "", "");
}
route[DO_SMTH]
{
exec_avp(“/usr/bin/who”,”$avp(s:user_)”);
}
we got errors exec like these:
Mar 1 10:51:05 test kamailio[21035]: WARNING: exec [exec_hf.c:464]:
append_fixed_vars(): uri not parsed
Mar 1 10:51:05 test kamailio[21035]: WARNING: exec [exec_hf.c:482]:
append_fixed_vars(): orig URI not parsed
Mar 1 10:51:05 test kamailio[21035]: ERROR: exec
[../../core/char_msg_val.h:51]: char_msg_val(): can't calculate char_value
due to a parsing error
Mar 1 10:51:05 test kamailio[21035]: WARNING: exec [exec_hf.c:492]:
append_fixed_vars(): no tid can be determined
Mar 1 10:51:05 test kamailio[21035]: ERROR: exec [exec_hf.c:504]:
append_fixed_vars(): no to-tag
But when we call route(DO_SMTH) from request_route - there are no such
errors
We think that it is something related to the nature of event_routes,
anything can be done with this? Should I create an issue on github?
thanks for insights and ideas
Yes, retransmissions of initial INVITE from Carrier. Makes perfect sense, I understand now.
Thanks Gentlemen!
JR
Reinvites are in-dialog requests; they would only be sent within the
context of an established dialog (2xx response, end-to-end ACK, the
whole works).
Perhaps what you are referring to is not reinvites but retransmissions
of the initial INVITE?
If so, have a look at this option:
https://kamailio.org/docs/modules/5.2.x/modules/tm.html#tm.p.cancel_b_method
in concert with something like this:
failure_route[...] {
if(t_is_canceled())
exit;
# The scenario you're after.
if(t_branch_timeout()) {
t_reply("503", "Service Unavailable");
exit;
}
}
-- Alex
Hi,
I am looking for a option to execute multiple command via JSONRPCS or
XMLRPC. To avoid multiple tCP connections .
eg: I have multiple kamailio load balancer server running, need to update
the dispatcher record in a single command.
Regards,
Vimalesh S
Hi All,
My mind is not right on this one, need a pointer. Here is the simple scenario:
Carrier><kamailio proxy><end device
The end device is a static IP, the proxy dips database and knows where
to send numbers destined for the end device, but if there is no
response from the end device (it's off-line), how do I time-out the
transaction and send a 503 'Service Unavailable' back to the first leg
for the carrier to stop re-invites?
I assume I need a new [FAIL_TWO] route that handles this event.
Thanks.
JR
--
JR Richardson
Engineering for the Masses
Chasing the Azeotrope