I have three Kamailios in three different servers which are dispatching
calls to 9 asterisks in three different servers using load balancing. All
these Kamailios are using databases installed on that servers. As the
entries of the dispatcher table are the same for all the Kamailio, so I
want that these Kamailio use a single database installed on one of the
servers. All these Kamailios instances should use the same database which
is common between them. And also I want these Kamailios to write into the
database by creating a table that stores all the active calls in three
Kamailios. Is it possible? How can I do it? Please guide me with
somewhat explanation as I am not this much expert in Kamailio.
Waiting for a quick response.
Regards
VoIP Engineer Vicky
Hello,
I have kamailio in local network behind NAT. Kamailio have one interface
eth1 with ip 10.130.0.23
UserAgent - (internet) - (178.0.0.169)router_with_NAT - (LAN) -
kamailio+rtpproxy - pbx
I made two listeners:
listen=udp:10.130.0.23:5070 #to pbx in lan (I don`t want to put via header
with 178.0.0.169)
listen=udp:10.130.0.23:5060 advertise 178.0.0.169:5060 #to internet
(UserAgent need to get via header with 178.0.0.169 )
mhomed = 1 # I think It not useful for my case
UserAgent send Register and Invite to 178.0.0.169:5060, Kamailio get it on
udp:10.130.0.23:5060
Kamailio Relay it to udp:10.130.0.23:5070
My pbx get requests from udp:10.130.0.23:5070 with via header 10.130.0.23
Responses to UserAgent go from udp:10.130.0.23:5060 with via 178.0.0.169
In RELAY block:
if ($Ru == «udp:10.130.0.23:5070») {
#set_send_socket(«udp:10.130.0.23:5060»);
$fs = «udp:10.130.0.23:5060»;
#force_send_socket(«udp:10.130.0.23:5060»);
} else {
#set_send_socket(«udp:10.130.0.23:5070»);
$fs = «udp:10.130.0.23:5070»;
}
#$fs = «udp:10.130.0.23:5070»;
if (!t_relay()) {
sl_reply_error();
}
route[REGISTRAR] {
if ($rd == "mydomain.ru" || $rd == "mydomain2.ru") {
set_send_socket("udp:10.130.0.23:5070");
}
}
It works for requests from UserAgent to PBX. But INVITE from my pbx to
UserAgent goes only through udp:10.130.0.23:5070 , Kamailio realy it to
internet from udp:10.130.0.23:5070
I get error in syslog: (pv [pv_branch.c:62]: pv_get_branchx_helper():
error accessing branch [0])
I tried set_send_socket(«udp:10.130.0.23:5070»); and $fs =
«udp:10.130.0.23:5070»;
Why I can`t relay outgoing requests to internet through another socket?
--
Best regards,
Alex
Hey Kamailio Users,
So the scenario is we get the registers. Load them, slightly oddly as
we also fill in the received section, not something I usually do.
Then when they send an invite, the To and From headers are real phone
numbers and for some reason the contact header isn't their username.
So to compensate for that I'm trying to match their connection ($sut)
using registered, but after a couple of hours I haven't been able to
get it to match up. Not sure what I'm missing.
ul.dump gets me
Received: sip:sipclientpublicip:2353;transport=udp
so we know that part is loading $sut correctly into the user location data.
modparam("usrloc", "matching_mode", 2)
modparam("registrar", "xavp_rcd", "ulrcd")
modparam("registrar", "received_avp", "$avp(i:42)")
$xavp(regcfg=>match_received) = $sut;
if (registered("location","$sut", 2, 1)) {
After that block of code $sut is sip:
sipclientpublicip:2353;transport=udp which is what's in usrloc for
received, but it's not match.
There's probably a much smarter way of doing this that I've completely
missed, if so then that'd be excellent. But if I'm on the right path
somewhat then it would be great to get this working.
Hello!
I have several Kamailio sharing a common uacreg table and use the RPC
interface to enable and disable outgoing registration on nodes depending on
the cluster status:
*kamcmd uac.reg_active 0kamcmd uac.reg_active 1*
https://kamailio.org/docs/modules/stable/modules/uac.html#uac.r.uac.reg_act…
How can I get the current status of uac outbound registration (to get 0 or
1)?
--
BR,
Denys Pozniak
Hi,
You are currently using TLSv1/SSLv3 ECDHE-RSA-AES256-GCM-SHA384 256
Teams stopped TLSv1/ TLSv1.1 and only allowing TLS1.2+
So change your TLS settings to enforce it only
method = TLSv1.2+
after restarting kamailio your teams connections should be good.
HI
I’m trying to get CDR function. I would like to have one CDR for whole call at the syslog.
I use:
……
loadmodule "db_text.so"
loadmodule "dialog.so"
loadmodule "acc.so"
……..
# -----Dialog module -----
modparam("dialog", "db_mode", 0)
# -----ACCounting module -----
modparam("acc", "early_media", 0)
modparam("acc", "report_cancels", 1)
modparam("acc", "log_facility", "LOG_LOCAL1")
modparam("acc", "detect_direction", 0)
modparam("acc", "log_level", ACC_LOG_LEVEL)
modparam("acc", "log_flag", FLAG_ACC_LOG)
modparam("acc", "log_missed_flag", FLAG_ACC_LOG_MISSED)
modparam("acc", "failed_transaction_flag", FLAG_ACC_LOG_FAILED)
modparam("acc", "log_extra", "ip_src=$si;ip_dst=$avp(ip_dst);sip_from=$fU;sip_to=$tU;ruri_user=$rU;spx_rs=$avp(spx_http_rs)") ## TODO
modparam("acc", "cdr_enable", 1)
modparam("acc", "cdr_enable_log", 1)
modparam("acc", "cdr_facility", "LOG_LOCAL1")
request_route {
if (is_method("INVITE")) {
setflag(FLAG_ACC_LOG);
setflag(FLAG_ACC_LOG_MISSED);
setflag(FLAG_ACC_LOG_FAILED);
}
At the kamailio.log I see only transaction for INVITE, but I wait for some CDR for all dialog. Whats wrong in my config?
--
--
Олег Подгуйко
Hello, We are seeking Engineers with some experience in open source VoIP
solutions like Kamilio, Asterisk, etc. The opportunity is remote in Latin
america. We are a Chilean company dedicated to giving different solutions
for customer service on cloud.
is you are interested please send us an email to alejandro(a)elipse.ai
Thank you!!
Hello,
pbx -> kamailio -> provider
kamailio registers (uacreg) on provider.
When I call through my provider I need to change headers To From and PAI. I
tried with uac_replace_from and uac_replace_to.
$tU for example 0987656789
if($fU=~"1234567") {
uac_replace_from("sip:provider_login@provider.com");
uac_replace_to("sip:$tU@provider.com");
}
My provider answers on Invite with 183 progress, so pbx answers with PRACK.
Kamailio change To and from like this:
To: <sip:0987656789@provider.comsip:0987656789@provider.com>;tag=.....
To: <sip:0987656789@provider.comsip:0987656789@provider.com>
From: <sip:provider_login@provider.comsip:provider_login@provider.com
>;tag=.....
From: <sip:provider_login@provider.comsip:provider_login@provider.com>
Is it a bug?
I tried to disable this modification for PRACK u REQINIT ($csb != "2
PRACK") It haven't worked for me.
I solved this issue with this code.
remove_hf("From");
if ($ft == $null) {
insert_hf("From: <sip:provider_login@provider.com>\r\n", "To");
} else {
insert_hf("From: <sip:provider_login@provider.com>;tag=$ft\r\n",
"To");
}
version: kamailio 5.7.0-dev0 (x86_64/linux)
Ubuntu 18
--
Regards,
Alex