hi,
i have open around ~8000 rtp ports for around ~200calls (in peak)
with this statistic (current data, not from peak)
rtpengine_closed_sessions_total{reason="rejected"} 0 rtpengine_closed_sessions_total{reason="timeout"} 237405 rtpengine_closed_sessions_total{reason="silent_timeout"} 103 rtpengine_closed_sessions_total{reason="final_timeout"} 0 rtpengine_closed_sessions_total{reason="offer_timeout"} 0 rtpengine_closed_sessions_total{reason="terminated"} 0
rtpengine_request_seconds_total{proxy="127.0.0.1",request="offer"} 539.270967 rtpengine_request_seconds_total{proxy="127.0.0.1",request="answer"} 367.237641 rtpengine_request_seconds_total{proxy="127.0.0.1",request="delete"} 0.000000
is it normal? (large number of timeouts, "zero" terminated)
or i have missing rtpengine_manage (rtpengine_delete) somewhere?
(os rocky 9.2, kamailio 5.6.4, rtpengine 11.3.1)
thanks
Marek
Hi Marek,
It looks like a missing rtpengine_manage/ rtpengine_delete somewhere.
I assume you have them in for any BYE/CANCEL you get and for any sip errors in your script?
Plus a low delete-delay in the rtpengine.conf?
-----Original Message----- From: marek cervajs64@gmail.com Sent: Thursday, August 24, 2023 2:36 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: [SR-Users] rtpengine large number used RTP ports
hi,
i have open around ~8000 rtp ports for around ~200calls (in peak)
with this statistic (current data, not from peak)
rtpengine_closed_sessions_total{reason="rejected"} 0 rtpengine_closed_sessions_total{reason="timeout"} 237405 rtpengine_closed_sessions_total{reason="silent_timeout"} 103 rtpengine_closed_sessions_total{reason="final_timeout"} 0 rtpengine_closed_sessions_total{reason="offer_timeout"} 0 rtpengine_closed_sessions_total{reason="terminated"} 0
rtpengine_request_seconds_total{proxy="127.0.0.1",request="offer"} 539.270967 rtpengine_request_seconds_total{proxy="127.0.0.1",request="answer"} 367.237641 rtpengine_request_seconds_total{proxy="127.0.0.1",request="delete"} 0.000000
is it normal? (large number of timeouts, "zero" terminated)
or i have missing rtpengine_manage (rtpengine_delete) somewhere?
(os rocky 9.2, kamailio 5.6.4, rtpengine 11.3.1)
thanks
Marek
__________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: Mission Labs Limited is registered in England, company number 10040088. Trading Office: The Old Milk Depot, Bacup Rd, Rossendale, BB4 7FE. Registered office: The Scalpel, 18th Floor 52 Lime Street, London, EC3M 7AF. Email confidentiality notice: This message is private and confidential. If you have received this message in error, please notify us and remove it from your system. Please consider the environment before you print this email.
hi,
added
route[WITHINDIALOG] { if (loose_route()) { ...
if (is_method("BYE|CANCEL")) { rtpengine_manage(); } ...
now i see numbers in
rtpengine_closed_sessions_total{reason="terminated"} 6436
rtpengine_request_seconds_total{proxy="127.0.0.1",request="delete"} 17.559471
BUT
number for used RTP ports is still very high (from my point of view)
like ~2000 for 100 simult calls
rtpengine-ctl params current | grep delete delete-delay = 0
Marek
Dne 2023-08-24 v 16:55 John Hardiman napsal(a):
Hi Marek,
It looks like a missing rtpengine_manage/ rtpengine_delete somewhere.
I assume you have them in for any BYE/CANCEL you get and for any sip errors in your script?
Plus a low delete-delay in the rtpengine.conf?
-----Original Message----- From: marek cervajs64@gmail.com Sent: Thursday, August 24, 2023 2:36 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: [SR-Users] rtpengine large number used RTP ports
hi,
i have open around ~8000 rtp ports for around ~200calls (in peak)
with this statistic (current data, not from peak)
rtpengine_closed_sessions_total{reason="rejected"} 0 rtpengine_closed_sessions_total{reason="timeout"} 237405 rtpengine_closed_sessions_total{reason="silent_timeout"} 103 rtpengine_closed_sessions_total{reason="final_timeout"} 0 rtpengine_closed_sessions_total{reason="offer_timeout"} 0 rtpengine_closed_sessions_total{reason="terminated"} 0
rtpengine_request_seconds_total{proxy="127.0.0.1",request="offer"} 539.270967 rtpengine_request_seconds_total{proxy="127.0.0.1",request="answer"} 367.237641 rtpengine_request_seconds_total{proxy="127.0.0.1",request="delete"} 0.000000
is it normal? (large number of timeouts, "zero" terminated)
or i have missing rtpengine_manage (rtpengine_delete) somewhere?
(os rocky 9.2, kamailio 5.6.4, rtpengine 11.3.1)
thanks
Marek
Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: Mission Labs Limited is registered in England, company number 10040088. Trading Office: The Old Milk Depot, Bacup Rd, Rossendale, BB4 7FE. Registered office: The Scalpel, 18th Floor 52 Lime Street, London, EC3M 7AF. Email confidentiality notice: This message is private and confidential. If you have received this message in error, please notify us and remove it from your system. Please consider the environment before you print this email. __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
Hi Marek,
I assume you have something to handle failed/error'd sessions also?
Maybe use this for anything >400 do a rtpengine_manage()
https://kamailio.org/docs/modules/devel/modules/tm.html#tm.f.t_get_status_co...
Looks like it is a couple of things taking (and holding onto) the ports.
-----Original Message----- From: marek cervajs64@gmail.com Sent: Friday, August 25, 2023 10:39 AM To: sr-users@lists.kamailio.org Subject: [SR-Users] Re: rtpengine large number used RTP ports
hi,
added
route[WITHINDIALOG] { if (loose_route()) { ...
if (is_method("BYE|CANCEL")) { rtpengine_manage(); } ...
now i see numbers in
rtpengine_closed_sessions_total{reason="terminated"} 6436
rtpengine_request_seconds_total{proxy="127.0.0.1",request="delete"} 17.559471
BUT
number for used RTP ports is still very high (from my point of view)
like ~2000 for 100 simult calls
rtpengine-ctl params current | grep delete delete-delay = 0
Marek
Dne 2023-08-24 v 16:55 John Hardiman napsal(a):
Hi Marek,
It looks like a missing rtpengine_manage/ rtpengine_delete somewhere.
I assume you have them in for any BYE/CANCEL you get and for any sip errors in your script?
Plus a low delete-delay in the rtpengine.conf?
-----Original Message----- From: marek cervajs64@gmail.com Sent: Thursday, August 24, 2023 2:36 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: [SR-Users] rtpengine large number used RTP ports
hi,
i have open around ~8000 rtp ports for around ~200calls (in peak)
with this statistic (current data, not from peak)
rtpengine_closed_sessions_total{reason="rejected"} 0 rtpengine_closed_sessions_total{reason="timeout"} 237405 rtpengine_closed_sessions_total{reason="silent_timeout"} 103 rtpengine_closed_sessions_total{reason="final_timeout"} 0 rtpengine_closed_sessions_total{reason="offer_timeout"} 0 rtpengine_closed_sessions_total{reason="terminated"} 0
rtpengine_request_seconds_total{proxy="127.0.0.1",request="offer"} 539.270967 rtpengine_request_seconds_total{proxy="127.0.0.1",request="answer"} 367.237641 rtpengine_request_seconds_total{proxy="127.0.0.1",request="delete"} 0.000000
is it normal? (large number of timeouts, "zero" terminated)
or i have missing rtpengine_manage (rtpengine_delete) somewhere?
(os rocky 9.2, kamailio 5.6.4, rtpengine 11.3.1)
thanks
Marek
Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: Mission Labs Limited is registered in England, company number 10040088. Trading Office: The Old Milk Depot, Bacup Rd, Rossendale, BB4 7FE. Registered office: The Scalpel, 18th Floor 52 Lime Street, London, EC3M 7AF. Email confidentiality notice: This message is private and confidential. If you have received this message in error, please notify us and remove it from your system. Please consider the environment before you print this email. __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
__________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: Mission Labs Limited is registered in England, company number 10040088. Trading Office: The Old Milk Depot, Bacup Rd, Rossendale, BB4 7FE. Registered office: The Scalpel, 18th Floor 52 Lime Street, London, EC3M 7AF. Email confidentiality notice: This message is private and confidential. If you have received this message in error, please notify us and remove it from your system. Please consider the environment before you print this email.