cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
713
Views
5
Helpful
2
Replies

Translate Called Number to Another Before Sending to Next GW

Matthew Martin
Level 5
Level 5

Hello All,
Goal here is to send a call that is currently getting sent to CUCM where it then gets translated and routed accordingly, to have that number translated to another number before sending it along to the next Gateway instead.

The SIP Cube has a main inbound dial-peer that basically is a catch all to except the incoming call.

Currently on the SIP Cube/GW I created a translation-rule and profile:

!
voice translation-rule 206
 rule 1 /5551234567/ /2490/
!
!
voice translation-profile MAIN-FAX-INBOUND
 translate called 206
!

So I believe I now need an outbound dial-peer to direct the call to the next gateway in our network, where the fax machine is attached. And I was curious how the translation works. Does the translation rule/profile translate that number to 2490, and then send "2490" to the next Gateway? The next Gateway is expecting the number 2490.

Something like this?

!
dial-peer voice 2608 voip
 description Fax Machine - 555-123-4567
 translation-profile outgoing 800-FAX-INBOUND
 destination-pattern 5551234567
 session protocol sipv2
 session target ipv4: <fax-gw-ipaddr>
 dtmf-relay sip-kpml rtp-nte
 codec g711ulaw
 fax-relay ecm disable
 fax-relay sg3-to-g3
 fax rate 14400
 no vad
!

Wasn't sure if I was supposed to use incoming or outgoing for the translation-profile line in the dial-peer. Is it technically outgoing since its an outbound dial-peer to our next Gateway?

Any help would be greatly appreciated.

 

Thanks,

Matt

1 Accepted Solution

Accepted Solutions

Thanks Vaijanath.

 

I ended up doing it slightly differently. It was a little bit more configuration. But, the result is the same. On the CUBE I configured a dial-peer to take the full fax telephone number, and just send that full number to the 2nd Gateway (*a 2821). On the 2821 I have a voip dial-peer with incoming called-number to accept the full number. Then, I have a few pots dial-peers using destination-pattern of the full number and the translation-profile to change the full number to 2490 and send the call out one of 4 pots lines all connected to a FaxFinder Gateway.

 

2911 SIP CUBE:

!
dial-peer voice 4567 voip
 description Fax Machine - 555-123-4567
 destination-pattern 5551234567
 session protocol sipv2
 session target ipv4: <2821-ip-address>
 dtmf-relay sip-kpml rtp-nte
 codec g711ulaw
 fax-relay ecm disable
 fax-relay sg3-to-g3
 fax rate 14400
 no vad
!

2821 Voice Gateway:

!
voice translation-rule 3
 rule 1 /5551234567/ /2490/
!
!
voice translation-profile 800-FAX-IN
 translate called 3
!
!
!
dial-peer voice 4567 voip
 description Incoming VoIP Dial-Peer Fax - 555-123-4567
 session protocol sipv2
 incoming called-number 5551234567
 voice-class sip bind control source-interface GigabitEthernet0/0
 voice-class sip bind media source-interface GigabitEthernet0/0
 dtmf-relay sip-kpml rtp-nte
 codec g711ulaw
 fax-relay ecm disable
 fax-relay sg3-to-g3
 fax rate 14400
 no vad
!
dial-peer voice 45672 pots
 translation-profile outgoing 800-FAX-IN
 destination-pattern 5551234567
 port 2/0/2
!
dial-peer voice 45673 pots
 translation-profile outgoing 800-FAX-IN
 destination-pattern 5551234567
 port 2/0/3
!
dial-peer voice 45674 pots
 translation-profile outgoing 800-FAX-IN
 destination-pattern 5551234567
 port 2/0/4
!
dial-peer voice 45675 pots
 translation-profile outgoing 800-FAX-IN
 destination-pattern 5551234567
 port 2/0/5
!

This configuration appears to be working as the Fax gateway/server is receiving faxes.

 

Thanks Again,

Matt

View solution in original post

2 Replies 2

Vaijanath Sonvane
VIP Alumni
VIP Alumni

Hi,

You need below configuration:

Inbound Dial-Peer to match 5551234567 and translation profile to translate to 2490.

!
voice translation-rule 206
 rule 1 /5551234567/ /2490/
!
voice translation-profile MAIN-FAX-INBOUND
 translate called 206
!
dial-peer voice 9000 voip
 description ** INBOUND CALLS FROM SERVICE PROVIDER **
 translation-profile incoming MAIN-FAX-INBOUND
 incoming called-number 5551234567$
 ++++++ add other dial peer configuration parameters depending on your setup +++++++
!

Outgoing Dial-Peer to send the call to next gateway:

!
dial-peer voice 2608 voip
description Fax Machine - 555-123-4567
 destination-pattern 2490$
 session protocol sipv2
 session target ipv4: <fax-gw-ipaddr>
 dtmf-relay sip-kpml rtp-nte
 codec g711ulaw
 fax-relay ecm disable
 fax-relay sg3-to-g3
 fax rate 14400
 no vad
!

 

Please rate helpful posts and if applicable mark "Accept as a Solution".
Thanks, Vaijanath S.

Thanks Vaijanath.

 

I ended up doing it slightly differently. It was a little bit more configuration. But, the result is the same. On the CUBE I configured a dial-peer to take the full fax telephone number, and just send that full number to the 2nd Gateway (*a 2821). On the 2821 I have a voip dial-peer with incoming called-number to accept the full number. Then, I have a few pots dial-peers using destination-pattern of the full number and the translation-profile to change the full number to 2490 and send the call out one of 4 pots lines all connected to a FaxFinder Gateway.

 

2911 SIP CUBE:

!
dial-peer voice 4567 voip
 description Fax Machine - 555-123-4567
 destination-pattern 5551234567
 session protocol sipv2
 session target ipv4: <2821-ip-address>
 dtmf-relay sip-kpml rtp-nte
 codec g711ulaw
 fax-relay ecm disable
 fax-relay sg3-to-g3
 fax rate 14400
 no vad
!

2821 Voice Gateway:

!
voice translation-rule 3
 rule 1 /5551234567/ /2490/
!
!
voice translation-profile 800-FAX-IN
 translate called 3
!
!
!
dial-peer voice 4567 voip
 description Incoming VoIP Dial-Peer Fax - 555-123-4567
 session protocol sipv2
 incoming called-number 5551234567
 voice-class sip bind control source-interface GigabitEthernet0/0
 voice-class sip bind media source-interface GigabitEthernet0/0
 dtmf-relay sip-kpml rtp-nte
 codec g711ulaw
 fax-relay ecm disable
 fax-relay sg3-to-g3
 fax rate 14400
 no vad
!
dial-peer voice 45672 pots
 translation-profile outgoing 800-FAX-IN
 destination-pattern 5551234567
 port 2/0/2
!
dial-peer voice 45673 pots
 translation-profile outgoing 800-FAX-IN
 destination-pattern 5551234567
 port 2/0/3
!
dial-peer voice 45674 pots
 translation-profile outgoing 800-FAX-IN
 destination-pattern 5551234567
 port 2/0/4
!
dial-peer voice 45675 pots
 translation-profile outgoing 800-FAX-IN
 destination-pattern 5551234567
 port 2/0/5
!

This configuration appears to be working as the Fax gateway/server is receiving faxes.

 

Thanks Again,

Matt