i setup a 3745 with CME 4.2. i want to block one number 2508 to call out.but the call block function can't work. the configuration below.
voice translation-rule 7
rule 1 reject /2508/
voice translation-profile call-block
translate calling 7
dial-peer voice 779901 pots
description Voice to PSTN with CHT from international call in Taiwan
call-block translation-profile incoming call-block
call-block disconnect-cause incoming invalid-number
incoming called-number .
If this number is within your system, then I believe the direction should be outgoing. From your email, it sounds like you dont want extension 2508 to call out.
SO I suggest to change your config to
call-block translation-profile outgoing call-block.
For things like this, it is rcommended to use COR-list..
use call-block with voip DP only. In that case, the translation rule does not need to contain reject, any match is sufficient.
For pots DP, simply use translation-profile and reject.
in my environment, i want to block the ip phone ( call manager express in voice gateway) to call out by dial-peer. But it can't work even the rule is /^.*/.
Are you trying to prevent one DN from dialing out?
If so, you should apply a corlist to the ephone-dn:
corlist incoming x
Then, on your voip dial peers:
dial-peer voice 1 voip
corlist outgoing y
You would need to add the full corlist configuration, but I think this is what you're looking for. I haven't played with call block on calling number, but there's a good chance it doesn't work on calling number.