Blocking unknown numbers

p3x888
Posts: 5
Member Since:
2006-11-22

I did a search ont he forum and found a posting on using the extensions_custom.conf to filter unknown numbers. I posted it below so everyone could see what I am talking about.

In this conf file, if a call isn't filtered, it is passed off to que 7201. Is there a way to changet this to go back to my ring group? We don't use a que so I would rather this go back to ringing my extensions. Is this possible?

Thank you.

P3X888
====================================
[custom-incoming]
exten => s,1,Answer
exten => s,n,AGI(calleridname.agi)
exten => s,n,GotoIf($["${CALLERIDNUM}" = ""]?custom-screen,s,1)
exten => s,n,GotoIf($["${CALLERIDNUM}" = "0000000000"]?custom-screen,s,1)
exten => s,n,GotoIf($["${CALLERIDNAME}" = "restricted"]?custom-screen,s,1)
exten => s,n,GotoIf($["${CALLERIDNAME}" = "anonymous"]?custom-screen,s,1)
exten => s,n,GotoIf($["${CALLERIDNUM}" = "Private"]?custom-screen,s,1)
exten => s,n,GotoIf($["${CALLERIDNAME}" = "Private"]?custom-screen,s,1)
exten => s,n,GotoIf($["${CALLERIDNUM}" = "Unknown Number"]?custom-screen,s,1)
exten => s,n,GotoIf($["${CALLERIDNAME}" = "Unknown Number"]?custom-screen,s,1)
exten => s,n,GotoIf($["${CALLERIDNUM}" = ""]?custom-screen,s,1)
exten => s,n,Goto(ext-queues,7201,1)
exten => s,n,Hangup

[custom-screen]
;exten => s,1,Wait(1)
;exten => s,n,Playback(privacy-screening-unidentified-calls)
;exten => s,n,Playback(priv-recordintro)
;exten => s,n,SetVar(SCREEN_FILE=/tmp/${CALLERIDNUM}-${EPOCH})
;exten => s,n,Record(${SCREEN_FILE}:ulaw|2|4)
;exten => s,n,Playback(priv-introsaved)
;exten => s,n,Dial(SIP/7201,20,mtM(screen^${SCREEN_FILE}))
;exten => s,n,Goto(17);VM
;exten => s,17,Voicemail(u201@default)
;exten => s,18,Playback(goodbye)
;exten => s,19,Hangup
;exten => s,107,Goto(17)
;exten => h,1,System(/bin/rm ${ARG1}.ulaw)
exten => s,1,Wait(1)
exten => s,n,Zapateller
exten => s,n,Playback(privacy-unident&privacy-if-sales-call-contact-in-writing&please-hang-up-and-try-again)
exten => s,n,Congestion(5)
exten => s,n,Hangup
exten => s,n,Hangup



p3x888
Posts: 5
Member Since:
2006-11-22
Bump

Does anybody have any idea about this?

I would appreciate any help on this.



kerryg
Posts: 6754
Member Since:
2006-05-31
You can turn on the privacy

You can turn on the privacy manager.

--

Kerry Garrison
http://www.VoipStore.com - http://www.888VoipStore.com
Facebook: http://facebook.com/VoipStore
(888) VOIPSTORE - (888) 864-7786



w5waf
Posts: 711
Member Since:
2006-06-09
I haven't tried this, but on

I haven't tried this, but on a quick look it would seem that you would, in about line 13,
you would simply call the appropriate group rather than the que.

exten => s,n,Goto(ext-queues,7201,1)
exten => s,n,Goto(ext-group,7201,1)

Bill Ford, FtOCC
City of Vicksburg

--

Bill Ford - FtOCC
City of Vicksburg
www.vicksburg.org



qlenfg
Posts: 77
Member Since:
2006-12-15
re: Blocking unknown numbers

Send them to a recording of the screaming monkeys. Thats what we do when an employee tries to dial a 900 or 976 number.

The code snippet looked like it was part of the privacy manager.

Do you want to route all calls with no caller ID to a certain extension, or do you want them to have to key in their number before the call is routed? Privacy manager will ask them to key in their number before passing the call.



kb9mwr
Posts: 166
Member Since:
2006-09-09
http://nerdvittles.com/index.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.