Block all calls not from a specific calling number

Unanswered Question
Sep 21st, 2009
User Badges:
  • Silver, 250 points or more

I've seen plenty of examples of using translation rules to reject calls from specific calling numbers. However, I have a need to block all calls except those from a specific number. So I'm looking for a way to accept calls only from 1 number and either block all others, or send all others to a different number.


What's the best way to accomplish that? I'm using an PRI, H.323 gateway and CCM 4.



thanks,

Will

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Paolo Bevilacqua Mon, 09/21/2009 - 11:01
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

something like


voice translation-profile bad-number

translate called 10


voice translation-rule 10

rule 1 /.*/ /666/


dial-peer voice 100 pots

answer-address 5551234


dial-peer voice 200 pots

answer-address .

translate incoming bad-number


Do not use "incoming called-number" on any pots DP or that will override answer-address.


will.alvord Mon, 09/21/2009 - 12:02
User Badges:
  • Silver, 250 points or more

So there's a single PRI with a hundred plus DID's. I'm using incoming called-number . on the inbound pots dial-peer.


I only want to filter calls to a specific DID though, so I can't remove the incoming called-number .



Paolo Bevilacqua Mon, 09/21/2009 - 12:49
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

You replace "incoming called-number ." with "answer-address ."

Both are generic statements enough to match the incoming DP, that's all what matters.

On the generic one then put a reject rule for the specifi calling number.


Forgot to mention all DP's will need "direct-inward-dial"

will.alvord Mon, 09/21/2009 - 13:33
User Badges:
  • Silver, 250 points or more

Would I use answer-address . on the inbound pots peer and answer-address . with the translation-profile referenced on the voip peer? Obviously I don't want to reference the translation-profile on the inbound pots peer.

Paolo Bevilacqua Mon, 09/21/2009 - 13:43
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

Do not use any translation outbond.

Just translate any called number inboud.



will.alvord Mon, 09/21/2009 - 13:51
User Badges:
  • Silver, 250 points or more

It's been a really long and hectic day, so sorry if I'm being thick.


I want to filter inbound calls to a single # of over 100 #'s coming into a PRI -- so that the 1 # will only accept calls from 1 calling #.


It seems that if I make your changes, I'll be filtering calls to every # rather than just the 1. What am I missing?


thanks,

Will

Paolo Bevilacqua Mon, 09/21/2009 - 14:24
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

You are right, my example above makes that all calls from 5551234 go to DN 666, that is something different, and even had a mistake.


For what you want:


voice translation-profile bad-number

translate called 10


voice translation-rule 10

rule 1 /666/ reject


dial-peer voice 100 pots

answer-address 5551234

direct-inward-dial


dial-peer voice 200 pots

answer-address .

translate incoming bad-number

direct-inward-dial

Actions

This Discussion