<div dir="auto"><div>Hi Antonio,</div><div dir="auto">Why do you want limit before XML ?</div><div dir="auto"><br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">Le mer. 29 janv. 2020 11:09, António Silva <<a href="mailto:asilva@wirelessmundi.com">asilva@wirelessmundi.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>Hi Michael,</p>
<p>Thanks a lot for the reply. I was searching of something at
sofia level, before it enters the xml routing decision. </p>
<p>We already have the parameters sessions-per-second and
max-sessions, but is for the entire switch, my idea has to have
the same type of parameters per account/source ip, but i is not
implemented. i've a draft on a lab machine where i'm trying to
implement this but for now is not good...<br>
</p>
<p>Right now I'm using iptables to limit the maximum of new invites
to FS, and it keeps me "safe" and i can limit resources per source
IP. <br>
</p>
<p><br>
</p>
<div>On 29/01/2020 10:15, Mickael Hubert
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Maybe it's very late,</div>
<div>but I use this: <a href="https://github.com/Mickaelh51/freeswitch/blob/master/pingcalls_limit.xml" target="_blank" rel="noreferrer">https://github.com/Mickaelh51/freeswitch/blob/master/pingcalls_limit.xml</a></div>
<div>it's not per IP, but it's easy to change this code<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Le lun. 22 juil. 2019 à 23:03,
António Silva via FreeSWITCH-users <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" rel="noreferrer">freeswitch-users@lists.freeswitch.org</a>>
a écrit :<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
<br>
---------- Forwarded message ----------<br>
From: "António Silva" <<a href="mailto:asilva@wirelessmundi.com" target="_blank" rel="noreferrer">asilva@wirelessmundi.com</a>><br>
To: FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" rel="noreferrer">freeswitch-users@lists.freeswitch.org</a>><br>
Cc: <br>
Bcc: <br>
Date: Thu, 18 Jul 2019 10:52:14 +0200<br>
Subject: Limit cps per source IP and port<br>
Hi,<br>
<br>
is it possible to limit the number of calls per source ip and
port <br>
before the dialplan?<br>
<br>
I know that this can be done using mod_limit in the dialplan,
i was <br>
thinking of a limit like the sessions-per-second global limit,
this way <br>
less resources are used if some ip/port is flooding our
machine.<br>
<br>
Another possibility is using the firewall... but i like this
option less <br>
because i wont know of the drop calls.<br>
<br>
Thanks,<br>
<br>
-- <br>
Saludos / Regards / Cumprimentos<br>
António Silva<br>
<br>
<br>
<br>
<br>
<br>
---------- Forwarded message ----------<br>
From: "António Silva via FreeSWITCH-users" <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" rel="noreferrer">freeswitch-users@lists.freeswitch.org</a>><br>
To: FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" rel="noreferrer">freeswitch-users@lists.freeswitch.org</a>><br>
Cc: <br>
Bcc: <br>
Date: Mon, 22 Jul 2019 14:03:23 -0700 (PDT)<br>
Subject: [Freeswitch-users] Limit cps per source IP and port<br>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and
PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank" rel="noreferrer">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" rel="noreferrer">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com</a></blockquote>
</div>
</blockquote>
<pre cols="72">--
Saludos / Regards / Cumprimentos
António Silva</pre>
</div>
</blockquote></div></div></div>