Dear kamailio Team,
I using dlg_refer for refer callee leg on specific
condition to Freeswitch conference. But I got decline message. in reverse
caller leg refer to freeswitch conference.
can pls tell how to achieve it.
Regards
Amit Pal
Greetings,
I'm currently creating a Kamailio with registrations and i'm unsure how to
use the save() function.
I want to limit the number of contacts for the AOR to 2. I also want to
force the registration of new contacts even if the maximum number is
reached, removing the older ones.
I saw that on opensips i could use the flags "fc2" for this but they aren't
available on Kamailio's save(). I'm using the max_contacts parameter but in
the docs it states the once the limit is reached, it will reject new
Registers.
How can i implement the force registration behaviour here?
Best Regards,
Duarte Rocha
Hello!
Decrypting SRTP with Kamailio + rtpengine.
Hello! I have a task to decrypt SRTP for a legacy switch which doesn’t support it.
Simply adding rtpengine_manage("RTP/AVP") didn’t help. SDP converted from SRTP to RTP while proxying INVITE to legacy switch, but 180 Ringing wasn’t converted back to SRTP.
Little more detailed config snippet:
route[RELAY] {
...
if (is_method("INVITE")) {
if ($rd=~$var(switch_ip_mask)) {
rtpengine_manage("RTP/AVP");
} else {
rtpengine_manage();
}
...
}
Could someone please advise typical scenarios to achieve it, I suppose the task is pretty standard.
Thank you in advance!
Hello,
we are considering to organize a small online event to compensate a bit
the cancellation of Kamailio World 2020, but mainly to discuss about
what is new around Kamailio project and RTC space.
The event was discussed among a couple developers several weeks ago,
when it was clear that the pandemic will last longer, preventing any
on-site event, and the intention to do it was also announced during the
recording of last ClueCon Weekly about Kamailio project at the beginning
of July
(https://www.kamailio.org/w/2020/07/cluecon-weekly-kamailio-updates-july-202…).
The first commit of Kamailio code was done on the 3rd of September 2001,
thus this is like the project's birthday, so a good opportunity to
celebrate that as well.
The event is planned to be 2 sessions of about 4 hours on each day, with
a few presentations per day, but try focus on open discussions about.
The goal is to keep in very informal, without any significant burden for
organizers or participants, not to add to the daily stress with work and
family in the pandemic time. It should be more like meetup style, with
no registration for participants, sessions may not be recorded and can
be done without slides. Likely we will use a (self-hosted) video
conferencing system (Jitsi) for presentations and the IRC or Matrix
channels for chatting.
The time frames we look at are 15:00-19:00 Berlin time zone (13:00-17:00
UTC) on the 2nd and the 3rd of September 2020.
The purpose of this email for now is to see the interest of the
community for such event, reply if you think it is useful to organize it
and you plan to participate.
If there is interest, then I will follow up with more details about
speakers and the structure of the event.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
Funding: https://www.paypal.me/dcmierla
We have 100 customer locations and I was hoping to no deploy a kamabox at each location if traffic is mostly just local. But we are building a WEBRTC. and hoping our architecture can use kamailio in the cloud.
Each location has a PBX onsite. We are deploying webRTC so need that websocket setup jssip/sip.js.
SIP SIGNALING (relay) ()
UA(webphone) --> Cloud Kamailio --> PBX
10.0.1.100 --> cloud.kama.com --> 10.0.1.1
But then translate uac and get RTP to pass locally without a device onsite at each location.
RTP Flow (not going through kamailio)
UA(webphone) --> PBX
10.0.1.100 --> 10.0.1.1
While executing this piece of config script, after a few days of run
time, Kamailio starts experiences some issue that leads to instability
and unresponsiveness of the proxy via TCP with TLS. UDP workers seems to
be working fine... TCP clients can't connect.
route[RELAY] {
...
if (!t_relay()) {
sl_reply_error();
}
exit;
}
Please advise how we can troubleshoot this issue.
Are there any immediate (or obvious) TCP/TLS/FD Kamailio/Linux
parameters that should be increased to allocate more resources for the
Proxy?
Or may be any other parameters that may lead to a quicker resources release.
Please see the errors bellow...
Environment: Ubuntu 16 x86_64, Kamailio 5.3.5.
Thanks,
Dmytro
Aug 15 04:48:19 CRITICAL: <core> [core/pass_fd.c:191]: send_fd():
sendmsg failed sending 164 on 16: Too many references: cannot splice (109)
Aug 15 04:48:19 ERROR: <core> [core/tcp_main.c:3908]:
handle_ser_child(): CONN_GET_FD: send_fd failed
Aug 15 04:48:19 ERROR: tm [../../core/forward.h:292]:
msg_send_buffer(): tcp_send failed
Aug 15 04:48:19 WARNING: tm [t_fwd.c:1573]: t_send_branch(): sending
request on branch 0 failed
Aug 15 04:48:19 ERROR: sl [sl_funcs.c:392]: sl_reply_error(): stateless
error reply used: Unfortunately error on sending to next hop occurred
(477/SL)
....
Aug 15 05:52:04 ERROR: <core> [core/tcp_main.c:4225]: send2child():
send_fd failed for 0x7f92e91c31e0 (flags 0x4018), fd 74
Aug 15 05:52:04 CRITICAL: <core> [core/pass_fd.c:191]: send_fd():
sendmsg failed sending 75 on 43: Too many references: cannot splice (109)
Aug 15 05:52:04 ERROR: <core> [core/tcp_main.c:4225]: send2child():
send_fd failed for 0x7f92e9d727b0 (flags 0x4018), fd 75
Aug 15 05:52:04 CRITICAL: <core> [core/pass_fd.c:191]: send_fd():
sendmsg failed sending 75 on 73: Too many references: cannot splice (109)
Aug 15 05:52:04 ERROR: <core> [core/tcp_main.c:4225]: send2child():
send_fd failed for 0x7f92e9d727b0 (flags 0x4018), fd 75
Aug 15 05:52:04 CRITICAL: <core> [core/pass_fd.c:191]: send_fd():
sendmsg failed sending 75 on 45: Too many references: cannot splice (109)
Aug 15 05:52:04 ERROR: <core> [core/tcp_main.c:4225]: send2child():
send_fd failed for 0x7f92e9d727b0 (flags 0x4018), fd 75
Aug 15 05:52:04 CRITICAL: <core> [core/pass_fd.c:191]: send_fd():
sendmsg failed sending 74 on 43: Too many references: cannot splice (109)
Aug 15 05:52:04 ERROR: <core> [core/tcp_main.c:4225]: send2child():
send_fd failed for 0x7f92e91c31e0 (flags 0x4018), fd 74
Aug 15 05:52:04 CRITICAL: <core> [core/pass_fd.c:191]: send_fd():
sendmsg failed sending 76 on 43: Too many references: cannot splice (109)
Aug 15 05:52:04 ERROR: <core> [core/tcp_main.c:4225]: send2child():
send_fd failed for 0x7f92e7856fa8 (flags 0x4018), fd 76
Aug 15 05:52:04 CRITICAL: <core> [core/pass_fd.c:191]: send_fd():
sendmsg failed sending 74 on 47: Too many references: cannot splice (109)
Aug 15 05:52:04 ERROR: <core> [core/tcp_main.c:4225]: send2child():
send_fd failed for 0x7f92e7856fa8 (flags 0x4018), fd 74
.....
What are your thoughts on architecture build of the following scenarios.
The PBX doesn’t support websockets and we want to use sip.js / jsSip. (use Kama as wss:// SIP proxy)
PBX has direct PRI/sip Trunks/ DID control/ Voicemail.
PBX hosts SIP extensions.
UA --> Kamailio --> PBX
--------SCENARIO A.) ------- Host SIP[xxxx] extensions on Kama box but same SIP extensions are also on PBX [xxxx]
1. Build some sort of control to register handle kama to pbx …. (but reg webclients)
Kama [1100] SIP-PBX [1100]
Does kama act as the UA 1100 / registered to PBX
What about UA to kamailio (do we do 1100a so UA-kama is 1100a) but kama is maintain REG/status/ but passing that IF client is online ?
MWI (voicemail is hosted on PBX) so how does that move through can it.
------- SCENARIO B.) ------ Proxy all/ everything . use route[REGFW] Forward all REG to PBX..
Issues ----
MWI (SIP notify ?)
SIP Incoming CALL incoming calls to work. (if UA holds REG to outbound proxy on PBX or )
DTMF (sipINFO) doesn’t work (I see it sending)
I noticed I crashed the PBX because all the SIP scanners started pounding my Kamailio box after 2 days when I added route[REGFW] it starting eating up SIP trunk channels on PBX cause started forwarding everything. Like it starting 4241(a)xxxxx.com 4242(a)xxxxx.com .
Or might need to look at fail2ban pike module to oget this but still had issues I just don’t know where to look or code to fix on SCENARIO B
Snippets on my testing .
route[REGFWD] {
if(!is_method("REGISTER"))
{
return;
}
$var(rip) = $sel(cfg_get.PBX.bindip);
$uac_req(method)="REGISTER";
$uac_req(ruri)="sip:" + $var(rip) + ":" + $sel(cfg_get.PBX.bindport);
$uac_req(furi)="sip:" + $au + "@" + $var(rip);
$uac_req(turi)="sip:" + $au + "@" + "kamaproxy";
# $uac_req(turi)="sip:" + $au + "@" + $var(rip);
$uac_req(hdrs)="Contact: <sip:" + $au + "@"
+ $sel(cfg_get.kamailio.bindip)
+ ":" + $sel(cfg_get.kamailio.bindport) + ">\r\n";
if($sel(contact.expires) != $null)
$uac_req(hdrs)= $uac_req(hdrs) + "Expires: " + $sel(contact.expires) + "\r\n";
else
$uac_req(hdrs)= $uac_req(hdrs) + "Expires: " + $hdr(Expires) + "\r\n";
uac_req_send();
}
#!endif
---------------
So this led me to extra security should I host SIP extensions on kamailio as an extra security but then what about MWI/inbound then) or do I have 1100 on kama which mitel is 1100 but I pass all info from inbound.
Dear Denial/Team,
I am glad to work with kamailio Team,
I am using kamailio freeswitch integration. I want to work like this.
My all subscriber register at kamailio. My application server is freeswitch.
MY first question: When subscriber kamuser1 and kamuser2 are talking then I want to transfer these two party in freeswitch conference. I am unable to generate re-invite these call . here I was also try with rewritehost(like) but not success. how can we achieve this.
My second question : Even MOH not playing when any one party hold the call. I already setup KAMUser1Kamailio(RTPProxy)KAMUser2. I have completely setup the config of rtpproxy and mohqueues.
log shows all signal handle by kamailio and RTPProxy but not getting moh.
I am attaching my config file for reference.
can we do this by mediaproxy with freeswitch ,all thing are configured as document but no success.
My third question: Kamailio relay dtmf on sipinfo. How can we get dtmf in between the call and taking actions on it.
I am highly thankful for your great support .
Thanks
Regards
Dear Team,
“I am unable to reach you, my previous mail get bounce. I received bounce mail from sr-users. Below is my previous mail contains.”
Last Sent Mail Contents
I am glad to work with kamailio Team,
I am using kamailio freeswitch integration. I want to work like this.
My all subscriber register at kamailio. My application server is freeswitch.
MY first question: When subscriber kamuser1 and kamuser2 are talking then I want to transfer these two party in freeswitch conference. I am unable to generate re-invite these call . here I was also try with rewritehost(like) but not success. how can we achieve this.
My second question : Even MOH not playing when any one party hold the call. I already setup KAMUser1Kamailio(RTPProxy)KAMUser2. I have completely setup the config of rtpproxy and mohqueues.
log shows all signal handle by kamailio and RTPProxy but not getting moh.
I am attaching my config file for reference.
can we do this by mediaproxy with freeswitch ,all thing are configured as document but no success.
My third question: Kamailio relay dtmf on sipinfo. How can we get dtmf in between the call and taking actions on it.
I am highly thankful for your great support .
Thanks
Regards
Neol
Dear Team,
I am glad to work with kamailio Team,
I am using kamailio freeswitch integration. I want to work like this.
My all subscriber register at kamailio. My application server is freeswitch.
MY first question: When subscriber kamuser1 and kamuser2 are talking then I
want to transfer these two party in freeswitch conference. I am unable to
generate re-invite these call . here I was also try with rewritehost(like)
but not success. how can we achieve this.
My second question : Even MOH not playing when any one party hold the call.
I already setup KAMUser1==>Kamailio(RTPProxy)==>KAMUser2. I have completely
setup the config of rtpproxy and mohqueues.
log shows all signal handle by kamailio and RTPProxy but not getting moh.
I am attaching my config file for reference.
can we do this by mediaproxy with freeswitch ,all thing are configured as
document but no success.
My third question: Kamailio relay dtmf on sipinfo. How can we get dtmf in
between the call and taking actions on it.
I am highly thankful for your great support .
Thanks
Regards
Neol