I want to upgrade my cluster from 4.3 to 4.4, beginning with the spare
for live testing. But since there is a change to the trusted table
(which we don't use, only address) this isn't possible without some
tricks. There is no override for skipping the version check on any
permissions table.
I need to share the subscriber/location/address/usr_preferences and
db_aliases tables between the 4.3 and 4.4 machines. The only thing I can
think of is:
-patch the permissions module to accept the old version of trusted
-create a 4.4 database and use federated tables to access the 4.3 data
Not hard to implement any of these 2, but some other modules have the
option to skip these checks, eg:
http://www.kamailio.org/docs/modules/4.4.x/modules/auth_db.html#auth_db.p.v…
Is there a reason not all modules have this flag (which you could use at
your own risk)? Or am I missing something here?
Hello,
Is it possible to set To/From tags in uac_req() ?
We want to implement service like "color ring back tone".
*Kamailio uac* *Asterisk*
----INVITE SDP -->
<-----200 SDP------
---------BYE ------>
<------- 200 -------
I need to send in BYE the same tags.
Kamailio 4.4.2.
Thanks,
Julia
Hey all,
I have a Kamailio implementation (version: kamailio 4.4.1 (x86_64/solaris) 12b048) as part of the Kazoo platform. I’m having an odd problem with an e2e ACK (after a 200OK after a T38 re-invite), which I’m pretty sure has to do with a Contact header rewrite due to the following (can review attached PCAP for specifics):
if (nat_uac_test("3")) {
force_rport();
fix_nated_contact();
}
I have a couple of questions about this:
A flag of 3, I don’t understand. I read the documentation <http://kamailio.org/docs/modules/4.4.x/modules/nathelper.html#nathelper.f.n…>, and there is a 1,2,4,8,etc… So, I’m guessing that a flag of 3, means 1+2?
If #1 is true, then "the "received" test is used: address in the “Via” header is compared against source IP address of signaling”
I don’t understand this test, as I’m pretty sure that the 200OK that’s getting re-written is properly constructed. I guess I’m trying to understand when one would want to use this test?
Thanks!
~Noah
Hello All,
I am trying to enable msilo offline message delivery module,
I used the official technical documentation :
https://www.kamailio.org/docs/modules/stable/modules/msilo.html
I managed to add load module statement and modparam statement without error.
At this point msilo is still not active , it was obvious that I needed to add route statement.
I copied the provided route statement , and edited it so will be similar to route functions that are already there.
that was the outcome:
# Routing to MSILO
route[MSILO] {
#!ifdef WITH_MSILO
if ( !mf_process_maxfwd_header("10") )
{
sl_send_reply("483","To Many Hops");
exit;
};
if (uri==myself) {
{
# for testing purposes, simply okay all REGISTERs
if (method=="REGISTER")
{
save("location");
log("REGISTER received -> dumping messages with MSILO\n");
# MSILO - dumping user's offline messages
if (m_dump())
{
log("MSILO: offline messages dumped - if they were\n");
}else{
log("MSILO: no offline messages dumped\n");
};
exit;
};
# domestic SIP destinations are handled using our USRLOC DB
if(!lookup("location"))
{
if (! t_newtran())
{
sl_reply_error();
exit;
};
# we do not care about anything else but MESSAGEs
if (!method=="MESSAGE")
{
if (!t_reply("404", "Not found"))
{
sl_reply_error();
};
exit;
};
log("MESSAGE received -> storing using MSILO\n");
# MSILO - storing as offline message
if (m_store("$ru"))
{
log("MSILO: offline message stored\n");
if (!t_reply("202", "Accepted"))
{
sl_reply_error();
};
}else{
log("MSILO: offline message NOT stored\n");
if (!t_reply("503", "Service Unavailable"))
{
sl_reply_error();
};
};
exit;
};
# if the downstream UA does not support MESSAGE requests
# go to failure_route[1]
t_on_failure("1");
t_relay();
exit;
};
# forward anything else
t_relay();
}
failure_route[1] {
# forwarding failed -- check if the request was a MESSAGE
if (!method=="MESSAGE")
{
exit;
};
log(1,"MSILO:the downstream UA doesn't support MESSAGEs\n");
# we have changed the R-URI with the contact address, ignore it now
if (m_store("$ou"))
{
log("MSILO: offline message stored\n");
t_reply("202", "Accepted");
}else{
log("MSILO: offline message NOT stored\n");
t_reply("503", "Service Unavailable");
};
}
#!endif
return;
}
but after that I restarted kamailio service and got the following errors:
root@debian:~# service kamailio restart
Job for kamailio.service failed. See 'systemctl status kamailio.service' and 'journalctl -xn' for details.
root@debian:~# systemctl status kamailio.service -l
● kamailio.service - Kamailio (OpenSER) - the Open Source SIP Server
Loaded: loaded (/lib/systemd/system/kamailio.service; enabled)
Active: failed (Result: exit-code) since Wed 2016-08-17 21:35:41 EET; 4s ago
Process: 3693 ExecStart=/usr/sbin/kamailio -P /var/run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP (code=exited, status=255)
Main PID: 3470 (code=exited, status=0/SUCCESS)
Aug 17 21:35:41 debian kamailio[3693]: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 556, column 5: bad command
Aug 17 21:35:41 debian kamailio[3693]: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 613, column 12: syntax error
Aug 17 21:35:41 debian kamailio[3693]: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 613, column 12:
Aug 17 21:35:41 debian kamailio[3693]: ERROR: bad config file (5 errors)
Aug 17 21:35:41 debian kamailio[3693]: WARNING: <core> [ppcfg.c:221]: pp_ifdef_level_check(): different number of preprocessor directives: N(#!IF[N]DEF) - N(#!ENDIF) = 3
Aug 17 21:35:41 debian kamailio[3693]: INFO: <core> [sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
Aug 17 21:35:41 debian kamailio[3693]: loading modules under config path: /usr/lib/x86_64-linux-gnu/kamailio/modules/
Aug 17 21:35:41 debian systemd[1]: kamailio.service: control process exited, code=exited status=255
Aug 17 21:35:41 debian systemd[1]: Failed to start Kamailio (OpenSER) - the Open Source SIP Server.
Aug 17 21:35:41 debian systemd[1]: Unit kamailio.service entered failed state.
line 556 is a parenthesis. {
I checked the code for missing parentheses and they are all there.
line 613 is t_relay();
also tried to run with #!define WITH_DEBUG , there was no further info to debug the cfg file.
Also I tried to mimic some cfg examples like this one :
http://telephonynetworks.blogspot.com.eg/2012/08/configuracion-de-kamailio-…
but it uses an older version of kamailio 3.3 , and I noticed considerable changes in mpath statement, so that was unsuccessful.
kamailio.cfg is attached with and without msilo route.
For the experts out there Please Advise .
system details : {(OS:Debian8 i386),(Kamailio4.4 with mySQL , UDP only)}
Thank you all in advance.
Best Regards,
Eng Hooda
Hi Guys,
Does anyone know how to enable logging for RTPengine
Kind Regards
From: sr-users [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Jonathan Hunter
Sent: 17 August 2016 13:17
To: sr-users(a)lists.sip-router.org
Subject: [SR-Users] Core/ signal 11 Segmenation fault on kamailio 4.3.5
Hi guys,
We seem to have a regular occurrence where one of the child processes is crashing, and causing a coredump.
Please see the output of the corefile;
gdb kamailio /core.31568
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6)
Copyright (C) 2010 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-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/kamailio...(no debugging symbols found)...done.
[New Thread 31568]
Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib /debug/lib64/ld-2.12.so.debug...done.
done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Core was generated by `/usr/sbin/kamailio -P /var/run/kamailio/kamailio.pid -f / /etc/kamailio//kamaili'.
Program terminated with signal 11, Segmentation fault.
#0 0x00000000004deefd in send_fd ()
(gdb) bt full
#0 0x00000000004deefd in send_fd ()
No symbol table info available.
#1 0x00000000004e0bc1 in pp_substdef_add ()
No symbol table info available.
#2 0x00000000004da13c in build_res_buf_from_sip_req ()
No symbol table info available.
#3 0x00007fc99099f4a1 in ?? ()
No symbol table info available.
#4 0x00000000921cd3c8 in ?? ()
No symbol table info available.
#5 0x00007fc9921cd3f8 in ?? ()
No symbol table info available.
#6 0x0000000000415eb0 in do_action ()
No symbol table info available.
#7 0x00007fc9909a2841 in ?? ()
No symbol table info available.
#8 0x00007fc991faf030 in ?? ()
No symbol table info available.
#9 0x0000000000000004 in ?? ()
No symbol table info available.
#10 0x0000000000000001 in ?? ()
No symbol table info available.
#11 0x0000000000000002 in ?? ()
The last transaction appears to be a REGISTER message from a User-Agent: SIPAUA/0.1.001 which runs on an android device.
We are looking to reproduce in lab environment but I just wondered if anyone had seen this on this version? Or can advise on the core dump output?
Thanks
Jon
--
CONFIDENTIAL EMAIL FROM NETCALL TELECOM LIMITED
This email, and any attachments, is intended only for the above addressee.
It may contain private and/or confidential information. If you have
received this email in error you are on notice of its status, please
immediately notify the sender by return email then delete this message and
any attachments. If you are not the addressee, except to notify the sender,
you must not use, disclose, copy or distribute this email and/or its
attachments. Netcall Telecom accepts no responsibility for any changes made
to this message after it has been sent by the original author. Opinions or
views expressed in this email may be those of the individual sender and not
Netcall Telecom. Nothing in this email shall bind Netcall Telecom in any
contract or obligation
Netcall Telecom Ltd Registered in England 2831215. Registered Office : 3rd
Floor, Hamilton House, 111 Marlowes, Hemel Hempstead, Herts, HP1 1BB
Hi guys,
We seem to have a regular occurrence where one of the child processes is crashing, and causing a coredump.
Please see the output of the corefile;
gdb kamailio /core.31568GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6)Copyright (C) 2010 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-redhat-linux-gnu".For bug reporting instructions, please see:<http://www.gnu.org/software/gdb/bugs/>...Reading symbols from /usr/sbin/kamailio...(no debugging symbols found)...done.[New Thread 31568]Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib /debug/lib64/ld-2.12.so.debug...done.done.Loaded symbols for /lib64/ld-linux-x86-64.so.2Core was generated by `/usr/sbin/kamailio -P /var/run/kamailio/kamailio.pid -f / /etc/kamailio//kamaili'.Program terminated with signal 11, Segmentation fault.#0 0x00000000004deefd in send_fd ()(gdb) bt full#0 0x00000000004deefd in send_fd ()No symbol table info available.#1 0x00000000004e0bc1 in pp_substdef_add ()No symbol table info available.#2 0x00000000004da13c in build_res_buf_from_sip_req ()No symbol table info available.#3 0x00007fc99099f4a1 in ?? ()No symbol table info available.#4 0x00000000921cd3c8 in ?? ()No symbol table info available.#5 0x00007fc9921cd3f8 in ?? ()No symbol table info available.#6 0x0000000000415eb0 in do_action ()No symbol table info available.#7 0x00007fc9909a2841 in ?? ()No symbol table info available.#8 0x00007fc991faf030 in ?? ()No symbol table info available.#9 0x0000000000000004 in ?? ()No symbol table info available.#10 0x0000000000000001 in ?? ()No symbol table info available.#11 0x0000000000000002 in ?? ()
The last transaction appears to be a REGISTER message from a User-Agent: SIPAUA/0.1.001 which runs on an android device.
We are looking to reproduce in lab environment but I just wondered if anyone had seen this on this version? Or can advise on the core dump output?
Thanks
Jon
Hi Guys,
I have been stress testing my Kamailio box but I am unable to get it upto 2000 concurrent calls it starts to fall over at 1300 have you got any ideas on how I can increase the performance of kamilio btw I am also using rtpengine
Kind Regards
--
CONFIDENTIAL EMAIL FROM NETCALL TELECOM LIMITED
This email, and any attachments, is intended only for the above addressee.
It may contain private and/or confidential information. If you have
received this email in error you are on notice of its status, please
immediately notify the sender by return email then delete this message and
any attachments. If you are not the addressee, except to notify the sender,
you must not use, disclose, copy or distribute this email and/or its
attachments. Netcall Telecom accepts no responsibility for any changes made
to this message after it has been sent by the original author. Opinions or
views expressed in this email may be those of the individual sender and not
Netcall Telecom. Nothing in this email shall bind Netcall Telecom in any
contract or obligation
Netcall Telecom Ltd Registered in England 2831215. Registered Office : 3rd
Floor, Hamilton House, 111 Marlowes, Hemel Hempstead, Herts, HP1 1BB
Hello,
You can help me to due with the error:
SIP 500 - Server error on UAR select next S-CSCF.
What am I doing wrong?
Thanks.
Regards.
--
Rodrigo M.
(37) 9132-4539
(34) 9889-3069
rodrigo.moreira2007
I'm seeing a different behavior of t_set_fr depending on transports.
Scenario is that a endpoint has a failover defined in the registrat
after 10s (t_set_fr(10000) and handling the locally generated 408 to the
failover destination). This works fine when the request and response
where delivered over UDP. When the Path is TCP the failover happends
after 30s (even when using a different time t_set_fr(20000) so it is not
a factor 3 or something like that).
Setup:
OK, 10s:
Orig->UDP->loadbalancer->UDP->registrar->UDP->loadbalancer->TCP->Term
Fail, 30s:
Orig->UDP->loadbalancer->TCP->registrar->TCP->loadbalancer->TCP->Term
Loadbalancer and registrar are kamailio machines (4.3.6). Communication
between lb and registrar is based on dispatcher and path modules.
1 sip:registrar:5060;transport=udp 8 0
or via tcp:
1 sip:registrar:5060;transport=tcp 8 0
In the location database of the registrar the difference between the
cases is:
socket:
udp:registrar:5060
or via tcp
tcp:registrar:5060
path:
<sip:lb@loadbalancer;lr;received=sip:1.2.3.4:5067%3Btransport%3Dtcp>
or via tcp
<sip:lb@loadbalancer;transport=tcp;lr;received=sip:1.2.3.4:5067%3Btransport%3Dtcp>
Looking at debug(=3) nothing happens between the initial INVITE and the
local 408 as far as I can see.
I have kamailio as a redirect server. It responds with 302 to invites.
The problem I am having is it continues to send the 302 multiple times.
How can i get it to stop sending once it gets the first ACK