<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;}
span.hoenzb
{mso-style-name:hoenzb;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:74135801;
mso-list-template-ids:-1205403836;}
@list l0:level1
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:1.0in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:1.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:2.0in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:2.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:3.0in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:3.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:4.0in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:4.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><a href="https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+Limit">https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+Limit</a><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>once you have it on a profile you can limit on the profile name using the built in limit framework… <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>this doesn’t work with the multi-rtpip setup as there is no way to indicate which one is to be used before calling bridge<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><b>From:</b> FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org] <b>On Behalf Of </b>Nabeel Ahmad<br><b>Sent:</b> Tuesday, June 20, 2017 9:12 AM<br><b>To:</b> FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org><br><b>Subject:</b> Re: [Freeswitch-users] Call limit on RTP-IP Address<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><div><div><div><div><div><p class=MsoNormal>Hi Peter,<o:p></o:p></p></div><p class=MsoNormal><br>So far i also came to something similar.<o:p></o:p></p></div><p class=MsoNormal>i've all ips in db with status enable/disable.<o:p></o:p></p></div><p class=MsoNormal>on channel answer event , same ip toggles its status.<o:p></o:p></p></div><div><p class=MsoNormal>then updating profile rtp-ip variable and rescan profile.<o:p></o:p></p></div><div><p class=MsoNormal>and on destroy event again update status in Db and rescan the profile.<o:p></o:p></p></div><div><p class=MsoNormal>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 ).<o:p></o:p></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'>So i thought to ask there must be some better way to do it.<o:p></o:p></p></div><div><p class=MsoNormal>@Ken : <o:p></o:p></p></div><div><p class=MsoNormal>each profile with their own RTP-iP can also work , how to limit number of calls per profile ? <o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On Tue, Jun 20, 2017 at 6:53 PM, Peter Steinbach <<a href="mailto:lists@telefaks.de" target="_blank">lists@telefaks.de</a>> wrote:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><div><p class=MsoNormal>Hello Ahmad,<br><br>we do it the following way<o:p></o:p></p><ul type=disc><li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:0in;mso-list:l0 level1 lfo1'>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) <o:p></o:p></li><li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:0in;mso-list:l0 level1 lfo1'>for each calculation, we set a memcache key to a specific value (a new call is allowed / not allowed)<o:p></o:p></li><li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:0in;mso-list:l0 level1 lfo1'>then, for a new call, we query the memcache key (mod_memcache) in the dialplan and decide, what to do with this call <o:p></o:p></li></ul><p class=MsoNormal>But - of course - there will also be some other ways to do this, dependent on your specific goal.<br><br>Best regards<br>Peter<o:p></o:p></p><div><div><p class=MsoNormal><br><br>On 06/20/17 11:16, Nabeel Ahmad wrote:<o:p></o:p></p></div></div></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><div><div><div><p class=MsoNormal>Hello all, <o:p></o:p></p><div><p class=MsoNormal>If we assign more then one RTP-IP parameter to a sip profile , they are used in round robin.<o:p></o:p></p></div><div><p class=MsoNormal>Its perfect . I want to know is there a way to use some limit on that ip ?<o:p></o:p></p></div><div><p class=MsoNormal>Say i've 5 ip address listening on box , and i want one concurrent call limit on each media ip.<o:p></o:p></p></div><div><p class=MsoNormal>How can i set limit on profile level or set from dialplan.<o:p></o:p></p></div><div><p class=MsoNormal>I tried to do but it didn't work .<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Any help or advice will be highly appreciated<o:p></o:p></p></div><div><p class=MsoNormal>Thanking all <o:p></o:p></p></div><div><p class=MsoNormal>Nabeel.<o:p></o:p></p></div></div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p></div></div><pre>_________________________________________________________________________<o:p></o:p></pre><pre>Professional FreeSWITCH Consulting Services:<o:p></o:p></pre><pre><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><o:p></o:p></pre><pre><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Official FreeSWITCH Sites<o:p></o:p></pre><pre><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><o:p></o:p></pre><pre><a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><o:p></o:p></pre><pre><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><o:p></o:p></pre><pre><o:p> </o:p></pre><pre>FreeSWITCH-users mailing list<o:p></o:p></pre><pre><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><o:p></o:p></pre><pre><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><o:p></o:p></pre><pre>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><o:p></o:p></pre><pre><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><o:p></o:p></pre></blockquote><p class=MsoNormal><span style='color:#888888'><br><br><br><span class=hoenzb><o:p></o:p></span></span></p><pre><span style='color:#888888'>-- <o:p></o:p></span></pre><pre><span style='color:#888888'>With kind regards<o:p></o:p></span></pre><pre><span style='color:#888888'>Peter Steinbach <o:p></o:p></span></pre><pre><span style='color:#888888'><o:p> </o:p></span></pre><pre><span style='color:#888888'>Telefaks Services GmbH<o:p></o:p></span></pre><pre><span style='color:#888888'><a href="mailto:lists" target="_blank">mailto:lists</a> (att) <a href="http://telefaks.de" target="_blank">telefaks.de</a><o:p></o:p></span></pre><pre><span style='color:#888888'>Internet: <a href="http://www.telefaks.de" target="_blank">www.telefaks.de</a><o:p></o:p></span></pre><pre><span style='color:#888888'><o:p> </o:p></span></pre></div><p class=MsoNormal><br>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br><a href="http://www.cluecon.com" 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.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><o:p></o:p></p></blockquote></div><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>