[asterisk-users] Block Specific Number on Inbound

Robert Huddleston rhuddleston at gmail.com
Fri Dec 30 08:02:48 CST 2011


Here's what I do... Changed some variables for obscurity. 911 is the inbound #... exten 6000 rings to SIP/TEST

exten => 911,1,GotoIf(${BLACKLIST()}?blacklisted)
exten => 911,n,Macro(stdexten,6000,SIP/test)
exten => 911,n,Playback(transfer,skip)
exten => 911,n(blacklisted),Goto(blacklisted,s,1)


Blacklisted context uses zapateller and plays the intercept message
[blacklisted]
exten => s,1,Answer
exten => s,2,Wait(1)
exten => s,3,Zapateller
exten => s,4,Zapateller
exten => s,5,Playback(ss-noservice)
exten => s,6,Hangup

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Stuart Sheldon
Sent: Thursday, December 29, 2011 9:06 PM
To: asterisk-users at lists.digium.com
Subject: Re: [asterisk-users] Block Specific Number on Inbound

Check out the X Boy/Girl friend feature.

http://www.voip-info.org/wiki/view/Asterisk+config+extensions.conf

Around the middle of the page.

Stu


-----Original Message-----
From: Kevin Oravits <koravits at rcolegal.com>
Reply-to: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com>
To: asterisk-users at lists.digium.com <asterisk-users at lists.digium.com>
Subject: [asterisk-users] Block Specific Number on Inbound
Date: Fri, 30 Dec 2011 01:39:46 +0000

Greetings,

 

Is there a way to block a specific inbound number? I’ve found code online for blocking all nocallerid and all 800, etc. but nothing for a specific number. My company is wanting me to block a specific number. Is this possible in Asterisk 1.4 and 1.6 or do I need to go through my Service Provider?

 

Thanks,

 

Kevin Oravits 

Phone Sys Admin

 


--
_____________________________________________________________________
-- 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





More information about the asterisk-users mailing list