Hi,
I need to enable sigcomp with kamailio. Can any one guide me how proceed
with that.
And its ok to integrate any third party tools like libsigcomp for the same.
Regards
Raman
Hello all,
I've been trying to utilise event_route[htable:mod-init] in order to load
information from the database into an htable on startup. However, Kamailio
exits with an error for no obvious (to me) reason. Here's the log output:
DEBUG: htable [htable.c:226]: child_init(): rank is (-127)
DEBUG: htable [htable.c:259]: child_init(): executing
event_route[htable:mod-init] (2)
DEBUG: <core> [core/parser/msg_parser.c:600]: parse_msg(): SIP Request:
DEBUG: <core> [core/parser/msg_parser.c:602]: parse_msg(): method:
<OPTIONS>
DEBUG: <core> [core/parser/msg_parser.c:604]: parse_msg(): uri: <
sip:you@kamailio.org>
DEBUG: <core> [core/parser/msg_parser.c:606]: parse_msg(): version:
<SIP/2.0>
DEBUG: <core> [core/parser/parse_via.c:2639]: parse_via(): end of header
reached, state=2
DEBUG: <core> [core/parser/msg_parser.c:491]: parse_headers(): Via found,
flags=2
DEBUG: <core> [core/parser/msg_parser.c:493]: parse_headers(): this is the
first via
ERROR: <core> [core/daemonize.c:303]: daemonize(): Main process exited
before writing to pipe
And here's the routing block in kamailio.cfg. What I need to do is get the
username for all non-expired contacts in the "location" table, perform a
query on another database for each one of them and store the result in an
htable:
event_route[htable:mod-init] {
sql_pvquery("ck", "select username from location where now() <=
expires", "$avp(registered_ng)");
$var(i) = 0;
while ( $(avp(registered_ng)[$var(i)]) != $null ) {
sql_pvquery("ca", "select property from tablename where username =
$(avp(registered_ng)[$var(i)])", "$var(ng_property)");
$sht(isnguser=>$var(ng_property)) = 1;
$var(i) = $var(i) + 1;
pv_unset("$var(ng_property)");
}
pv_unset("$var(i)");
}
Any hints as to what I might be doing wrong? Thanks!
Best regards,
George
Hello,
i am using Kamailio for SIP Presence server.
When ever the Presence PUBLISH is received on kamailio, kamailio is sending
200 OK with out Expires IE.
I want Kamailio to send Expires IE with 200 OK.
How do i modify it. Can you please help me in this regard.
Thank u
MGSK
Hi list,
How can I reliably get the sender’s IP address?
|$si| and |$sp| are returning the server IP and Port.
I also tried using |$Ri| and |$Rp| but it yields the same results.
Inspecting the packet shows the sender’s true IP:Port pair in the |Via:|
header,
but the |From:| and |To:| contain the kamailio server’s public IP address.
Kind regards,
--
/Iskren Hadzhinedev/
Hi,
I'm thinking to upgrade my kamailio 5.0.1 running on a Rhel 7.1 server to
5.0.3 .
Looking at the repository for Rhel7 to download the rpm, I don't find the
perl rpm.
For 5.0.1, it is kamailio-perl-5.0.1-1.1.x86_64.rpm.
Can you help to get it for 5.0.3 ?
Thanks in avance.
Cordialement
Patrick GINHOUX
I have issue with kazoo module
call sprintf
<https://github.com/kamailio/kamailio/blob/master/src/modules/kazoo/kz_pua.c…>
not work properly.
body variable contains values like
\x3c3f786d6c2076657273696f6e3d22312e302220656e636f64696e673d225554462d38223f3e3c70726573656e636520786d6c6e733d2275726e3a696574663a706172616d733a786d6c3a6e733a706964662220786d6c6e733a646d3d2275726e3a696574663a706172616d733a786d6c3a6e733a706964663a646174612d6d6f64656c2220786d6c6e733a727069643d2275726e3a696574663a706172616d733a786d6c3a6e733a706964663a727069642220786d6c6e733a633d2275726e3a696574663a706172616d733a786d6c3a6e733a706964663a63697069642220656e746974793d2232343936223e203c7475706c6520786d6c6e733d2275726e3a696574663a706172616d733a786d6c3a6e733a70696466222069643d2274384e6f3168516e7036355533336a53316f71464d677862495250712d694650223e3c7374617475733e3c62617369633e6f70656e3c2f62617369633e3c2f7374617475733e3c2f7475706c653e3c6e6f746520786d6c6e733d2275726e3a696574663a706172616d733a786d6c3a6e733a70696466223e4f6e207468652050686f6e653c2f6e6f74653e3c646d3a706572736f6e20786d6c6e733a646d3d2275726e3a696574663a706172616d733a786d6c3a6e733a706964663a646174612d6d6f64656c2220786d6c6e733a727069643d2275726e3a696574663a706172616d733a786d6c3a6e733a706964663a72706964222069643d2231223e3c727069643a616374697669746965733e3c727069643a6f6e2d7468652d70686f6e652f3e3c2f727069643a616374697669746965733e3c646d3a6e6f74653e4f6e207468652050686f6e653c2f646d3a6e6f74653e3c2f646d3a706572736f6e3e3c2f70726573656e63653e
Must be XML string
<?xml version="1.0" encoding="UTF-8"?><presence
xmlns="urn:ietf:params:xml:ns:pidf"
xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model"
xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid"
xmlns:c="urn:ietf:params:xml:ns:pidf:cipid" entity="2496"> <tuple
xmlns="urn:ietf:params:xml:ns:pidf"
id="t8No1hQnp65U33jS1oqFMgxbIRPq-iFP"><status><basic>open</basic></status></tuple><note
xmlns="urn:ietf:params:xml:ns:pidf">On the Phone</note><dm:person
xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model"
xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid"
id="1"><rpid:activities><rpid:on-the-phone/></rpid:activities><dm:note>On
the Phone</dm:note></dm:person></presence>
But i cannot find/understand where is must be executed conversion hex2string
I want use gdb inspect memory vars but i cannot.
Please advice how to do it.
Thank you guys for your quick response.
I am new to Kamailio so all your information are very helpful for me.
My setting:
children=8 in kaimailio.cfg . I did not change it and leave it by default on my 4 cores system.
My thought:
I think it may related to Mysql since cpu and iowait is low and the problem happens only when I add more subscribers to mysql database.
I will try according to :
1: Dmitri combination of mysql and htable as mysql cache
2: Mathias tune MySQL server
3: I think ram database should help on this. But it seems these is little document on redis.
I am looking into SQLite3 memory mode but if there is any related reference / link will be appreciated.
Thanks with regards,
David
David
2017年9月28日 下午02:59,Daniel-Constantin Mierla <miconda(a)gmail.com> 写道:
Hello,
it seems that interaction with mysql is a bottleneck. What is the value of children parameter in kamailio.cfg?
Cheers,
Daniel
On 28.09.17 04:00, Jiankai Zhu wrote:
My goal:
make sure when using kamailio as engine I can achieve:
on systems with 4GB memory, Kamailio can serve a population over 300 000 online subscribers
<from: https://www.kamailio.org/w/features/ >
Test bed:
CPU: 4 cores , 4G RAM
Kamailio 5 with Mysql.
Test source:another server running SIPp
10k subscriber in Mysql . 6000 Register Per Second , reuse 10k user to register , it works fine. If register 50 every second for per user it seem 300 k subscribers should work.
(about 300% cpu used of totally 400% cpu. All requests finished without retransmit and fail. )
add 90k subscriber into Mysql .
100k subscirbers in Mysql . 1000 Register Per Second , a lot of failure and can not work .
(cpu are not used much at that time. IO is not high.)
My question :
What is the root cause of bad performance when there is 100k subscribers' data in the Mysql database.
How can I deploy a kamailio with 300k subscriber in database, and support 6000 register per second at the same time ?
Maybe use ram database instead of Mysql?
Thanks with regards,
David
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com
Dear All,
Please help me with error messages.
Am trying to configure kamailio MYSQL as DBEGINE base on the tutorial
available in the SIP ROUTING WITH KAMAILIO book, when I executed the
/usr/local/sbin/kamdbctl create and got the Error messages below.
ERROR: could not load the script in
/usr/local/lib64/kamailio//kamctl/kamdbctl.mysql for database engine MYSQL
ERROR: database engine not loaded - tried 'MYSQL'
Here this the version of kamailio I installed.
./kamailio -I.
Print out of kamailio internals
Version: kamailio 4.4.6 (x86_64/linux) 75f13d
Default config: /usr/local/etc/kamailio/kamailio.cfg
Default paths to modules: /usr/local/lib64/kamailio/modules
Compile 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
MAX_RECV_BUFFER_SIZE=262144
MAX_LISTEN=16
MAX_URI_SIZE=1024
BUF_SIZE=65535
DEFAULT PKG_SIZE=8MB
DEFAULT SHM_SIZE=64MB
ADAPTIVE_WAIT_LOOPS=1024
TCP poll methods: poll, epoll_lt, epoll_et, sigio_rt, select
Source code revision ID: 75f13d
Compiled with: gcc 4.9.2
Compiled on: 10:56:51 Sep 28 2017
Thank you for flying kamailio!
Regards
Olawuyi Timothy Oladapo | IT/VAS Operation | Information System Dept
|Pethahiah Rehoboth INTL. Limited | 2nd Floor Rubby Block All seasons Plaza
, Lateef Jakande Rd, Agidingbi, Ikeja, Lagos. | Mobile:
+2348052612001,+2348098797928 |Skype: daptims |
<htttp://www.pethahiah.com/> htttp://www.pethahiah.com
Hi
We are experiencing issue with python script KSR. textops.replace_body_all using branch 5.0.2: -
Example Code:
KSR.textops.replace_body_all("a=sendonly", "a=sendrecv")
It looks like that the module textops and textopsx are not available. Using $rb or $msg(body) pseudo variables isn't working as they are readonly.
Is there any other way to replace the body?
Many Thanks
Regards
Muhammad Zaka
I had this issue with CentOS 7.3 and chalked it up to the openssl 1.0.1e
bug mentioned on the list
https://lists.kamailio.org/pipermail/sr-users/2013-August/079381.html
However I just updated to CentOS 7.4 with openssl 1.0.2k-8 and the issue
still exists with Kamailio 4.4.6-2.2. I've tried moving the loadmodule
"tls.so" to the top as well.
ERROR: tls [tls_init.c:526]: tls_pre_init(): Unable to set the memory
allocation functions
ERROR: tls [tls_init.c:528]: tls_pre_init(): libssl current mem functions -
m: 0x7fc56d19c0c0 r: 0x7fc56d19c5a0 f: 0x7fc56d19c4c0
ERROR: tls [tls_init.c:530]: tls_pre_init(): Be sure tls module is loaded
before any other module using libssl (can be loaded first to be safe)
Does anybody have TLS working with RHEL 7 or CentOS 7?
Thanks,
Ryan