<div dir="auto">Setup a counter in redis server shared across all kamailios, add to counter when call is answered and subtract when call hangs up.<br><br>You can use any existing db that you already have instead of redis as long as it is accessible across all kamailios.<br><br><br>--<div>Muhammad Shahzad Shafi</div><div>Tel: +49 176 99 83 10 85</div><div><br><br><div id="hw_signature">Sent from my phone</div></div></div><div style="line-height:1.5"><br><br>-------- Original message --------<br>From: Waqar 40 <waqarbhai796@gmail.com><br>Date: Wed, 13 Jul 2022, 06:57<br>To: sr-users@lists.kamailio.org<br>Subject: [SR-Users] Need Suggestion/Idea to set call limit on 3 kamailios.<br><blockquote><div dir="ltr"><div>Please Read the Scenario in full and then guide me.</div>In my scenario, I have three Kamailio (KamA, KamB, KamC) running in production. They do load balancing for the asterisks which are about 9. Kamailios randomly receive calls from the SIP trunk. I have set the limit of 750 calls on each kamailios. I want to provide only 1000 Calls to my client but they are enjoying calls more than this since each kamailio can receive 750 calls (I have set this limit for redundancy purpose). And I cannot set the limit like 750 on KamA and the rest on KamB and KamC for redundancy purposes. If one kamailio goes down then they send calls on the other kamailios so that no call drops. So, I want to know if there is a module or a way that my redundancy is not affected and I limit total calls on the three kamailios to not exceed 1000. Waiting for a prompt response.<br /><div><br /></div><div>Let me know if you need any further information.</div><div><br /></div><div>Regards,</div><div>Vicky</div></div>
</blockquote></div>