Hello all
We are observing an issue in one kamailio proxy we use.
The consecuence of an unknow cause is that the private memory of some
UDP receiver processes in where we listen from a particular IP, seems to
be draining along the time while processing traffic. Quite "slowly" but
maybe aroung 200K in 3-4hours, depending on the moment of the day.
This is quite weird for us, because it seemed like it was caused by some
particular traffic profile, since we have several IP listening (8
children each) and we only see the issue in the UDP receiver processes
of some of those IPs. Besides we have moved the kamailio service
listening on the same IP to several different physical servers, and the
behaviour is the same.
We look at it ussing pkg.stats kamcmd command and for instance if we
track one of the process affected
pid: 23784
rank: 53
used: 2838616
free: 13005408
real_used: 3771808
pid: 23784
rank: 53
used: 2842584
free: 12999280
real_used: 3777936
This 2 outputs were taken with 10min diff between each other.
But we dont know where or how to look at it.
We have been these last days trying to search for patterns to allocate
some particular traffic source causing something weird, but no luck.
We have checked all the SIP INVITE messages looking for anything weird
at any field but no luck, besides we sometimes see some bad headers with
blank spaces in the uri or thing like that but those cases we have an
error and we dont think it can cause a memory leak.
Shared memory seems to be stable.
We also have checked the config we are using and we have been discarding
possible issues since we dont think the $var variables we are using
could cause that issue (but you never know....)
We tried to debug the kamailio on one affected IP compiling it with
DBG_SYS_MALLOC , and doing the dump of the pkg mem status when the
kamailio was restarted and no traffic was processed, and also when it
had traffic processed. in this last case, we removed traffic, waited for
20min and made the dump
i attach you both files, we have the debug logs, but they are very big
to be passed here, and we dont know what to look for :)
could you please give us some guidance or clue to at least start to
searching for something that can cause this issue?
thanks alot and regards
david
Hello,
Could you help us to fix this error?
<core> [parser/parse_addr_spec.c:662]: parse_addr_spec(): unexpected char
[^M] in status 6:
Regards
Abdoul.
Hello,
I am using uac_req_send() to send INVITEs to a redirect server. However,
upon receiving the redirect, I need access to some state information
that was last available at the time of sending the request.
Does uac_req_send() allow me to persist AVPs like a normal TM
transaction? If not, what are my options, other than building my own
state using htable or what have you? I would really rather not
maintain—and be responsible for garbage-collecting—externally
constructed state like that if possible.
Thanks!
-- Alex
--
Alex Balashov | Principal | Evariste Systems LLC
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
I'm trying to load balance 2 Asterisk servers with Kamailio offloading the
registration to Kamailio using the Asterisk real-time database tables.
I have a problem with the dispatcher module, if there is a t_on_failure
route it always goes into that, if I remove that then I would expect every
call to round robin but I'm only ever hitting the same server from the same
extension (seems like sticky session based on source ip).
1. how do I fix my failure route so I can reboot server 1 and server 2 will
be used
2. how to I change the sticky session behaviour.
Another issue I am facing with extensions registering to Asterisk are only
avaliable on the server they routed to My assumption was if using the
Asterisk real-time database I would get the contact on both servers. Maybe
my architecture is incorrect, I'm open to suggestions. Currently Kamailio
is not storing locations (assuming that is the extension contact) maybe
that is a better solution, but I dont know how to configure Asterisk to
forward everything to Kamailio then or integrate via the database or
something.
Thanks in advance for any help
Regards
Graham
Hello,
I noticed a lot of random usernames for the accounts created to edit the
wiki. Apart of several which did some which did some edits to add spam,
most of them are inactive. Not sure what would be the real purpose
behind them, but I am going to remove anything that doesn't look as a
community user.
Shall I remove an account with random id, but for a good user, let me
know, it can be readded/account recreated.
Cheers,
Daniel
--
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - www.asipto.com
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com
Hi.
My kamailio v4.4.5 installation ( -m 512 -M 64 ) stop sip processing with
repeatable error:
Feb 15 21:45:05 kamailio[14173] ERROR: <core> [mem/f_malloc.c:415]:
> fm_search_defrag(): fm_search_defrag(0x7f39917fa010, 952); Free fragment
> not found!
> Feb 15 21:45:05 kamailio[14173] ERROR: <core> [mem/f_malloc.c:498]:
> fm_malloc(): fm_malloc(0x7f39917fa010, 952) called from core: rvalue.c:
> rval_new_empty(224), module:
> core; Free fragment not foun
while it was enough free shared memory according to
kamcmd> core.shmmem m
> {
> total: 512
> free: 472
> used: 27
> real_used: 39
> max_used: 51m
> fragments: 37035
> }
whether it was about package memory or smth else? Thanks!
--
Savolainen Dmitri
Hi all,
I am using MSILO module for the offline messaging feature. It is working
good. But If I send more than one message to the offline user. Those
messages are delivering in the reverse order. Please consider the following
scenario.
A sending B ( B is offline, so messages are stored in DB)
hi
hello
how are you
Now B comes online and registers. Kamailio sending the messages but App is
getting them in reverse order.
how are you
hello
hi
Is there any possibility to tell Kamailio to send them in order. ?
Thank you in advance.
--
View this message in context: http://sip-router.1086192.n5.nabble.com/MSILO-offline-messages-are-coming-i…
Sent from the Users mailing list archive at Nabble.com.
Hi,
I'm trying to setup dispatcher module to working with mysql database but
when i put to kamailio.cfg below lines then kamailio wont starts.
loadmodule "dispatcher.so"
modparam("dispatcher", "db_url", "mysql://kamailioro:kamailioro@localhost
/kamailio")
modparam("dispatcher", "table_name", "dispatcher")
i tried connect to mysql with credentials which you can see in mod_param
line and i could query all kamailio database. im really new in this and i
dont know how to debug this, is anybody could help me with it ?
Best regards,
Tomasz
Hi,
I'm trying to setup dispatcher module to working with mysql database but
when i put to kamailio.cfg below lines then kamailio wont starts.
loadmodule "dispatcher.so"
modparam("dispatcher", "db_url", "mysql://kamailioro:kamailioro@localhost
/kamailio")
modparam("dispatcher", "table_name", "dispatcher")
i tried connect to mysql with credentials which you can see in mod_param
line and i could query all kamailio database. im really new in this and i
dont know how to debug this, is anybody could help me with it ?
Best regards,
Tomasz
Thanks Daniel, I will look into that.
Indeed I found the logic that corrects the time ticks for any drifting, using the time of day. I guess that causes the registrations to expire.
I am out of the office for a couple of days, but will get back to you.
Best Regards, Erik
Hello,
On 15/02/2017 14:47, Erik Visser wrote:
> After I have kamailio up and running, with UAs properly registrered and sessions routed successfully, my platform faces a timejump.
> The platform starts up with date&time set to 1-1-2000 and after kamailio is up and running, the date&time jumps to the current date&time, causing two effects:
> - I loose all my registrations (since they expired in 3600 seconds)
> - kamailio does not respond to any SIP messages for a couple of minutes
>
> Is there a way to have kamailio use timeticks rather than relative time for the registrations?
> Does anybody recognize the hanging behavior? Any suggestions?
>
kamailio is using unixtime for registrations, not relative time.
But the timer callbacks are using relative intervals to know when to be
executed (e.g., timer callbacks are defined to be executed like very 1
minute, or every 90 seconds). It may be that some of the timers try to
catch up on missed intervals.
It is strange that you say no sip traffic is processed. Can you simulate
again the situation and get the backtrace with gdb from few sip workers?
If your traffic is over udp, then do 'kamctl ps', get the pid of
processes with index 1, 2 and 3, then use gdb to attach to those PIDs
and grab the output of:
bt full
info locals
list
Cheers,
Daniel
--
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - www.asipto.com
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com