Hello, I'm trying to use the KSR.x.exit() function in a KEMI python script
but at runtime i get this error:
KSR.x.exit()
AttributeError: 'module' object has no attribute 'exit'
It seems that the exit function is missing even though it is documented.
My kamailio version is: kamailio 5.2.0-dev4 (x86_64/linux) (it's a nightly)
Any idea on what I can do?
Thanks,
Enrico.
Hi,
I am new to Kamailio and coming a bit from the Asterisk side.
My goal is to set up a bunch of users on a Kamailio Instance on AWS
EC2 and get them able to call each other and talk to each other over
the Internet without P2P media stream.
Is rtpproxy the tool that enables that? As far my knowledge is right
Kamailio isn't able to do any sort of RTP handling.
Regards,
Benjamin
Hi. New to the area of Kamailio.
i am did install in debian kamailio with rtpproxy and i have created 3
users 1000-10002 (one for each jitsi user) they talk nice between them.
I have followed this tutorial
http://kb.asipto.com/kamailio:skype-like-service-in-less-than-one-hour and
in less than 5 minutes i had my accounts registered.
i would like to have a media server so the users could hears announcements
and stuff. At the end i would like to have kamailio as a test lab PBX where
i could connect my SIP trunk providers and my users to route calls.
Is there any guide on how to setup a media server and the services, please?
While testing xflags, i noticed that a regular flag that I set AFTER
calling t_newtrans() stays set in onreply_route even when I do not
call t_flush_flags().
In a route block:
if (!t_newtran()) {
ERROR(Failed to create new transaction for $rm <$ru>);
exit;
};
if (!isflagset(19))
INFO(******** flag 19 is NOT set after t_newtran());
setflag(19);
and in onreply_route:
if (isflagset(19))
INFO(********* flag 19 is set);
else
INFO(********* flag 19 is NOT set);
Syslog gets:
Mar 25 11:24:41 trout /usr/bin/sip-proxy[21362]: INFO: ******** flag 19 is NOT set after t_newtran()
Mar 25 11:24:41 trout /usr/bin/sip-proxy[21433]: INFO: ********* flag 19 is set
So what is the point of t_flush_flags()?
-- Juha
Hi guys,
I'm trying to set kamailio to not allow simultaneous calls from the same
user, but if a second call comes in, the behavior desired is to process
that second call and terminate the previous (already active) one.
Say you have call A that creates dialog A.
Then you have call B come in, creates dialog B.
Can I save some info from dialog (call) A in a htable for example, then
check that htable for the needed info from dialog (call) B and terminate
dialog (call) A if it exists?
I think using dlg_get() and dlg_bye() would do the trick but not 100% sure
how they work..
The example in the docs seems exactly the case:
dlg_get --> "Search and set current dialog based on Call-ID, From-Tag and
To-Tag parameters"
if(dlg_get("abcdef", "123", "456"))
{
dlg_bye("all");
}
After the dlg_get() and dlg_bye() what happens to call B? Does the route
continue running or does it end? Will it automatically switch back to the
current dialog or do you have to manually switch back running dlg_get()
again? (Sorry if I'm not explaining myself correctly, let me know if it
sounds confusing)
Does anyone have experience with these two functions?
Thanks,
Joel.
Hello,
i try to get dialog-infos to see how many calls are running on my kamailio.
But i can not figure out what steps are necessary to get this running.
loading the module and the dependencies - check.
set and dlg_flag via module param - check.
MUST i use a DB?! Or what is missing?
kamctl stats | grep dialog
"dialog:active_dialogs = 0",
"dialog:early_dialogs = 0",
"dialog:expired_dialogs = 0",
"dialog:failed_dialogs = 0",
"dialog:processed_dialogs = 0",
the dialog snippets (grep out ouf my config):
#!define DLG_FLAG 8
loadmodule "dialog.so"
modparam("dialog", "dlg_flag", DLG_FLAG)
modparam("dialog", "dlg_match_mode", 1)
modparam("dialog", "rr_param", "did")
modparam("dialog", "profiles_with_value", "active_calls; inbound_calls;
outbound_calls")
modparam("dialog", "send_bye", 1)
modparam("dialog", "enable_stats", 1)
modparam("dialog", "dlg_extra_hdrs", "Hint: inactivity timeout\r\n") #
Added to requests generated locally by the module (e.g. BYE)
modparam("dialog", "track_cseq_updates", 1)
--
Kind Regards
*Karsten Horsmann*
Hi,
This may be more a SIP question than a Kamailio question, but I am
trying to figure out why 407 challenges from Kamailio contain To tags.
I suppose I've not run across it before, and I can't find an RFC-based
rationale. A negative reply to an invite transaction without an
intermediate early dialog-forming reply (e.g. 183 with To tag) does not
form a dialog, nor takes place within a context in which a dialog was
created. So what gives?
Insights appreciated!
-- Alex
--
Alex Balashov | Principal | Evariste Systems LLC
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
Hi all, anyone try the evrexec module yet? When I try, Kamailio fails to start and I'm getting an error that it can't find the event route I'm specifying in the modparam, but I started with trying the example from the docs. I think it might be a bug
https://www.kamailio.org/docs/modules/5.1.x/modules/evrexec.html
Here's what I tried:
modparam("evrexec", "exec", "name=evrexec:timer;wait=1000;workers=1;")
event_route[evrexec:timer] {
$var(x) = 0;
while(1) {
xlog("$$var(x) is $var(x)\n");
$var(x) = $var(x) + 1;
sleep("600");
}
}
Here's the log:
0(1765) ERROR: evrexec [evrexec_mod.c:232]: evrexec_param(): event route not found: evrexec:timer
0(1765) CRITICAL: <core> [core/cfg.y:3450]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 136, column 70: Can't set module parameter
ERROR: bad config file (1 errors)
Version info:
kamailio -V
version: kamailio 5.1.2 (x86_64/linux)
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, 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_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown
compiled on 06:41:34 Mar 9 2018 with gcc 4.8.5
Thoughts?
Thanks,
-Skip
Hello all,
I am using Kamailio 5 and am trying to remove the Diffie-Hellman ciphers but have had no luck. I have researched it and have not seen any articles yet where anyone has had any luck. I need to be able to connect from webrtc port 443. Has anyone had any luck with the cipher-list?
Thank you,
-Steve
What constitutes a 'failed request' in dispatcher module, in which a gateway is marked inactive?
>From documentation -
ds_ping_interval
With this parameter you can define the interval for sending a request to a gateway marked as inactive upon a failed request routing to it.
ds_probing_threshold
If you want to set a gateway into inactive mode, there can be a specific number of failed requests until it will change from "active" to "inactive".
Thanks,
-dan