You could use the variable sip_user_agent and reject them.On Fri, Feb 24, 2017 at 11:40 AM Lợi Đặng <loi.dangthanh@gmail.com> wrote:hi Antonio, I was looking for SIP solutions. But you save me a day.Many thanks.rgds,______________________________On Fri, Feb 24, 2017 at 3:49 PM, Antonio Silva <asilva@wirelessmundi.com> wrote:hi,
you can do it using iptables:
iptables -I INPUT -j DROP -p udp --dport 5060 -m string --string "zoiper" --algo bm
source:
https://freeswitch.org/confluence/display/FREESWITCH/ Security
On 02/24/2017 09:26 AM, Lợi Đặng wrote:
^SipP$^ZoiperHi list, I have a list of user agent regex pattern. For example:^Asterisk PBX
The list will have more and more members by time.
All I want is to reject all the SIP messages (not only INVITE) that has User-Agent header value match any of the pattern in the list. How can I do that?
I know this can be achieved with a sip proxy placed before FreeSwitch, but I don't want an additional SIP component for just that.
Any help would be appreciated.
rgds,
____________________________________________________________ _____________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www. freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch- UNSUBSCRIBE:http://lists.users freeswitch.org/mailman/ http://www.freeswitch.orgoptions/freeswitch-users
____________________________________________________________ _____________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.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
http://www.freeswitch.org______________________________ _____________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.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
http://www.freeswitch.org
____________________________________________________________ _____________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.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
http://www.freeswitch.org