Hello,
We are running Kamailio 4.2.6 ( db77ac) compiled with memory debugging.
The free PKG memory has decreased on ~6.5 M after two weeks.
Please see attached file with the log messages at kamailio shutdown.
Thank you in advance,
Julia.
Hi list,
Record-route on sequential requests doesn't have did/vsf parm.
On initial INVITE, I call record_route() and set dialog flag.
kamailio adds the following RR
Record-Route: <sip:ww.xx.yy.zz;lr;ftag=15af612df;vsf=AAAA....;did=4a8.3ca2>
UAC sends a re-INVITE, containing the following route:
Route: <sip:178.21.251.54;lr;ftag=15af612df;vsf=AAAA....;did=4a8.3ca2>
I call loose_route() followed by record-route(), and kamailio adds the following RR:
Record-Route: <sip:ww.xx.yy.zz;lr;ftag=15af612df>
I've got a phone which updates the routeset on sequential requests (which I don't think it should) and the did-matching fails.
Should kamailio add did/vsf on sequential requests, when I call record_route()?
Should I set dlg_match_mode to 1? (I use 0)
Is it wrong to call record_route() from sequential requests?
Which way is the best to resolve the problem?
Regards,
Kristian Høgh
Uni-tel A/S
Hello everyone,
this is my first message. I'm glad to become a part of this big community.
I'm new in SER technology. I worked in Asterisk PBX only, until now.
For the first time i installed Elastix MT witch have kamailio in front of
asterisk, and now i have a problem.
I attach a diagram of initial configuration in my lab and pcap file and
kamailio.cfg.
Regardless diagram, x.x.x.x addresses are public and y.y.y.y are private.
When i test connection 1.1 is working,
connection 1.2 not working
connection 2.2 not working
connection 1.3 not working
connection 2.3 working
Phones are connected(authenticate) to kamailio, but when i look at asterisk
cli those phones are unreachable, but can call, but can not be called.
On router where android works, Siemens dont, and where pc softphone works
other UAC dont work.
I think that my nat-traversal configure good, regardless of documentation.
Please tell me, if someone has some ideas of solve this problem.
Thanks in advance, and sorry for my bad english :)
----------------------------------------------------------------------
*Vladimir Stepić,*
Engineer specialist in computer networking
System Linux Administrator
mob. tel. +381 69/18-68-431
email: e1.e398(a)gmail.com
Hi,
I'm doing some experimentation on kamailio's udp_server.c. Now i need
libpcre for that. So i first thought if i enable the regex module, the
CFLAGS/LDFLAGS would be available from udp_server.c. But it turns out
it doesn't build(doesn't *link* to be more precise).
Kamailio's build system is pretty unfamiliar for me. Although i
absolutely hate autotools based build system(I prefer Scons), but i'm
pretty familiar with these. But Kamailio's build system is pretty much
cryptic for me(Is it based on CMake?).
There is a page on devel wiki for kamailio's build system. it turns
out i can do stuff like :
make cfg prefix=/opt/kamailio \
SCTP=1 \
CC_EXTRA_OPTS=-I/usr/gnu/include \
group_include="standard postgres presence" \
include_modules="snmpstats lcr tls"
So there might be a LD_EXTRA_OPTS or stuff like that. Which than would
be defined (I guess) globally so the core c files(like udp_server.c)
would be able to use that. One way i guess would be to sharpen my
egrep and find that variable name. But it all feels a bit hacky. As i
have already included regex module, there should be a way to reuse the
CFLAGS/LDFLAGS for that module for core files like udp_server.c.
Cheers
Arif
Hi All.
Does anyone know where to find training guide for Kamailio HA? I want to have 2 Kamailio in HA with four (4) Freeswitch servers behind them. I will also like to customer cgrate to manage the accounting side in a multi-tenant environment. I am just researching for this on my own and I will appreciate a guide to realize this objective.
Thanks
Hello,
I have rebooted my kamailio machine and now the value of kamailio dialogs
is always 0:
KAMAILIO-MIB::kamailioCurNumDialogs.0 = Gauge32: 0
KAMAILIO-MIB::kamailioCurNumDialogsInProgress.0 = Gauge32: 0
KAMAILIO-MIB::kamailioCurNumDialogsInSetup.0 = Gauge32: 0
KAMAILIO-MIB::kamailioTotalNumFailedDialogSetups.0 = Counter32: 0
And also the status is:
KAMAILIO-MIB::kamailioDialogUsageState.0 = INTEGER: idle(0)
How can I change it to active(1)? I have dialog.so loaded as well as
modparam("dialog",
"dlg_flag", 4) and dlg_manage().
Thank you.
Regards,
Daniel,
I got the following error message (currently running version 4.3):
Nov 27 18:56:51 ip-10-1-2-100 /usr/local/sbin/kamailio[451]: ERROR:
dispatcher [dispatcher.c:517]: mod_init(): call load dispatching DST
ID_AVP set but no size for hash table
Nov 27 18:56:51 ip-10-1-2-100 /usr/local/sbin/kamailio[451]: ERROR: <core>
[sr_module.c:962]: init_mod(): Error while initializing modul
e dispatcher (/usr/local/lib64/kamailio/modules/dispatcher.so)
I noticed in the following DEV GIT (Version 3.1) message that the error
message was changed to a message that more clearly defined the error and
correction for it. But the my current message would indicate that it got
changed back to the older error message.
http://lists.sip-router.org/pipermail/sr-dev/2010-November/009799.html
Just thought I would point it out because the newer message from the GIT
message seems clearer to me.
--
*Sam D Ware*
CIO
*Vera Networks LLC*
Email: sam.ware(a)veranetworks.com
Hi,
I am trying to extract out the expires value from the incoming REGISTER
request. It might be present in the Contact header or as a separate Expires
header and hence I planned to use the $expires(max) PV to get this. But
kamailio just crashes as soon as I use the variable. Here's when it crashes:
if(is_method("REGISTER")) {
xlog("L_INFO", "Expires is $expires(max)");
if(!save("location", "0x01")) {
t_reply("500", "Error while saving AOR");
}
}
It crashes at the xlog point. Here's the backtrace for reference:
Reading symbols from /usr/local/kamailio/sbin/kamailio...done.
[New LWP 16609]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/local/kamailio/sbin/kamailio -P
/var/run/kamailio.pid -f /usr/local/kamail'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f34b658b311 in pv_get_expires (msg=0x7f34bd879e58,
param=0x7f34bd7e9220, res=0x7ffcf67af530) at pv_core.c:3060
3060 if(c->expires && c->expires->body.len) {
(gdb) backtrace
#0 0x00007f34b658b311 in pv_get_expires (msg=0x7f34bd879e58,
param=0x7f34bd7e9220, res=0x7ffcf67af530) at pv_core.c:3060
#1 0x00000000004fb6e1 in pv_get_spec_value (msg=0x7f34bd879e58,
sp=0x7f34bd7e9208, value=0x7ffcf67af530) at pvapi.c:1304
#2 0x00000000004fbb46 in pv_printf (msg=0x7f34bd879e58,
list=0x7f34bd80ef38, buf=0x7f34bd8735a0 "Expires is ", len=0x7ffcf67af618)
at pvapi.c:1363
#3 0x00007f34b67ea745 in xl_print_log (msg=0x7f34bd879e58,
list=0x7f34bd80ef38, buf=0x7f34bd8735a0 "Expires is ", len=0x7ffcf67af618)
at xl_lib.c:37
#4 0x00007f34b67eb0f9 in xlog_helper (msg=0x7f34bd879e58,
xm=0x7f34bd808648, level=2, line=0, facility=-1) at xlog.c:215
#5 0x00007f34b67ec160 in xlog_2_helper (msg=0x7f34bd879e58,
lev=0x7f34bd7e9130 "", frm=0x7f34bd808648 "84\177", mode=0, facility=-1)
at xlog.c:284
#6 0x00007f34b67ec19c in xlog_2 (msg=0x7f34bd879e58, lev=0x7f34bd7e9130
"", frm=0x7f34bd808648 "84\177") at xlog.c:292
#7 0x000000000041e23b in do_action (h=0x7ffcf67b0b40, a=0x7f34bd817cd0,
msg=0x7f34bd879e58) at action.c:1065
#8 0x000000000042a8e7 in run_actions (h=0x7ffcf67b0b40, a=0x7f34bd813e18,
msg=0x7f34bd879e58) at action.c:1548
#9 0x000000000041ab16 in do_action (h=0x7ffcf67b0b40, a=0x7f34bd7e8738,
msg=0x7f34bd879e58) at action.c:677
#10 0x000000000042a8e7 in run_actions (h=0x7ffcf67b0b40, a=0x7f34bd7e8738,
msg=0x7f34bd879e58) at action.c:1548
#11 0x000000000041e094 in do_action (h=0x7ffcf67b0b40, a=0x7f34bd7e89c8,
msg=0x7f34bd879e58) at action.c:1044
#12 0x000000000042a8e7 in run_actions (h=0x7ffcf67b0b40, a=0x7f34bd7e19d8,
msg=0x7f34bd879e58) at action.c:1548
#13 0x000000000042b04d in run_top_route (a=0x7f34bd7e19d8,
msg=0x7f34bd879e58, c=0x0) at action.c:1634
#14 0x000000000050f3d4 in receive_msg (
buf=0xa80c00 <buf> "REGISTER sip:devsip.tlkn.com SIP/2.0\r\nVia:
SIP/2.0/UDP 203.153.53.145:8300;branch=z9hG4bK119a.e23ed10b856f38b41c93d1d259d8869f.0;i=b1\r\nVia:
SIP/2.0/TCP 172.16.16.32:52358;rport=52359;received=203.153."..., len=712,
rcv_info=0x7ffcf67b0e60) at receive.c:196
#15 0x0000000000613b9e in udp_rcv_loop () at udp_server.c:495
#16 0x00000000004aa119 in main_loop () at main.c:1577
#17 0x00000000004b0e1e in main (argc=5, argv=0x7ffcf67b1318) at main.c:2553
Thanks,
- Jayesh