cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
8884
Views
5
Helpful
7
Replies

blocking Incoming no. on Voice Gateway

sameermunj
Level 1
Level 1

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
!
!

1 Accepted Solution

Accepted Solutions

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>

Br, Nadeem Please rate all useful post.

View solution in original post

7 Replies 7

Vivek Batra
VIP Alumni
VIP Alumni

Which dial peer you are expecting to match in inbound direction? Did you verify correct dial peer is being matched?

- Vivek

Hello Vivek,

Can you help me with how to find the query raised by you...

Any debug need to run

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

Nadeem Ahmed
Cisco Employee
Cisco Employee

apply the translation  on the voice-port 0/0/1:15.

Br,

Nadeem

Br, Nadeem Please rate all useful post.

Hello Naddem,  Can you help me with the exact command on interface Serial0/0/1:15

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>

Br, Nadeem Please rate all useful post.

sameermunj
Level 1
Level 1

Hello Nadem we applied the translation-rule on voice port & its works thanks ...for the same