<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
hi,<br>
<br>
you can do it using iptables:<br>
<br>
<code class="xml plain">iptables -I INPUT -j DROP -p udp --dport
5060 -m string --string "zoiper" --algo bm<br>
<br>
<br>
source:<br>
<a class="moz-txt-link-freetext" href="https://freeswitch.org/confluence/display/FREESWITCH/Security">https://freeswitch.org/confluence/display/FREESWITCH/Security</a><br>
<br>
<br>
<br>
</code><br>
<div class="moz-cite-prefix">On 02/24/2017 09:26 AM, Lợi Đặng wrote:<br>
</div>
<blockquote
cite="mid:CAGsrq_v=tEYQ3yEjnB7LjFax2=jNf4tE459sMAPkRKRfaN1E6g@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>Hi list, I have a list of user agent regex pattern. For
example:<br>
</div>
^Asterisk PBX<br>
</div>
^Zoiper<br>
</div>
^SipP$<br>
<div>
<div>
<div>
<div>The list will have more and more members by time.<br>
</div>
<div>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?<br>
<br>
</div>
<div>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.<br>
</div>
<div><br>
</div>
<div>Any help would be appreciated.<br>
</div>
<div>rgds,<br clear="all">
</div>
<div>
<div>
<div class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div>Loi Dang Thanh<br>
</div>
Phone : +84. 1224.735.448<br>
</div>
Email : <a moz-do-not-send="true"
href="mailto:loi.dangthanh@gmail.com"
target="_blank">loi.dangthanh@gmail.com</a><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a></pre>
</blockquote>
<br>
</body>
</html>