cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
9392
Views
10
Helpful
12
Replies

Block incoming call with voice translation-rule

MaxBudyonny
Level 1
Level 1

I have Cisco voice gateway connected to PBX via E1 PRI. I want to disable all PBX users make direct calls to _some_ IP phones. I tried to do it with voice translation-rule. Part of my config is posted below. But this configuration does not work. Where is a mistake?

voice translation-rule 2

rule 1 reject /^57[12456789][1345678]/

rule 2 reject /^57[12456789]./

rule 3 reject /^57.[123456789]/

voice translation-profile NoDirect

translate called 2

dial-peer voice 200 voip

call-block translation-profile incoming NoDirect

call-block disconnect-cause incoming invalid-number

destination-pattern 5[78]..T

progress_ind setup enable 3

session target ipv4:10.1.2.246

dtmf-relay h245-alphanumeric

codec g711ulaw bytes 80

no vad

1 Accepted Solution

Accepted Solutions

Good to hear that it has been solved.

Thanks,

Radhika.

View solution in original post

12 Replies 12

rnarayana
Level 5
Level 5

Hello,

When you use this the call-block command needs to be applied matching incoming dial-peer.Since your PBX is connected to the rotuer via E1 PRI,when the call comes from PBX an inbound pots dial-peer will be matched.Try to apply that dial-peer .This should fix your problem.

Also make sure your voice translation rules are working the way your want.You can use test voice translation rule command to these rules.

Thanks,

Radhika.

I considered that dial peer 200 is incoming dial peer.

Simplified phone numbering plan can be represented in such lines:

PBX: 3..., 6...

IP phones (connected to PBX) 57.., 58..

Translation rules are correct. I checked them with "test voice translation-rule".

If I understand correctly PBX is connected to the router via E1 right?When a call from from PBX a pots dial-peer needs to be matched.You need to put the call block command in that pots dial-peer.

thanks,

Radhika

You are right. Router is connected to PBX via E1.

But as I can understand:

1. Call arrives from PBX to Cisco

2. As the dialed number belongs to CallManager's dial plan this call will be delivered to CallManager via voip dial peer 200. That's why I use call block on voip dial peer 200.

When I tested call routing I executed "sh dialplan number 57.." and dial peer 200 was matched.

Call routing works properly.

Ok you are dialing from a phone that is connected to the pbx right?When the call comes from PBX first it has to go throght the gateway 3600 /3700 right.For the 3700 to route the call to callmanger it needs to match the inbound pots dial-peer and then and outbound voip dial-peer.

Please remember these directions are withrespect to the router .

Thanks,

Radhika

On another words I have to add a pots dila peer.

But if I would add somsing like

dial peer voice 300 pots

incoming number 5[78]..

call-block translation-profile incoming NoDirect

all calls from PBX to 57.., 58.. will be rejected.

I need to reject calls only to some IP phones.

I created temporay solution.

voice translation-rule 2

rule 1 /^57[1246789][13456789]/ /2011662/

rule 2 /^5720/ /2011662/

voice translation-profile NoDirect

translate called 2

dial-peer voice 200 voip

translation-profile outgoing NoDirect

destination-pattern 5[78]..

progress_ind setup enable 3

session target ipv4:10.1.2.246

dtmf-relay h245-alphanumeric

codec g711ulaw bytes 80

no vad

dial-peer voice 201 voip

destination-pattern 2......

session target ipv4:10.1.2.246

dtmf-relay h245-alphanumeric

codec g711ulaw bytes 80

no vad

Thanks, Maxim.

When you use voice translation rule to rejct call , and apply to the pots dial-peer it will not reject all the calls.It will reject the calls that are specified in the voice translation rule.

Lets say I want to reject all the calls to 5009 and 5010 ( these two are the ip phones)

then I can write voice translation rule as follows.

voice translation-rule 1

rule 1 reject /5009/

rule 2 reject /5010/

voice translation-profile test

translate called 1

dial-peer voice 1 pots

call-block tranlation-profile incoming test.

Thanks,

Radhika

I tested similar configuration (posted below) but it does not work.

voice translation-rule 1

rule 1 reject /^57[1246789][13456789]/

rule 2 reject /^5720/

voice translation-profile Test

translate calling 1

dial-peer voice 300 pots

call-block translation-profile incoming Test

I have another idea. Reject calls with cor list.

Thanks for advices, Max.

Hello Max,

In your configuration the voice translation profile says translate calling.It should be translate called right?MAke sure that the pots dial-peer 300 isthe correct dial-peer that is matched when the call comes from PBX

Also may I know which are the numbers your are trying to block( ie can you please provide the numbers of the Ip phones to which you don't want the calls).

thanks,

Radhika.

You are right. It was a stupid mistake. This configuration works.

voice translation-rule 1

rule 1 reject /5720/

voice translation-profile Test

translate called 1

dial-peer voice 300 pots

! This is an inbound dial-peer for calls from PSTN

call-block translation-profile incoming Test

incoming called-number 57..

! Without this string, calls that does not match ! translation profile Test would be missed.

direct-inward-dial

!

dial-peer voice 200 voip

! This is an outbound dial peer for calls

! describe in dial-peer 300

destination-pattern 5[78]..T

progress_ind setup enable 3

session target ipv4:10.1.2.246

dtmf-relay h245-alphanumeric

codec g711ulaw bytes 80

no vad

Thanks and regards to Radhika

Good to hear that it has been solved.

Thanks,

Radhika.

One other thought here, and there might be many reasons why you would not want to do it this way, but since you are sending calls back to Call Manager, couldn't you put the phones that you did not want to be reached directly into their own partition, and not include that partition in the CSS of the gateway?

Mary Beth