12-05-2015 06:57 PM - edited 03-17-2019 05:07 AM
I am trying to block the incoming no.. those no. of abusive caller ........
below mention wa the configuration done in bold letters...but call from the number 9819640411 not block by Voice Gateway ....
even i test the test translation-rule 5 ..which show me its blocking the no....
!
!
voice translation-rule 1
rule 1 /^5999/ /3050/
!
voice translation-rule 2
rule 1 /^490189../ /3050/
!
voice translation-rule 5
rule 1 reject /9819640411/
rule 2 reject /09819640411/
rule 3 reject /919819640411/
!
!
!
!
voice translation-profile DID
translate called 1
!
voice translation-profile PRI2
translate called 2
!
voice translation-profile call_block
translate calling 5
!
!
interface Serial0/0/0:15
no ip address
encapsulation hdlc
isdn switch-type primary-net5
isdn incoming-voice voice
no cdp enable
!
interface Serial0/0/1:15
no ip address
encapsulation hdlc
isdn switch-type primary-net5
isdn incoming-voice voice
no cdp enable
!
!
dial-peer voice 1 voip
translation-profile outgoing DID
destination-pattern 5999
session protocol sipv2
session target ipv4:172.31.11.192
session transport udp
incoming called-number 9.T
voice-class codec 1
voice-class sip bind control source-interface GigabitEthernet0/0.10
voice-class sip bind media source-interface GigabitEthernet0/0.10
dtmf-relay rtp-nte
no vad
!
dial-peer voice 2 pots
call-block translation-profile incoming call_block
call-block disconnect-cause incoming call-reject
preference 2
destination-pattern .T
incoming called-number 5999
no digit-strip
direct-inward-dial
port 0/0/0:15
!
dial-peer voice 4 voip
session protocol sipv2
session target ipv4:172.31.11.192
incoming called-number .
voice-class codec 1
voice-class sip bind control source-interface GigabitEthernet0/0.10
voice-class sip bind media source-interface GigabitEthernet0/0.10
dtmf-relay rtp-nte
no vad
!
dial-peer voice 6 voip
translation-profile outgoing PRI2
destination-pattern 490189..
session protocol sipv2
session target ipv4:172.31.11.192
session transport udp
incoming called-number 9.T
voice-class codec 1
voice-class sip bind control source-interface GigabitEthernet0/0.10
voice-class sip bind media source-interface GigabitEthernet0/0.10
dtmf-relay rtp-nte
no vad
!
dial-peer voice 8 voip
session protocol sipv2
session target ipv4:172.31.11.192
incoming called-number .
voice-class codec 1
voice-class sip bind control source-interface GigabitEthernet0/0.10
voice-class sip bind media source-interface GigabitEthernet0/0.10
dtmf-relay rtp-nte
no vad
!
dial-peer voice 9 pots
call-block translation-profile incoming call_block
call-block disconnect-cause incoming call-reject
preference 1
destination-pattern .T
no digit-strip
port 0/0/1:15
!
!
Solved! Go to Solution.
12-06-2015 10:08 AM
sh run | s voice-port
# go to config mode of the VGW
# config t
# voice-port 0/0/1:15
translation-profile incoming <translation profile name>
12-05-2015 07:14 PM
Which dial peer you are expecting to match in inbound direction? Did you verify correct dial peer is being matched?
- Vivek
12-06-2015 08:27 AM
Hello Vivek,
Can you help me with how to find the query raised by you...
Any debug need to run
12-06-2015 08:42 AM
Hi,
Please share the output of debug voice ccapi inout to verify the same..
My friend Nadeem meant to say that if you apply the respective translation profile in inbound direction on voice port, then you don't need to worry much about translation profile on individual dial peer.
- Vivek
12-05-2015 08:06 PM
apply the translation on the voice-port 0/0/1:15.
Br,
Nadeem
12-06-2015 08:29 AM
Hello Naddem, Can you help me with the exact command on interface Serial0/0/1:15
12-06-2015 10:08 AM
sh run | s voice-port
# go to config mode of the VGW
# config t
# voice-port 0/0/1:15
translation-profile incoming <translation profile name>
12-06-2015 10:21 PM
Hello Nadem we applied the translation-rule on voice port & its works thanks ...for the same
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