11-20-2008 09:32 AM - edited 03-13-2019 05:51 PM
I have read the other posts about blocking incoming calling numbers. In our case, it is due to a restraining order filed by one of our employees.
I have configured the following on our 2811 running 12.4 SPSERVICES IOS:
!
voice translation-rule 1
rule 1 /^./ //
!
voice translation-rule 2
rule 1 reject /5045554567/
rule 2 reject /5045555678/
!
!
voice translation-profile 11
translate called 1
!
voice translation-profile call_block
translate calling 2
!
!
!
voice-port 0/0/0:23
translation-profile incoming call_block
!
voice-port 0/0/1:23
translation-profile incoming call_block
!
!
dial-peer voice 20 voip
call-block translation-profile incoming call_block
call-block disconnect-cause incoming call-reject
destination-pattern [1-9]..$
session target ipv4:x.x.x.x
incoming called-number .
dtmf-relay h245-alphanumeric
codec g711ulaw
!
dial-peer voice 30 voip
call-block translation-profile incoming call_block
call-block disconnect-cause incoming call-reject
destination-pattern [1-9]..$
session target ipv4:x.x.x.x
incoming called-number .
dtmf-relay h245-alphanumeric
codec g711ulaw
!
I have obviously changed the numbers that are blocked. To test, I added my cell phone number as rule 2, but I am still able to call. Can anybody tell me what is missing out of my config? Thanks in advance.
Solved! Go to Solution.
11-20-2008 09:51 AM
You should apply the translation-profile to the incoming call-leg, this will usually be the pots dial-peer which is used to match the incoming-called-number:-
dial-peer voice xy pots
call-block translation-profile incoming call_block
incoming-called-number .
direct-inward-dial
The VoIP dial-peer in your case will be the outgoing call-leg.
Hope this helps.
Allan.
Pls rate helpful posts.
11-20-2008 09:51 AM
You should apply the translation-profile to the incoming call-leg, this will usually be the pots dial-peer which is used to match the incoming-called-number:-
dial-peer voice xy pots
call-block translation-profile incoming call_block
incoming-called-number .
direct-inward-dial
The VoIP dial-peer in your case will be the outgoing call-leg.
Hope this helps.
Allan.
Pls rate helpful posts.
11-20-2008 10:08 AM
Thanks allan, I indeed had everything assigned to the wrong dial-peer.
12-01-2008 09:34 PM
how can i do same result , when i use callmanager
12-01-2008 10:05 PM
you cannot do this with just CUCM, it's mandatory to do it on H323 GWs. in case you ask, if you have MGCP no go, H323 is the only way
if you have CUCM with H323 follow the same instructions, plenty on NetPro if you look using the search option
HTH
java
if this helps, please rate
12-02-2008 12:19 AM
Dear java
I would like to know that how can I filter calls by Calling number when that call forward from Gatekeeper (not have H323 or IPIPGW)
Call flow : 1. PhoneA(4599) press 83190016627228393
2. CallmanagerA strip 8 with Called number , add prefix 51 into Calling number then send 3190016627228393 to Gatekeeper
3. Gatekeeper forward all digit to CallmanagerB
4. CallmanagerB Strip 31 form Called number and send to PSTN with MGCP gateway .
5. CDR detail show: 514599 dial to 0016627228393
In this system have many callmangers and use Gatekeeper, but I want to allow some Callmanagers can call to PSTN with international call.
For all callmanagers call between clusters that use same Partition and same CSS to allow call from Gatekeeper.
12-02-2008 04:52 AM
as i already mentioned, cucm cannot do this. you need to do this on H323
it would be easier to block calls using CSS if you want the whole callmanager not be able to make intl calls
HTH
java
if this helps, please rate
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