Hello there,
I'm using kamailio 5.2.1 with evapi module to send and receive events from
an external application.
During my stress tests to kamailio i have been noticing that at some point
kamailio is getting out of memory:
edge-sip-proxy[20565]ERROR: ESP_LOG: <null>: <core>
[core/mem/q_malloc.c:291]: qm_find_free(): qm_find_free(0x7fb8730b6010,
64); Free fragment not found!
edge-sip-proxy[20565]: ERROR: ESP_LOG: <null>: <core>
[core/mem/q_malloc.c:425]: qm_malloc(): qm_malloc(0x7fb8730b6010, 64)
called from core: core/parser/msg_parser.c: parse_headers(325), module:
core; Free fragment not found!
edge-sip-proxy[20565]: ERROR: ESP_LOG: <null>: <core>
[core/parser/msg_parser.c:328]: parse_headers(): memory allocation error
edge-sip-proxy[20565]: ERROR: ESP_LOG: <null>: pv [pv_core.c:704]:
pv_get_callid(): cannot parse Call-Id header
edge-sip-proxy[20565]: INFO: ESP_LOG: <null>: [evapi:connection-received]
EVAPI msg received -> {"aor":"sip:FUZECI1-x1516@uc.fuze.domain
","contact":"<sip:FUZECI1-x1516@10.225.121.206:5060;transport=UDP>"}
edge-sip-proxy[20565]: ERROR: ESP_LOG: <null>: <core>
[core/mem/q_malloc.c:291]: qm_find_free(): qm_find_free(0x7fb8730b6010,
64); Free fragment not found!
edge-sip-proxy[20565]: ERROR: ESP_LOG: <null>: <core>
[core/mem/q_malloc.c:425]: qm_malloc(): qm_malloc(0x7fb8730b6010, 64)
called from core: core/parser/msg_parser.c: parse_headers(325), module:
core; Free fragment not found!
The process id 20565 is running out of memory as you can see bellow:
output of kamcmd pkg.stats
entry: 14
pid:
rank: -2
used: 6058696
free: 824
real_used: 8387784
total_size: 8388608
total_frags: 30
This process ID is related with Evapi Dispatcher
kamcmd ps | grep 20565
20565 EvAPI Dispatcher
After stop the sipp that was generating traffic to kamailio the evapi
process still have all the memory consumed
Can it be some memory leak in Evapi module?
Best Regards
José Seabra
--
Cumprimentos
José Seabra
Please could you advise where can I get open source HSS that works with
latest Kamailio 5.2 release for OS:
ubuntu18-04:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic
If possible please share the steps to integrate with Kamailio.
The link in this article for FHoSS repository is not working:
https://www.kamailio.org/wiki/tutorials/ims/installation-howto
If not Open source then maybe an evaluation software.
Please advise.
Thanks and Regards.
Hello, we have interesting issue...
Some time kamailio comes unreachable on private interface for asterisk, but
port checked via telnet and everything is ok...
ps. connection via public ip works good
root@kamailio:/usr/local/etc/kamailio# lsof -i :5068 | grep LISTEN
kamailio 6014 root 13u IPv4 8341589 0t0 TCP kamailio.local.ip:5068
(LISTEN)
kamailio 6014 root 14u IPv4 8341590 0t0 TCP
kamailio.public.ip:5068 (LISTEN)
root@kamailio:/usr/local/etc/kamailio#
telnet from asterisk machine:
root@asterisk:/etc/asterisk# telnet kamailio.local.ip 5068
Trying kamailio.local.ip...
Connected to kamailio.local.ip.
Escape character is '^]'.
But peer is unreachable in asterisk... More than, kamailio comes reachable
when I change transport from TCP to UDP, or when I restart kamailio
daemon(but it situation repeats every day)..
Any ideas how I can fix it?
thanks!
My sip proxy has two rtpengine sets:
# sip-proxy_ctl rtpengine.show all
{
url: udp:192.26.134.1:6050
set: 0
index: 0
weight: 1
disabled: 0
recheck_ticks: 0
}
{
url: udp:192.26.134.40:6050
set: 1
index: 1
weight: 1
disabled: 0
recheck_ticks: 0
}
Config makes callBefore calling rtpengine_offer(), config calls
set_rtpengine_set("1", "0");
rtpengine_offer("...");
As result, debug shows that sip proxy sends TWO offer commands to the
rtpproxy in set 1 and NONE to the rtpproxy in set 0. Debug at set 1
engine:
Aug 19 18:06:08 buster-10-0 rtpengine[1314]: NOTICE: [5e1407211cc50fd9]: Creating new call
Aug 19 18:06:08 buster-10-0 rtpengine[1314]: INFO: [5e1407211cc50fd9]: Replying to 'offer' from 192.26.134.1:33284 (elapsed time 0.000812 sec)
Aug 19 18:06:08 buster-10-0 rtpengine[1314]: INFO: [5e1407211cc50fd9]: Received command 'offer' from 192.26.134.1:33284
Aug 19 18:06:08 buster-10-0 rtpengine[1314]: INFO: [5e1407211cc50fd9]: Replying to 'offer' from 192.26.134.1:33284 (elapsed time 0.005247 sec)
I haven't been able to figure out, why that is the case. It is a bug,
or am I missing something?
I added INFO call to set_rtpengine_set_f():
INFO("set1/set2 = %u/%u\n", selected_rtpp_set_1->id_set,
selected_rtpp_set_2->id_set);
return 1;
and it correctly printed:
Aug 19 18:06:08 salmon /usr/bin/sip-proxy[26911]: INFO: rtpengine [rtpengine.c:3574]: set_rtpengine_set_f(): set1/set2 = 1/0
Any ideas?
-- Juha
Hello everyone,
I need to setup Music on hold feature and I did all modifications in
configuration file and did all steps for setup:
1- load MOH and all requirement modules .
2- rtpproxy setups and works correctly
3- mohqueue and mohqcalls tables created.
4- audio file with type index (novanet.8) exists
5- parameters of MOH module setup and mohq_process() function called in
request_route().
6- table mohqueue initiated like this:
+----+------+----------------------------+-------------------+---------+-------+
| id | name | uri | mohdir | mohfile |
debug |
+----+------+----------------------------+-------------------+---------+-------+
| 1 | main | sip:main at 191.38.245.2 | /var/kamailio/MOH | novanet |
1 |
+----+------+----------------------------+-------------------+---------+-------+
Kamailio starts successfully and no error appears , call setup but on hold
doesn't work and no audio file plays.
I review all previous mailing lists responses but no one answers completely
and before me others had this problem.
Hi
Could anyone tell me if there is a module for replacing the caller ID in
the SIP messages?
I need to replace the caller ID when the call comes in and leaves Kamailio.
When the egress sends back any response, I need to revert the caller ID
back to its normal form.
I have a long list of numbers to be used as caller-ID, and I need to keep
modifying them without having to restart Kamailio.
Do I need to write my own modules for maintaining the list of numbers to be
used as caller-id?
I am running at 2000 CPS, so I think I need to implement some sort of hash
table in order for the caller id to be retrieved in round roubin fashion
very quickly.
Is there any modules for this purpose or I need to write a cusom one?
Pete
Hello Maryam,
(please keep the list in CC)
understand. There is work ongoing to update the IMS modules (e.g. refer to https://www.kamailio.org/wiki/features/new-in-devel).
I don't know about a current effort to add wildcarded AVPs to them, though.
If you like to implement something in this regards, it is always good to announce it quickly on the developer list sr-dev to get some feedback and to to synchronize with other developers.
Cheers,
Henning
Am 17.08.19 um 08:04 schrieb Maryam Baghdadi:
Hello Henning,
Thank you for your response .
I read all ETSI standards , latest version of standards are according to Release15 IMS but IMS modules in kamailio support Release 7 IMS. for example there is Wildcarded_IMPU AVP in AUR in R15 IMS which isn't implemented in IMS_icscf module in kamailio .
I know all AVP lists are exist in kamailio and I can add my requirements to modules code .
I just wanted to know ims modules in kamailio will be updated or not?
On Wed, Aug 14, 2019 at 11:55 PM Henning Westerholt <hw(a)skalatan.de<mailto:hw@skalatan.de>> wrote:
Hello Maryam,
Kamailio supports AVPs and also an extended version called XAVP.
About your question - I quickly looked into ETSI TS 129 329 and TS 129 229 but they did not define how this actually works.. Can you elaborate what you actually are looking for?
Cheers,
Henning
Am 05.08.19 um 12:41 schrieb Maryam Baghdadi:
hello,
I need to know wildcarde_IMPU feature support in kamailio or not?
I use kamailio as scscf and need to have support of wildcarded_impu in my scscf.
is there any implementation of AVP_Wildcarded_IMPU in kamailio ?
thanks
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://skalatan.de/services
--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://skalatan.de/services
v5.2.3 of Kamailio. Serial forking is used to route calls to a multiple
destinations as described in documentation for the TM module.
Also using the DIALOG module - my script calls dlg_manage() before loading
the serialised branches.
I need to be able to substitute the username part of the From header and
have been trying this with calls to uac_replace_from().
modparam("uac", "restore_mode", "auto")
modparam("uac", "restore_dlg", 1)
There is no problem if all branches use one substituted From username, in
which case my script calls uac_replace_from() in the main route.
uac_replace_from("sip:" + $avp(route:src) + "@" + $fd);
However, I may need to substitute a different value for each branch. Can
this be done?
I tried moving the call to uac_replace_from() into the branch route, but
then I get an error when the final BYE is received:
ERROR: uac [replace.c:281]: replace_uri(): decline FROM replacing in
sequential request in auto mode (has TO tag)
Is there a simple solution to this please? Hoping I can still use UAC auto
restore mode because manual restore looks quite tedious/complex.
Thanks.
John Quick
Smartvox Limited
www.smartvox.co.uk
I read documentation for pike usage.. and have a doub.. what it's the
best for very dinamyc ip of my devices.. i mean, i'm just curious of
that very ironic and problematic scenario:
for the scanners i setup fail2ban but only when the scaning are
detecte.. but if i have the pike option how this:
# this it's my setup for pike due the dinamyc ip and devices over the internet:
modparam("pike", "sampling_time_unit", 4)
modparam("pike", "reqs_density_per_unit", 80)
modparam("pike", "remove_latency", 60)
...
route {
if (!pike_check_req()) {
xlog("L_ALERT","ALERT: pike block $rm from $fu (IP:$si:$sp)\n");
exit;
}
...
}
I put the remove latency in 60, so then due are dinamycally must
remian in memory more (due any one will be a possible clilent), just
ban if there are 180 (60*3) request each 4 seconds,
it's a good configuration or maybe i'm wrong please help me!
--
Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com
Hi Kamailio support,
Basically, I am looking for RFC3860 support - i.e., accept SUBSCRIBE for reg event and send 200OK, NOTIFY to client.
With some browsing on Internet I came across Kamailio, which is supporting RFC3860. I have installed and attached is my CFG file.
I am sending a SUBSCRIBE request with reg event to Kamailio and it is sending back the same request with extra Via header.
Via now contains Kamailio system IP and the source of SUBSCRIBE IP.
Please help me in resolving this issue.
I have loaded db_mysql, dialplan, tm, sl, presence, presence_reginfo modules.
Thanks,
Praveen