<div dir="ltr"><div><div><div><div>Hi Peter,<br></div><br>So far i also came to something similar.<br></div>i've all ips in db with status enable/disable.<br></div>on channel answer event , same ip toggles its status.<br></div><div>then updating profile rtp-ip variable and rescan profile.<br></div><div>and on destroy event again update status in Db and rescan the profile.<br></div><div>If i ignore frequent calls to DB , still i am not getting what will happen if all ips are used . How will i restrict calls more then IPs i've . (can't touch global session limit as there are other profiles where i dont want to limit anything ).<br></div><div>So i thought to ask there must be some better way to do it.<br><br></div><div>@Ken : <br></div><div>each profile with their own RTP-iP can also work , how to limit number of calls per profile ? <br></div><div><br></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 20, 2017 at 6:53 PM, Peter Steinbach <span dir="ltr"><<a href="mailto:lists@telefaks.de" target="_blank">lists@telefaks.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div class="m_5597352888393888893moz-cite-prefix">Hello Ahmad,<br>
<br>
we do it the following way<br>
<ul>
<li>we have a background job, which periodically (every 1-2 sec)
connects via esl to fo Freeswitch and gets it's channel
informations. Then we do some calculations based on e.g. call
state, domain, profile, ip, other customer information (in our
case it's multi-tenant) </li>
<li>for each calculation, we set a memcache key to a specific
value (a new call is allowed / not allowed)</li>
<li>then, for a new call, we query the memcache key
(mod_memcache) in the dialplan and decide, what to do with
this call <br>
</li>
</ul>
But - of course - there will also be some other ways to do this,
dependent on your specific goal.<br>
<br>
Best regards<br>
Peter<div><div class="h5"><br>
<br>
On 06/20/17 11:16, Nabeel Ahmad wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="h5">
<div dir="ltr">Hello all,
<div>If we assign more then one RTP-IP parameter to a sip
profile , they are used in round robin.</div>
<div>Its perfect . I want to know is there a way to use some
limit on that ip ?</div>
<div>Say i've 5 ip address listening on box , and i want one
concurrent call limit on each media ip.</div>
<div>How can i set limit on profile level or set from dialplan.</div>
<div>I tried to do but it didn't work .</div>
<div><br>
</div>
<div>Any help or advice will be highly appreciated</div>
<div>Thanking all </div>
<div>Nabeel.</div>
</div>
<br>
<fieldset class="m_5597352888393888893mimeAttachmentHeader"></fieldset>
<br>
</div></div><pre>______________________________<wbr>______________________________<wbr>_____________
Professional FreeSWITCH Consulting Services:
<a class="m_5597352888393888893moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a class="m_5597352888393888893moz-txt-link-freetext" href="http://www.freeswitchsolutions.com" target="_blank">http://www.<wbr>freeswitchsolutions.com</a>
Official FreeSWITCH Sites
<a class="m_5597352888393888893moz-txt-link-freetext" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a class="m_5597352888393888893moz-txt-link-freetext" href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.<wbr>org</a>
<a class="m_5597352888393888893moz-txt-link-freetext" href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a class="m_5597352888393888893moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.<wbr>freeswitch.org</a>
<a class="m_5597352888393888893moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a>
UNSUBSCRIBE:<a class="m_5597352888393888893moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a>
<a class="m_5597352888393888893moz-txt-link-freetext" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></pre><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<br>
<pre class="m_5597352888393888893moz-signature" cols="72">--
With kind regards
Peter Steinbach
Telefaks Services GmbH
<a class="m_5597352888393888893moz-txt-link-freetext" href="mailto:lists" target="_blank">mailto:lists</a> (att) <a href="http://telefaks.de" target="_blank">telefaks.de</a>
Internet: <a class="m_5597352888393888893moz-txt-link-abbreviated" href="http://www.telefaks.de" target="_blank">www.telefaks.de</a>
</pre>
</font></span></div>
<br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>