Hi Michael,
Thanks a lot for the reply. I was searching of something at sofia level, before it enters the xml routing decision.
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...
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.
Maybe it's very late,it's not per IP, but it's easy to change this code
Le lun. 22 juil. 2019 à 23:03, António Silva via FreeSWITCH-users <freeswitch-users@lists.freeswitch.org> a écrit :
---------- Forwarded message ----------
From: "António Silva" <asilva@wirelessmundi.com>
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Cc:
Bcc:
Date: Thu, 18 Jul 2019 10:52:14 +0200
Subject: Limit cps per source IP and port
Hi,
is it possible to limit the number of calls per source ip and port
before the dialplan?
I know that this can be done using mod_limit in the dialplan, i was
thinking of a limit like the sessions-per-second global limit, this way
less resources are used if some ip/port is flooding our machine.
Another possibility is using the firewall... but i like this option less
because i wont know of the drop calls.
Thanks,
--
Saludos / Regards / Cumprimentos
António Silva
---------- Forwarded message ----------
From: "António Silva via FreeSWITCH-users" <freeswitch-users@lists.freeswitch.org>
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Cc:
Bcc:
Date: Mon, 22 Jul 2019 14:03:23 -0700 (PDT)
Subject: [Freeswitch-users] Limit cps per source IP and port
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com
Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
-- Saludos / Regards / Cumprimentos António Silva