cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
277
Views
15
Helpful
2
Replies

Translation rules

Justin Pascal
Level 1
Level 1

Hi Forum,

I have a question here:

What I need is that when CALLING NUMBER 12002002 dials 13003002 it gets converted to 13003009

I only want this for calling number 12002002.

Im using H323 GW.

The following config works fine, but for all numbers

I only want this for 12002002, but when I dial from 12002022 ie it is also transfer to 13003009.

I want like an AND condition for voice translation-rule 1

Here is my config and topology

Cluster1 Cluster2

Extensions --- H323 --- MGCP GW --- Extensions

1200XXXX PRI back2Back 1300XXXX

voice translation-rule 1

rule 1 /^12002002$/ /12002002/

rule 2 /13003002/ /13003009/

voice translation-profile profile1

translate called 1

dial-peer voice 1000 voip

translation-profile outgoing profile1

preference 1

destination-pattern 1300T

progress_ind setup enable 3

voice-class codec 1

voice-class h323 1

session target ipv4:192.168.3.120

dtmf-relay h245-alphanumeric

dial-peer voice 1001 pots

destination-pattern 1200....

direct-inward-dial

port 1/0:23

This is a lab simulation before I implemented it.

Thanks

1 Accepted Solution

Accepted Solutions

andyap
Level 1
Level 1

you need to create voip dial-peer that match the incoming call leg with answer-address, which is your ANI = 12002002 and apply the translation rule in this dial-peer.

It should work.

View solution in original post

2 Replies 2

andyap
Level 1
Level 1

you need to create voip dial-peer that match the incoming call leg with answer-address, which is your ANI = 12002002 and apply the translation rule in this dial-peer.

It should work.

gogasca
Level 10
Level 10

Add this:

dial-peer voice 100 pots

translation-profile incoming profile1

answer-address 12002002

direct-inward-dial

port 1/0:23

Remove from:

dial-peer voice 1000 voip

translation-profile outgoing profile1 <-- This line

That should do it