From yboujraf at by-research.be Fri Apr 1 12:23:01 2022 From: yboujraf at by-research.be (Youssef Boujraf) Date: Fri, 01 Apr 2022 12:23:01 +0200 Subject: [SR-Users] =?utf-8?b?Pz09P3V0Zi04P3E/ICBSVFBFTkdJTkUgOiAgS2Ft?= =?utf-8?q?ailio_-_Get_status_if_max_sessions_reached?= In-Reply-To: Message-ID: <3970-6246d280-1f-3a391080@68634975> Dear, At rtpengine offer , The function will return true on success and false (-1) on various failures. It will be great to get different status like max-sessions limit. Do I need to apply this feature in dev mailinglist ? Best Regards On Wednesday, March 30, 2022 17:42 CEST, Henning Westerholt wrote: ?? Hello, ? you can of course reject the call if the rtpengine call is failing in Kamailio. But you need to implement this logic in the cfg, it?s not done automatically. ? Cheers, ? Henning ? -- Henning Westerholt ? https://skalatan.de/blog/ Kamailio services ? https://gilawa.com ? From: Youssef Boujraf Sent: Wednesday, March 30, 2022 5:01 PM To: Henning Westerholt Cc: Kamailio (SER) - Users Mailing List Subject: RE: [SR-Users] RTPENGINE : Kamailio - Get status if max sessions reached ? Dear, Yes we did it but get for he same call 4x return value (2x true & 2x false) and the number of max sessions was not reached. That's why I asked my question. When following the log from kamailio, kamailio get the correct status from rtpengine but if the max sessions is reached, the INVITE is not cancelled. Then no audio. Best Regards, On Wednesday, March 30, 2022 15:38 CEST, Henning Westerholt wrote: ? ? Hello, ? have you tried to evaluate the return value of the rtpengine_manage(..) function call in kamailio.cfg? It should return an error in this case, I think. ? In a production setting you should monitor your rtpengine call load with some monitoring or visualization tools. ? Cheers, ? Henning ? -- Henning Westerholt ? https://skalatan.de/blog/ Kamailio services ? https://gilawa.com ? From: sr-users On Behalf Of Youssef Boujraf Sent: Wednesday, March 30, 2022 2:48 PM To: sr-users at lists.kamailio.org Subject: Re: [SR-Users] RTPENGINE : Kamailio - Get status if max sessions reached ? Dear, Why to develop another kamailio ? The question is kamailio is handeling the status received from rtpengine but not sharing this status for extra control. Do I need to parse the module code to find where it is ? I ahve seen many people in this forum or dev forum to ask to get extra status and most of the time an update is done. Best Regards, On Wednesday, March 30, 2022 12:05 CEST, "Youssef Boujraf" wrote: ? ? Dear, ? QUESTION : ? Through kamailio, We are using rtpengine_manage and the return value is true or false but don"t know for which reason. ????????? How to be informed if rtpengine reach the maximum of sessions and will not accept any rtp routing ? ????????? We have seen if rtpengine reached the max-session; The call is accept by kamailio and finally no audio because SDP not processed - kamailio.log ? Mar 29 16:08:14 kamailio /usr/sbin/kamailio[21065]: ALERT: {1 2 INVITE nIdGvZZNiFnt3_r0xSIKpQ..}