06-19-2009 07:51 AM - edited 03-17-2019 09:45 PM
I am trying to put a translation rule on my outbound (to the PSTN) POTS dial-peer and it does not take. Here is my config:
voice translation-rule 950
rule 1 reject /4035551234/
!
voice translation-profile dave
translate calling 950
!
dial-peer voice 993 pots
translation-profile outgoing dave
destination-pattern 4034441234
no digit-strip
direct-inward-dial
port 4/0/0:23
!
So when I call 4034441234 it matches on the 993 dial-peer but the translation-profile does not work?
Any ideas why?
Cheers!
Dave
06-19-2009 08:36 AM
Dave,
Not sure what you are trying to achieve here.
Your POTS dial-peer has dest-pattern of 4034441234. The voice trans-profile is configured to reject calling number 4035551234
However, you are dialing 4034441234. Is the calling number 4035551234? Can you confirm that by debug voice ccapi inout that the called is 4034441234 and calling is 4035551234.
Thanks,
06-19-2009 08:44 AM
Yes. All I am trying to achieve here is to make a tranlation-profile work. I want it to reject a call when it comes from a specific phone number.
The called number is 4034441234 - I setup a specific dial-peer so that I would always catch the call and could leave my production DP's alone.
My calling number is 4035551234 and I have confirmed it with the debug.
For some reason I cannot get it to match on the translation profile?
06-19-2009 08:56 AM
Hi,
Can you change your voice trans rule to this
rule 1 reject /^4035551234/
Thanks,
06-19-2009 09:00 AM
Tried that, and it does not help.
Cheers!
Dave
06-19-2009 09:05 AM
Hmmmm,
Can you send me the debug following debug
1. debug voice ccapi inout
2. debug isdn q931
Thanks,
06-19-2009 11:08 AM
06-19-2009 01:44 PM
Ok,
I think I got what your issue is. Just by matching a translation profile, you will not be able to block the call. You need to use the call-block command in the dial-peer to match a translation profile where the reject rule is. And if that matches than you can block.
Now, I looked around but the call-block command is as follows
call-block translation-profile incoming
As you can see this has incoming and not outgoing. I checked on my routers and there is no option for outgoing.
So for you to be able to get this to work, what you will need to do is create a blank incoming voip dial-peer
dial-peer voice X voip
incoming called number .
call-block translation-profile incoming
So you will have to remove the translation profile from the POTS dial-peer
Look at the attached doc for more info on the call-block command. This was the only way I found that you can block calls using translation profiles.
The other way is to use COR but with COR you cannot selectively block calls.
Thanks,
06-21-2009 01:49 AM
Correct, call-block works with voip DP, reject in translation-rule works in pots DP, and not vice-versa.
Not intuitive at all, but that's cisco.
06-22-2013 02:00 AM
This is how it works in my situation if I apply to yours, on as5300 and c5300-js-mz.123-26.bin
voice translation-rule 950
rule 1 reject /4035551234/
!
voice translation-profile dave
translate calling 950
!
dial-peer voice 993 pots
call-block translation-profile incoming dave
call-block disconnect-cause incoming call-reject
destination-pattern 4034441234
no digit-strip
direct-inward-dial
port 4/0/0:23
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