cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
536
Views
0
Helpful
12
Replies

Digit Manipulation

Steellllllllll0
Level 1
Level 1

Hi Guys,

I need to expand the 9 digits the carrier is presenting to 12 digits to match my DN`s.

I have tried using a translation pattern to prefix the extra 3 digits but its not working.I have not got my head round the dial-peer thingy so will appreciate any help or sample config i can look at...

I have twelve digit extension/DN numbers but for incoming calls the carrier is presenting only the last nine digits.

12 Replies 12

pklos
Level 4
Level 4

For example you can do it setting "Prefix DN" (Call Routing Information - Inbound Calls) in you ccm's gateway configuration.

If you have h323 gateway you can also do it via voice translation-rule on router or translation pattern on CCM (gw should point only to tris TP via separate partition, TP should have CSS with your DNs partition; you can translate/prefix there calling and called party numbers).

--

regards,

PK

m.batts
Level 4
Level 4

try this

voice translation-rule 1

rule 1 // /XXX/ where x equals the digits you want to add

voice translation-profile pstn

translate called 1

dial-peer voice X pots

translation-profile incoming pstn

where X is the number of your existing inbound dial-peer

add these commands and you should be ok.

cheers

mark

Hi there,

At the moment i have:

voice translation-rule 1

rule 1 // /390/

!

!

voice translation-profile PSTN

translate called 1

dial-peer voice 50 voip

destination-pattern XXXXXXX.. ( digits presented by telco)

session target ipv4:X.X.X.X

incoming called-number .T

!

dial-peer voice 30 pots

incoming called-number XXXXXXX..

direct-inward-dial

port 0/0/0

forward-digits all

!

dial-peer voice 51 voip

destination-pattern XX..

session target ipv4:X.X.X.X

incoming called-number .T

!

dial-peer voice 31 pots

incoming called-number XXXXXXX..

direct-inward-dial

port 0/0/1

forward-digits all

!

dial-peer voice 32 pots

incoming called-number XXXXXXX..

direct-inward-dial

port 0/1/0

forward-digits all

!

dial-peer voice 33 pots

incoming called-number XXXXXXX..

direct-inward-dial

port 0/1/1

forward-digits all

I forgot to mention i have 3 bri circuits for incoming/outgoing calls and gateway is h323.

try:

rule 1 /\(.*\)/ /390\1/

I do not see you actually applying the translation profile to your dial-peers. Try adding "translation-profile incoming PSTN" to each of your pots dial-peers. Your voip dial-peers will also need to be updated to reflect a destination-pattern that includes the 390 at the beginning.

Hi ,

You can also test the result with the command :

router# test voice translation-rule 1 123456

It will show you the following result:

Matched with rule 1

Original number: 123456 Translated number: 390123456

Original number type: none Translated number type: none

Original number plan: none Translated number plan: none

After that you must apply this translation to your voice-port or you dial-peer .

So it is up to you to choose :

dial-peer voice 50 voip

translation-profile outgoing PSTN

!

dial-peer voice 51 voip

translation-profile outgoing PSTN

!

or

voice-port 0/0/0

translation-profile outgoing PSTN

!

voice-port 0/0/1

translation-profile outgoing PSTN

!

voice-port 0/1/0

translation-profile outgoing PSTN

!

voice-port 0/1/1

translation-profile outgoing PSTN

!

There is 1 port too much .

Thanks

Olivier

Ok,

Tried adding to pots and voice ports still not happening.I have a DN on CCM 390abcdefghi

and no translation patterns as 390abcdefghi is what the gateway should be passing to the ccm.I am back to my base config now as the previous posts are conflicting information.Please help :

#test voice translation-rule 1 abcdefghi

Matched with rule 1

Original number: XXXXXXXXX Translated number: 390abcdefghi

Original number type: none Translated number type: none

Original number plan: none Translated number plan: none

voice-port 0/0/0

no non-linear

compand-type a-law

cptone XX

voice-port 0/0/1

compand-type a-law

cptone XX

voice-port 0/1/1

compand-type a-law

cptone XX

dial-peer voice 50 voip

destination-pattern 390abcdefg..

session target ipv4:X.X.X.X

incoming called-number .T

dial-peer voice 30 pots

destination-pattern .T

incoming called-number abcdefg..

direct-inward-dial

port 0/0/0

forward-digits all

dial-peer voice 31 pots

destination-pattern .T

incoming called-number abcdefg..

direct-inward-dial

port 0/0/1

forward-digits all

dial-peer voice 33 pots

destination-pattern .T

incoming called-number abcdefg..

direct-inward-dial

port 0/1/1

forward-digits all

You might want to take a look at this link:

http://www.cisco.com/en/US/tech/tk652/tk90/technologies_tech_note09186a008010fed1.shtml

Also it will be very helpful if you post whole config file with controllers, Interfaces etc as well let us know the hardware (F.i. 3745,etc)

Try this:

voice translation-rule 1

rule 1 /.*\(....$\)/ /390\1/

voice translation-profile 1

translate called 1

voice-port 1/0:15

translation-profile incoming 1

translate called 1

input gain -3

output attenuation 3

echo-cancel coverage 32

no vad

cptone XX

bearer-cap Speech

I believe the voice ports bellow are analog for Faxes:

voice-port 0/0/0

voice-port 0/0/1

voice-port 0/1/1

#sh inventory or sh diag it will tell you if you have FXS WIC ports.

add the following :

voice call send-alert

voice rtp send-recv

!

voice service voip

fax protocol pass-through g711ulaw

h323

h225 timeout tcp call-idle value 0

no h225 timeout keepalive

modem passthrough nse codec g711ulaw

!

!

voice class codec 1

codec preference 1 g711ulaw

codec preference 3 g729r8 bytes 40

!

!

!

voice class h323 1

h225 timeout tcp establish 2

h225 timeout setup 3

dial-peer voice 50 voip

preference 1

destination-pattern 390[1-9]...

progress_ind setup enable 3

voice-class codec 1

voice-class h323 1

session target ipv4:x.x.x.x

incoming called-number .T

dtmf-relay h245-signal

no vad

dial-peer voice 50 voip

preference 2

destination-pattern 390[1-9]...

progress_ind setup enable 3

voice-class codec 1

voice-class h323 1

session target ipv4:x.x.x.Y

incoming called-number .T

dtmf-relay h245-signal

no vad

Hope this helps.

Maddox

Hi there,

Thanks for replying.I have already the voice call send-alert and voice rtp etc.As mentioned above i am using 3 bri circuits for incoming/outgoing calls so thats what those voice ports are for.Outgoing works fine and i am using G729 instead of G711.

How can i check on CCM 5.1 that calls are actually coming in because i can see my dial-peers being matched etc so would like to be able to see whats being sent to the CCM from the gateway and to be able to see on the CCM whats being received from the gateway.

Hi again ,

Have you tried with the translation outgoing in the voice-port ?

Incoming will not work because you must send out the translation result from the pots leg to the voip leg . So It is not to apply in an incoming mode .

Can you send the result of a debug voip ccapi inout of a call pointing to an extension of your CCM and to see what is sended to your ccm ?

Thanks

Olivier

Hi,

Yes i have applied the translation profile outgoing on my voice ports but it still wont work.Perhaps its something to do with the pots dial-peer only sending the wildcards by default not sure.

abcdefghi = 9 digits presented by telco

390abcdefghi = 12 digit extension on ccm

Thanks again !!

Hi Guys,

I managed to get it working using a translation pattern so thanks for your help.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: