cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2025
Views
5
Helpful
3
Replies

dial-peer failover

bo liu
Level 4
Level 4

hello everyone

who can help me to do this

i want the gateway route a call like this

when a user dial 1002 from PSTN ,the gateway can first route the call to a sip server (like CVP),if the CVP down then gateway can change the called number from 1002 to 3333 and route the 3333 to a h323 server (like CUCM and 3333 is a hunt group) then if the CUCM down, phone will register to SRST the gateway will route the call to SRST hunt group 3333

next is my config

voice translation-rule 3
 rule 1 /1002/ /3333/

!

voice translation-profile failover
 translate called 3

!

dial-peer voice 1000 voip
 description CVP SIP Comprehensive dial-peer
 destination-pattern 1002
 signaling forward none
 session protocol sipv2
 session target ipv4:10.22.1.41:5060
 voice-class codec 1 
 dtmf-relay rtp-nte h245-signal h245-alphanumeric
 no vad
!
dial-peer voice 1001 voip
 description CVP SIP Comprehensive dial-peer
 destination-pattern 1002
 signaling forward none
 session protocol sipv2
 session target ipv4:10.22.1.42:5060
 voice-class codec 1 
 dtmf-relay rtp-nte h245-signal h245-alphanumeric
 no vad
!

dial-peer voice 1002 voip
 translation-profile incoming failover
 preference 1
 incoming called-number 1002
 voice-class codec 1 
 dtmf-relay cisco-rtp h245-alphanumeric h245-signal rtp-nte

!

dial-peer voice 1003 voip
 description CVP down CUCM backup
 destination-pattern 3333
 session target ipv4:10.22.1.36
 voice-class codec 1 
 voice-class h323 1
 dtmf-relay cisco-rtp h245-signal h245-alphanumeric rtp-nte
 no vad
!
dial-peer voice 1004 voip
 description CVP down CUCM backup
 destination-pattern 3333
 session target ipv4:10.22.1.37
 voice-class codec 1 
 voice-class h323 1
 dtmf-relay cisco-rtp h245-signal h245-alphanumeric rtp-nte
 no vad

!

call-manager-fallback
 secondary-dialtone 9
 max-conferences 8 gain -6
 transfer-system full-consult
 ip source-address 10.22.1.38 port 2000
 max-ephones 1200
 max-dn 1800
 system message primary BQ-IPCC-SRST
 alias 1 3333 to 56000 cfw 3333 timeout 12
 alias 2 3333 to 56001 cfw 3333 timeout 12

 

i test after the dial-peer run 1000 and1001 then will disconnect 

 

the disconnect code is 102

 

 

2 Accepted Solutions

Accepted Solutions

Chris Deren
Hall of Fame
Hall of Fame

Use "survivability.tcl" which is meant for this purpose in CVP deployments. Apply survivability to the desired dial-peer and it will send the call to whatever the survivability service has defined parameters for.

Chris

View solution in original post

Hi,

Can you try this

1). Creat 4dial-peer's of the same destination 1002.

2). 1 & 2 pointing towards CVP but do provide preference in that .

3). 3 & 4 pointing towards CUCM (if you have redundancy) with lower preference of above two dial-peers.

4). In dial-peer pointing towards CUCM, apply translation profile in outgoing direction which will change the called number from 1002 to 3333.

So in that case you don't have to create separate dial-peer for destination 3333.

See the below configuration with remarks :-

voice translation-rule 3
 rule 1 /1002/ /3333/

!

voice translation-profile failover
 translate called 3

!

dial-peer voice 1000 voip
 description CVP SIP Comprehensive dial-peer
 destination-pattern 1002
 signaling forward none
 session protocol sipv2
 session target ipv4:10.22.1.41:5060
 voice-class codec 1 
 dtmf-relay rtp-nte h245-signal h245-alphanumeric
 no vad
!
dial-peer voice 1001 voip
 description CVP SIP Comprehensive dial-peer
 destination-pattern 1002
 signaling forward none
 session protocol sipv2
 session target ipv4:10.22.1.42:5060
 voice-class codec 1 
 preference 1    ///////lower preference 
 dtmf-relay rtp-nte h245-signal h245-alphanumeric
 no vad
!

dial-peer voice 1002 voip ////match the incoming call with this dial-peer
 translation-profile incoming failover //////remove this profile from here 
 preference 1    /////remove this preference
 incoming called-number 1002
 voice-class codec 1 
 dtmf-relay cisco-rtp h245-alphanumeric h245-signal rtp-nte

!

dial-peer voice 1003 voip
 description CVP down CUCM backup
 destination-pattern 1002
 translation-profile outgoing failover     ////// apply translation profile in outgoing direction
 session target ipv4:10.22.1.36
 voice-class codec 1 
 voice-class h323 1
 preference 2          ///////// lower preference
 dtmf-relay cisco-rtp h245-signal h245-alphanumeric rtp-nte
 no vad
!
dial-peer voice 1004 voip
 description CVP down CUCM backup
 translation-profile outgoing failover   ////// apply translation profile in outgoing direction
 destination-pattern 1002
 session target ipv4:10.22.1.37
 voice-class codec 1 
 voice-class h323 1
 preference 3         /////// lower preference
 dtmf-relay cisco-rtp h245-signal h245-alphanumeric rtp-nte
 no vad

 

Regards, Nishant Savalia

View solution in original post

3 Replies 3

Chris Deren
Hall of Fame
Hall of Fame

Use "survivability.tcl" which is meant for this purpose in CVP deployments. Apply survivability to the desired dial-peer and it will send the call to whatever the survivability service has defined parameters for.

Chris

Hi Chris

i use the survivability script ,but when i config the param there have a warining ,and i shutdown the CVP dial-peer the router can't find dial-peer to route....

 

next is my config

 


BQ-GW1(config)#application
BQ-GW1(config-app)#service survivability
BQ-GW1(config-app-param)#param open-hours-agent0 3333
Warning: parameter open-hours-agent0 has not been registered under survivability namespace

 service survivability flash:survivability.tcl
  paramspace english language en
  paramspace english index 0
  paramspace english location flash
  paramspace english prefix en
  param open-hours-agent0 3333
 !

dial-peer voice 1002 voip
 preference 1
 service survivability
 incoming called-number 10..
 voice-class codec 1 
 dtmf-relay cisco-rtp h245-alphanumeric h245-signal rtp-nte
 no vad

 

dial-peer voice 1002 voip
 preference 1
 service survivability
 incoming called-number 10..
 voice-class codec 1 
 dtmf-relay cisco-rtp h245-alphanumeric h245-signal rtp-nte
 no vad

 

Hi,

Can you try this

1). Creat 4dial-peer's of the same destination 1002.

2). 1 & 2 pointing towards CVP but do provide preference in that .

3). 3 & 4 pointing towards CUCM (if you have redundancy) with lower preference of above two dial-peers.

4). In dial-peer pointing towards CUCM, apply translation profile in outgoing direction which will change the called number from 1002 to 3333.

So in that case you don't have to create separate dial-peer for destination 3333.

See the below configuration with remarks :-

voice translation-rule 3
 rule 1 /1002/ /3333/

!

voice translation-profile failover
 translate called 3

!

dial-peer voice 1000 voip
 description CVP SIP Comprehensive dial-peer
 destination-pattern 1002
 signaling forward none
 session protocol sipv2
 session target ipv4:10.22.1.41:5060
 voice-class codec 1 
 dtmf-relay rtp-nte h245-signal h245-alphanumeric
 no vad
!
dial-peer voice 1001 voip
 description CVP SIP Comprehensive dial-peer
 destination-pattern 1002
 signaling forward none
 session protocol sipv2
 session target ipv4:10.22.1.42:5060
 voice-class codec 1 
 preference 1    ///////lower preference 
 dtmf-relay rtp-nte h245-signal h245-alphanumeric
 no vad
!

dial-peer voice 1002 voip ////match the incoming call with this dial-peer
 translation-profile incoming failover //////remove this profile from here 
 preference 1    /////remove this preference
 incoming called-number 1002
 voice-class codec 1 
 dtmf-relay cisco-rtp h245-alphanumeric h245-signal rtp-nte

!

dial-peer voice 1003 voip
 description CVP down CUCM backup
 destination-pattern 1002
 translation-profile outgoing failover     ////// apply translation profile in outgoing direction
 session target ipv4:10.22.1.36
 voice-class codec 1 
 voice-class h323 1
 preference 2          ///////// lower preference
 dtmf-relay cisco-rtp h245-signal h245-alphanumeric rtp-nte
 no vad
!
dial-peer voice 1004 voip
 description CVP down CUCM backup
 translation-profile outgoing failover   ////// apply translation profile in outgoing direction
 destination-pattern 1002
 session target ipv4:10.22.1.37
 voice-class codec 1 
 voice-class h323 1
 preference 3         /////// lower preference
 dtmf-relay cisco-rtp h245-signal h245-alphanumeric rtp-nte
 no vad

 

Regards, Nishant Savalia