12-05-2015 06:51 PM - edited 03-19-2019 10:27 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
!
!
12-06-2015 09:40 PM
seems to be duplicate thread of this one. solutions arleady provided in this thread and will work for selective mobile number block too.
https://supportforums.cisco.com/discussion/12721751/blocking-incoming-no-voice-gateway
Br,
Nadeem
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