[OpenSIPS-Users] opensips + rtpengine
Slava Bendersky
volga629 at networklab.ca
Mon Aug 3 12:17:46 EST 2020
Hello Karsten,
The solution was for high loads to call delete under relay in my case .
In 3.1 you need change $proto.
route[RELAY] {
if(is_method("INVITE") && $proto=="wss") {
t_on_branch("manage_wss");
} else if( is_method("INVITE") && $proto=="tcp|udp") {
route(manage_rtp);
} else if(is_method("BYE|CANCEL")) {
rtpengine_delete();
}
t_relay();
exit;
}
volga629
From: "Karsten Horsmann" <khorsmann at gmail.com>
To: "volga629" <volga629 at networklab.ca>, "OpenSIPS users mailling list" <users at lists.opensips.org>
Cc: "Alain Bieuzent" <alain.bieuzent at free.fr>
Sent: Sunday, August 2, 2020 3:35:47 AM
Subject: Re: [OpenSIPS-Users] opensips + rtpengine
Hi Volga,
did you solve that issue? Would be nice to have an solution for that.
Kind regards
Karsten Horsmann
volga629 via Users < [ mailto:users at lists.opensips.org | users at lists.opensips.org ] > schrieb am Mi., 18. März 2020, 16:06:
I will do that test.
On 3/18/20 6:37 AM, Alain Bieuzent wrote:
BQ_BEGIN
Hi Volga,
Your configuration look good,
Have you check the number of port really use by rtpengine when you ran out of ports ? (netstat -paun | grep rtpengine | wc -l)
Regards
De : volga629 [ mailto:volga629 at networklab.ca | <volga629 at networklab.ca> ]
Date : lundi 16 mars 2020 à 20:38
À : Alain Bieuzent [ mailto:alain.bieuzent at free.fr | <alain.bieuzent at free.fr> ] , OpenSIPS users mailling list [ mailto:users at lists.opensips.org | <users at lists.opensips.org> ]
Objet : Re: [OpenSIPS-Users] opensips + rtpengine
Hello Alain,
port-min = 5000
port-max = 50000
delete-delay = 5
timeout = 10
silent-timeout = 900
onreply_route[handle_media_reply] {
xlog("incoming reply\n");
if(is_method("INVITE|UPDATE") && t_check_status("200|183")) {
if(has_body("application/sdp")) {
rtpengine_answer("trust-address RTP/AVP replace-session-connection replace-origin ICE=remove");
}
}
t_on_failure("media_delete_route");
}
failure_route[media_delete_route] {
if(t_check_status("[56][0-9][0-9]|408|[60][0-9][0-9]")) {
xlog("Call with Reply [$rs] make it close");
rtpengine_delete();
}
}
but rtpengine produce error
Mar 16 17:46:40 Proxy /usr/sbin/opensips[11348]: ERROR:rtpengine:rtpe_function_call: proxy replied with error: Ran out of ports
Mar 16 17:46:40 Proxy /usr/sbin/opensips[11365]: ERROR:rtpengine:rtpe_function_call: proxy replied with error: Unknown call-id
volga629
On 3/15/20 9:04 AM, Alain Bieuzent wrote:
BQ_BEGIN
Hi,
Can you share value of delete-delay, port-min and port-max of your rtpengine configuration.
Have you also check if you handle rtpengine_delete on failed calls (in case sip cause code 4XX, 5XX and 6XX).
At @job, we handle max 6000 calls on a 6 cores servers without any issue.
Regards
De : Users [ mailto:users-bounces at lists.opensips.org | <users-bounces at lists.opensips.org> ] au nom de volga629 via Users [ mailto:users at lists.opensips.org | <users at lists.opensips.org> ]
Répondre à : volga629 [ mailto:volga629 at networklab.ca | <volga629 at networklab.ca> ] , OpenSIPS users mailling list [ mailto:users at lists.opensips.org | <users at lists.opensips.org> ]
Date : vendredi 13 mars 2020 à 18:39
À : [ mailto:users at lists.opensips.org | <users at lists.opensips.org> ]
Objet : [OpenSIPS-Users] opensips + rtpengine
Hello Everyone,
Might be somebody can point me to right place.
Under load Rtpengine on server with 12 core can't pass 400 channels/sessions.
Mar 13 18:14:53 CentOS-77-64-minimal rtpengine[14588]: WARNING: [1b17077c-654e-11ea-bd31-87b1c8fc-849]: Protocol error in packet from [ http://136.243.43.23:47763/ | 136.243.43.23:47763 ] : Ran out of ports [d3:sdp289:
WARNING: [1be05a46-654e-11ea-b136-573b6201-849]: Protocol error in packet from [ http://136.243.43.23:55847/ | 136.243.43.23:55847 ] : Unknown call-id [d3:sdp250:
It like it not closing calls properly, but I am running rtpengine_delete() in loose _route on BYE or CANCEL.
Here are more details
[ https://github.com/sipwise/rtpengine/issues/946 | https://github.com/sipwise/rtpengine/issues/946 ]
# Handle requests within SIP dialogs
route[handle_sequential] {
if (has_totag()) {
if (loose_route()) {
# BYE rtpengine_delete()
if (is_method("BYE|CANCEL")) {
xlog("LOOSE_ROUTE:DBG: [$rm] trying delete rtpengine\n");
rtpengine_delete();
xlog("Average MOS of the entire call is $rtpstat(MOS-average)\r\n");
xlog("Average MOS of caller is $(rtpstat(MOS-average)[$ft])\r\n");
xlog("Average MOS of callee is $(rtpstat(MOS-average)[$tt])\r\n");
xlog("Min MOS of caller is $(rtpstat(MOS-min)[$ft]) reported at $(rtpstat(MOS-min-at)[$ft])\r\n");
}
t_relay();
exit;
volga629
_______________________________________________ Users mailing list [ mailto:Users at lists.opensips.org | Users at lists.opensips.org ] [ http://lists.opensips.org/cgi-bin/mailman/listinfo/users | http://lists.opensips.org/cgi-bin/mailman/listinfo/users ]
BQ_END
_______________________________________________
Users mailing list
[ mailto:Users at lists.opensips.org | Users at lists.opensips.org ]
[ http://lists.opensips.org/cgi-bin/mailman/listinfo/users | http://lists.opensips.org/cgi-bin/mailman/listinfo/users ]
BQ_END
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20200803/2fcef8f9/attachment-0001.html>
More information about the Users
mailing list