[asterisk-users] block one number in incoming calls

Zohair Raza engineerzuhairraza at gmail.com
Mon Jan 14 09:49:25 CST 2013


exten =    520xxxxxx,1,NoOp(Caller-ID: ${CALLERID(all)})
exten =    520xxxxxx,2,GotoIf($["${CALLERID(num)}" = "0666XX" ]?3:4)
exten => 520xxxxxx,3,Dial(SIP/224, 30)
exten => 520xxxxxx,4,hangup


Regards,
Zohair Raza


On Mon, Jan 14, 2013 at 7:43 PM, Michelle Dupuis <mdupuis at ocg.ca> wrote:

>  Check out smartCID on www.generationd.com
>
> This script allows lookup of incomming calls based on number and either
> Block (no ring), endless ring (ignore), or pass through to asterisk.  It
> allows allows rewriting of CID name based on number.  All numbers stored in
> a mysql table.  A free script.
>
> It also does reverse look of CID based on number using a variety of free
> web sites (but that's intended for experimentation only)
>
>  ------------------------------
> *From:* asterisk-users-bounces at lists.digium.com [
> asterisk-users-bounces at lists.digium.com] On Behalf Of Salaheddine Elharit
> [salah.elharit200 at gmail.com]
> *Sent:* Monday, January 14, 2013 10:33 AM
> *To:* Asterisk Users List
>
> *Subject:* [asterisk-users] block one number in incoming calls
>
>   Hello list
>
>
>
> could you please help me about one question.
>
>
>
> i have asterisk 1.4  installed, i configure the inbound call in my
> asterisk  like below.
>
>
>
> exten => 520xxxxxx,1,Dial(SIP/224, 30).
>
>
>
> when the customer call my number (520xxxxxx) the sip phone 224 works
> without issue
>
>
>
> my problem i have a lot of calls coming  from this number (0666xxxxxx) and
> i want to block it.
>
>
>
> if you can give me an example please .
>
>
>
> thanks and regards
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>                http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130114/84b03e14/attachment.htm>


More information about the asterisk-users mailing list