[Freeswitch-users] suppressed callerid number

Nick Vines jnvines at gmail.com
Sun Mar 3 09:31:56 MSK 2013


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 at 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 at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list