Hello there,
I'm facing some error msg on my kamailio server in production that i would
like to understand what they means in order to avoid them.
The msg are:
- *ERROR: tm [t_reply.c:1270]: t_should_relay_response(): ERROR:
t_should_relay_response: status rewrite by UAS: stored: 408, received: 200*
- *dispatcher [dispatch.c:1509]: ds_load_replace(): cannot find load for
(16720.mydomain.com <http://16720.mydomain.com>)*
- *dispatcher [dispatch.c:2270]: ds_next_dst(): cannot update load
distribution*
- *tm [t_reply.c:533]: _reply_light(): ERROR: _reply_light: can't
generate 487 reply when a final 603 was sent out*
- *tm [t_reply.c:533]: _reply_light(): ERROR: _reply_light: can't
generate 487 reply when a final 480 was sent out*
- *WARNING: tm [t_lookup.c:245]: ack_matching(): WARNING: ack_matching()
attempted on a transaction with no E2EACK callbacks => the results are not
completely reliable when forking is involved*
Thank you
Best regards
--
José Seabra
Hi,
I have multiple Htables, Is it possible to Reload all the Htables at one
time via jsonrpc:
As of Now I am using the below command to Reload one htable at a time.
{"jsonrpc": "2.0","method": "htable.reload","params": ["b"],"id": 123}
Input Please?
Thanks & Kind Regards,
*Logeshwaran G*
*"Be Hungry, Stay Foolish"*
Hi,
Is there any way to use the Mapping technique in kamailio.
For Example:
==========
Key = 91, Value = India
Key = 92, Value = Srilanka
How to store Key Value Pairs into kamailio and how to Retrieve?
If I pass 91 it should Retrieve India, Is it possible?
Input Please
Thanks & Kind Regards,
*Logeshwaran G*
*"Be Hungry, Stay Foolish"*
Hi,
I have a kamailio 4.4.5 (x86_64/linux), running as a proxy in front of
asterisk, handling udp/tcp/tls registration, using udp towards asterisk.
Over time memory is consumed and the Passive Open TCP sessions is
increasing until we run out of memory and a restart is needed.
Sep 11 06:25:03 ERROR: <core> [mem/f_malloc.c:415]: fm_search_defrag():
fm_search_defrag(0x7f9d55184000, 34120); Free fragment not found!
Sep 11 06:25:03 ERROR: <core> [mem/f_malloc.c:498]: fm_malloc():
fm_malloc(0x7f9d55184000, 34120) called from tls: tls_init.c:
ser_malloc(275), module: tls; Free fragment not found!
This image contains graphs that show the behaviour:
https://imgur.com/68PvmyA
Should it behave like this?
Is there a knob to twist to change behaviour?
tcp / tls stuff from kamailio.cfg:
enable_tls=yes
tcp_max_connections=8196
tls_max_connections=8196
tcp_no_connect=yes # Don't try to connect - drop if there is no session
tcp_connection_lifetime=3605
modparam("tcpops", "closed_event", 1)
modparam("usrloc", "handle_lost_tcp", 1)
modparam("usrloc", "close_expired_tcp", 1)
in the registrar route I have:
tcp_keepalive_enable("60", "5", "5");
/niklas
In kamailio-basic.cfg route[LOCATION] we have the following:
--snip--
$var(rc) = $rc;
t_newtran();
switch ($var(rc)) {
case -1:
case -3:
--snip--
What is the purpose of t_newtran() here? Since we have not hit
t_relay() yet (and
don't have a transaction) is this to ensure the caller sees/acks the 404/405?
Earlier in the mailing list
https://lists.kamailio.org/pipermail/sr-users/2015-April/088062.html
I read, although this is in reply to a different situation:
"Why do you need to create new transactions yourself with t_newtran()?
Nonexotic applications of Kamailio usually don't require this. ..."
# User location service
route[LOCATION] {
if (!lookup("location")) {
$var(rc) = $rc;
t_newtran();
switch ($var(rc)) {
case -1:
case -3:
send_reply("404", "Not Found");
exit;
case -2:
send_reply("405", "Method Not Allowed");
exit;
}
}
# when routing via usrloc, log the missed calls also
if (is_method("INVITE")) {
setflag(FLT_ACCMISSED);
}
route(RELAY);
exit;
}
Thanks
AAlba
After I add route(DISPATCH) to branch_route branch calls are going throught
asterisk
# Manage outgoing branches
branch_route[MANAGE_BRANCH] {
xdbg("new branch [$T_branch_idx] to $ru\n");
xnotice("BRANCH: $rm $ru [$ci]");
route(DISPATCH);
route(NATMANAGE);
}
but if I set
$ru = "sip:34200@domain.org";
append_branch("sip:34201@domain.org");
first main ($ru) INVITE resolve to contact of ip phone INVITE
sip:34200@172.16.3.7:5060
but branch doesnt' resolve INVITE sip:34201@domain.org
Is there any way to resolve it?
--
Aydar A. Kamalov
Hello!
I have a simple route
route[HUNT] {
$ru = "sip:34200@172.16.3.7:5060";
append_branch("sip:34201@192.168.2.71");
}
172.16.3.7 and 192.168.2.71 ip phones
192.168.10.54 is kamailio
192.168.10.47 is asterisk
If I called to this route kamailio will call to 34200 through dispatcher
via asterisk. But branch going directly to the ip phone.
Is it possible to call all branches through dispatcher and asterisks?
U 192.168.10.54:5060 -> 192.168.10.47:5060
INVITE sip:34200@172.16.3.7:5060 SIP/2.0.
Record-Route: <sip:192.168.10.54;lr=on;ftag=1dc09a643aa66d85o0;did=12f.336>.
Via: SIP/2.0/UDP
192.168.10.54;branch=z9hG4bK2fd3.b2bbf3cfc7962b4cb7a1c6a174668c0d.0.
Via: SIP/2.0/UDP 172.16.3.4:5060;branch=z9hG4bK-8b2e7bed.
From: ".............. .......... ................" <sip:53003@192.168.10.54
>;tag=1dc09a643aa66d85o0.
To: <sip:1111@192.168.10.54>.
Call-ID: 7c5b5710-57b4f8c9(a)172.16.3.4.
U 192.168.10.54:5060 -> 192.168.2.71:5060
INVITE sip:34201@192.168.2.71 SIP/2.0.
Record-Route: <sip:192.168.10.54;lr=on;ftag=1dc09a643aa66d85o0;did=12f.336>.
Via: SIP/2.0/UDP
192.168.10.54;branch=z9hG4bK2fd3.b2bbf3cfc7962b4cb7a1c6a174668c0d.1.
Via: SIP/2.0/UDP 172.16.3.4:5060;branch=z9hG4bK-8b2e7bed.
From: ".............. .......... ................" <sip:53003@192.168.10.54
>;tag=1dc09a643aa66d85o0.
To: <sip:1111@192.168.10.54>.
Call-ID: 7c5b5710-57b4f8c9(a)172.16.3.4.
--
Aydar A. Kamalov