Just a thought to bear in mind, this&#39;ll only work as a casual block.<div><br></div><div>Over SIP the caller is free to send anything they like, which means your customer&#39;s could easily send something fake to avoid the block. And many pure-VoIP callers won&#39;t have any sort of CallerID at all.<div>

<br></div><div>-Steve</div><div><br></div><div><br><div><div class="gmail_quote">On 3 March 2013 21:08, Tamer Higazi <span dir="ltr">&lt;<a href="mailto:th982a@googlemail.com" target="_blank">th982a@googlemail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Nick!<br>
Thank you very much... what you did was really a help for me. The second<br>
part I have accomplished with mod_blacklist.<br>
<br>
<br>
<br>
Tamer<br>
<br>
Am 03.03.2013 07:31, schrieb Nick Vines:<br>
<div class="HOEnZb"><div class="h5">&gt; I have had success putting something like either of the following in<br>
&gt; front of all incoming calls. The first sample extension blocks caller<br>
&gt; ids that are 1-4 digits long or unavailable. The second blocks<br>
&gt; anything that isn&#39;t 1nxxnxxxxxx. You could take the first and add in a<br>
&gt; couple more terms to catch your blocked caller id calls.<br>
&gt;<br>
&gt; &lt;extension name=&quot;spamkill&quot;&gt;<br>
&gt;     &lt;condition field=&quot;caller_id_number&quot;<br>
&gt; expression=&quot;(^\d{1,4}$)|(^Unavailable$)&quot; break=&quot;on-true&quot;&gt;<br>
&gt;     &lt;action application=&quot;answer&quot;/&gt;<br>
&gt;     &lt;action application=&quot;sleep&quot; data=&quot;1000&quot; /&gt;<br>
&gt;     &lt;action application=&quot;hangup&quot; data=&quot;UNAVAILABLE_CALLER_ID_A&quot; /&gt;<br>
&gt;     &lt;action application=&quot;log&quot; data=&quot;INFO Another unavailable caller<br>
&gt; terminated.&quot; /&gt;<br>
&gt;     &lt;/condition&gt;<br>
&gt; &lt;/extension&gt;<br>
&gt;<br>
&gt; &lt;extension name=&quot;spamkill_max&quot; continue=&quot;true&quot;&gt;<br>
&gt;     &lt;condition field=&quot;caller_id_number&quot;<br>
&gt; expression=&quot;^\+?1[2-9]\d{2}[2-9]\d{6}$&quot; &gt;<br>
&gt;     &lt;anti-action application=&quot;answer&quot;/&gt;<br>
&gt;     &lt;anti-action application=&quot;sleep&quot; data=&quot;1000&quot; /&gt;<br>
&gt;     &lt;anti-action application=&quot;hangup&quot; data=&quot;UNAVAILABLE_MAX&quot; /&gt;<br>
&gt;     &lt;anti-action application=&quot;log&quot; data=&quot;INFO Another caller killed by<br>
&gt; terminated.&quot; /&gt;<br>
&gt;     &lt;/condition&gt;<br>
&gt; &lt;/extension&gt;<br>
&gt;<br>
&gt; Nick<br>
&gt;<br>
&gt; On Mar 2, 2013, at 1:04 PM, Tamer Higazi &lt;<a href="mailto:th982a@googlemail.com">th982a@googlemail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; Hi people!<br>
&gt;&gt; I am interisted to block all calls that come without callerid or the<br>
&gt;&gt; party has suppressed the number.<br>
&gt;&gt;<br>
&gt;&gt; Any ideas how the xml condition has to look like?!<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Tamer<br>
&gt;&gt;<br>
&gt;&gt; _________________________________________________________________________<br>
&gt;&gt; Professional FreeSWITCH Consulting Services:<br>
&gt;&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt;&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;&gt;<br>
&gt;&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt;&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;&gt;<br>
&gt;&gt; Official FreeSWITCH Sites<br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt;&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;&gt;<br>
&gt;&gt; FreeSWITCH-users mailing list<br>
&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
<br>
<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>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.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://wiki.freeswitch.org" target="_blank">http://wiki.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><br>
</div></div></blockquote></div><br></div></div></div>