09-04-2015 11:10 AM - edited 03-17-2019 04:13 AM
Hi all,
I tried to block some specific incoming calls (based on calling party number) on H.323 gateway.
Currently 2 dial peers on the H.323 gateway: dial-peer voice 10 pots & dial-peer voice 80 voip,
dial-peer 10 is translating incoming calls to 5 digit extension number,
dial-peer 80 is forwarding the calls to CUCM.
What is the best practice configuration to block some specific incoming calls (based on calling party number) on the gateway?
Blocking on dial-peer 10? or 80? Thank you.
dial-peer voice 10 pots
description DIDs 1234
translation-profile incoming DID_incoming_1234
incoming called-number [245689]....
direct-inward-dial
!
dial-peer voice 80 voip
destination-pattern 4....$
modem passthrough nse codec g711ulaw
session target ipv4:X.X.X.X ! CUCM ip address
incoming called-number .
voice-class codec 1
dtmf-relay h245-alphanumeric
ip qos dscp cs3 signaling
no vad
!
Master001
09-04-2015 11:18 AM
You can use reject translation rules on the GW:
http://www.cisco.com/c/en/us/support/docs/voice/call-routing-dial-plans/64020-number-voice-translation-profiles.html
09-04-2015 11:30 AM
Hi,
Create a translation rule to match the calling number and to reject the call. Assign the translation profile to the incoming dialpeer (dialpeer 10)
voice translation-rule 200
rule 1 reject /123456/
!
voice translation-profile REJECT-CALLS
translate calling 200
09-09-2015 01:21 PM
Thank you all. I applied the new translation rule to dial peer 10, and it works as expected.
If I want to block a specific incoming fax on this same H323 gateway, any configuration to be added?
Thanks again.
Master001
09-04-2015 11:49 AM
it always recommended to apply rule at the beginning, you can apply the same calls hitting on first dial-peer its hitting .
Use the reject keyword to reject calls that match. This example rejects all calls that start with "234".
rule 1 reject /^234/
You can test the same and verify it. router#test voice translation-rule 10 1234 1234 Didn't match with any of rules router#test voice translation-rule 10 2345 blocked on rule 1
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide