Hi,
I have a question about the db_cluster module. We are currently using a
galera mysql cluster from severalnines, in this setup haproxy is
installed on the kamailio nodes handling the database failover.
The question is if a database node fails and the TCP connection breaks
the sql query will probably fail when using haproxy since it is not
aware of the query. Will the db_cluster module send the query to the
next available mysql node in the cluster without a failing query? If
thats the case i should not notice the failing dbnode in my kamailio
script.
In other words, will there be a advantage in using the db_cluster module
instead of haproxy?
Thanks,
Jan Hazenberg
Hello
I am trying to implement code coverage tool in kamailio
using gcov. I have added CFLAGS and LIBS in Makefile.defs and it got
compiled successfully.
My problem is when I am running kamailio it is saying
lib64/kamailio/libkcore.so.1: undefined symbol: __gcov_merge_add.
Can anyone help me on this.
Regards
Surendra
Hi,
I am using Kamailio version: kamailio 4.3.0 (x86_64/linux) c6aa95 on CentOS 6
I am trying to encapsulate ISUP in the INVITE:
...if(has_body("application/sdp")){ set_body_multipart();
if(msg_apply_changes())
{ $var(acm) = "7e Od 04 55 75 69 20 4d 61 6b 65 43 61 6c 6c";
append_body_part("$var(acm)","application/isup; version=itu-t92+","signal; handling=optional"); xlog("L_INFO", "ISUP Changes Applied Succesfully"); }}
...And getting the following error:
Jul 7 14:59:12 ukrcld1000 kamailio: DEBUG: <core> [msg_translator.c:1691]: get_boundary(): boundary is <--unique-boundary-1>...Jul 7 14:59:12 ukrcld1000 kamailio: DEBUG: <core> [msg_translator.c:1808]: check_boundaries(): last bondary without -- at the end
Jul 7 14:59:12 ukrcld1000 kamailio: DEBUG: <core> [msg_translator.c:1612]: replace_body(): old size body[365] actual[534]Jul 7 14:59:12 ukrcld1000 kamailio: CRITICAL: <core> [data_lump.c:463]: free_lump(): non free-able lump: 0x7f7a33d5ae40 flags=1
and then Kamailio crashes.
Can you please recommend?
Thanks,Andrei
Hello,
been struggling to make a random sleep with cfgutils functions.
ex:
$avp(i:444) = 123;
usleep("$avp(i:444)");
gives an error:
ERROR: <core> [route.c:1189]: fix_actions(): fixing failed (code=-1) at
cfg:/etc/kamailio/kamailio-sp1new.cfg:723
Kamailio version: 4.3
If usleep accepts only numbers, is there any other way to sleep by
passing variable?
best regards,
Antanas
--
# <#>
Antanas Masevičius
Technikos Direktorius
UAB Nacionalinis telekomunikacijų tinklas
Panerių g. 51, LT-03160 Vilnius
*Tel.* 8 5 2056000
*Tiesiog. tel.* 8 700 00031
*Mob. tel.* 8 685 77730
*Faks.* 8 700 00034
*El. p.:* antanas.masevicius(a)ntt.lt <#>
#
www.ntt.lt <http://www.ntt.lt> | www.spykas.com <http://www.spykas.com>
Dear list,
I'm running kamailio-4.2.3-3.1.x86_64 in a very simple setup: one
Asterisk server behind kamailio. But I'm using dispatcher, the other
servers are just down currently. :)
Different vendors route DIDs to kamailio's IP and kamailio handles the
communication towards Asterisk.
Now I have a new vendor who uses MetaSwitch, and there is a problem. All
calls get dropped with a BYE from the Asterisk side after 32 seconds
because Asterisk never receives the ACK, because kamailio doesn't
forward it, because MetaSwitch sends it as
ACK sip:number@KAMAILIO-IP
instead of
ACK sip:number@ASTERISK-IP
That means MetaSwitch ignores what we tell it in the Contact: header.
Is this MetaSwitch'es "fault" or kamailio's? All other vendors work fine
without problems. Therefore I have compared an "old" vendor and the new
one. Here is the result that shows the difference:
Old vendor - works:
OLDVENDOR-IP.5060 > KAMAILIO-IP.5060: INVITE sip:number@KAMAILIO-IP
KAMAILIO-IP.5060 > OLDVENDOR-IP.5060: SIP/2.0 100 trying
KAMAILIO-IP.5060 > ASTERISK-IP.5060: INVITE sip:number@KAMAILIO-IP
ASTERISK-IP.5060 > KAMAILIO-IP.5060: SIP/2.0 100 Trying
ASTERISK-IP.5060 > KAMAILIO-IP.5060: SIP/2.0 200 OK
KAMAILIO-IP.5060 > OLDVENDOR-IP.5060: SIP/2.0 200 OK
OLDVENDOR-IP.5060 > KAMAILIO-IP.5060: ACK sip:number@ASTERISK-IP:5060
KAMAILIO-IP.5060 > ASTERISK-IP.5060: ACK sip:number@ASTERISK-IP:5060
New vendor with MetaSwitch - doesn't work:
NEWVENDOR-IP.5060 > KAMAILIO-IP.5060: INVITE sip:number@KAMAILIO-IP:5060
KAMAILIO-IP.5060 > NEWVENDOR-IP.5060: SIP/2.0 100 trying
KAMAILIO-IP.5060 > ASTERISK-IP.5060: INVITE sip:number@KAMAILIO-IP:5060
ASTERISK-IP.5060 > KAMAILIO-IP.5060: SIP/2.0 100 Trying
ASTERISK-IP.5060 > KAMAILIO-IP.5060: SIP/2.0 200 OK
KAMAILIO-IP.5060 > NEWVENDOR-IP.5060: SIP/2.0 200 OK
NEWVENDOR-IP.5060 > KAMAILIO-IP.5060: ACK sip:number@KAMAILIO-IP:5060
ASTERISK-IP.5060 > KAMAILIO-IP.5060: SIP/2.0 200 OK
KAMAILIO-IP.5060 > NEWVENDOR-IP.5060: SIP/2.0 200 OK
NEWVENDOR-IP.5060 > KAMAILIO-IP.5060: ACK sip:number@KAMAILIO-IP:5060
ASTERISK-IP.5060 > KAMAILIO-IP.5060: SIP/2.0 200 OK
KAMAILIO-IP.5060 > NEWVENDOR-IP.5060: SIP/2.0 200 OK
NEWVENDOR-IP.5060 > KAMAILIO-IP.5060: ACK sip:number@KAMAILIO-IP:5060
... and so on ...
Can I do something about this or is a change on MetaSwitch'es side in order?
Thank you!
Markus
Hello everyone,
I'm a newbie in kamailio world and make some tests to dispatch call over
several asterisk instances. This part works, my call has been distributed
over two instances (if i make a call with jitsi for example).
Now, i want to test performance of my cluster and use Sipp to chalenge it.
All method is working fine, except the BYE method, where kamailio send me
back a 404 Not here.
This is my SIPP scenario:
...
<pause/>
<!-- The 'crlf' option inserts a blank line in the statistics report. -->
<send retrans="500">
<![CDATA[
BYE sip:[service]@[remote_ip] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: sipp <sip:sipp@loicchabert.fr>;tag=[pid]SIPpTag00[call_number]
To: sut <sip:[service]@[remote_ip]:[remote_port]>[peer_tag_param]
Call-ID: [call_id]
CSeq: 2 BYE
Contact: sip:sipp@[local_ip]:[local_port]
Max-Forwards: 70
Subject: Performance Test
Content-Length: 0
]]>
</send>
...
I use the classic file of kamailio, with some adjustement for dispatching.
Any ideas concerning this problem ? This BYE is not in transaction so he is
drop by kamailio ?
Thank in advance,
Regards.
Hello,
I am writing a module for kamailio and as part of its functionality I
need to generate and send SIP messages. How would I go about sending an SIP
message from within kamailio?
Any help would be deeply appreciated.
Thanks,
Shouvanik
Hello,
I'm wondering if kamailio can act as radius server who's responsible of authentication,authorization and accounting, where kamailio receive accounting record types (start-stop-interim) and write them in a database.
Thanks
Ali
Hi Guys,
I have just moved from kamailio 4.1, to 4.2 and have installed via git version 4.2
I am testing with the function cnxcc_set_max_time, as I want to set the maximum call duration.
Having moved to 4.2, i cant get the module to terminate the call.
I have set dlg_flag, and cc_flag, following examples on the wiki but I cant get it to work.
Does anyone have any suggestions for me please?
My same code on 4.1 works ok.
Thanks
Jon