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