Destination Pattern - Octothorpe

Answered Question
Sep 6th, 2008

I'm trying to set up a destination pattern that allows a caller to dial a # (octothorpe) before a number. We have a service from British telecom in the UK that requires us to dial #21# to access this external number

I have tried the following

dial-peer voice 55 pots

destination-pattern 9#21#T

However, after picking up the outside line (using 9) the rest of the number is not dialled. I think this is because the Call Manager strips out all the numbers after the #, as the # is normally used to signify that the preceding number is the last one in the sequence

I see that the question has been asked before (back in May) but I couldnt see that there was a successful answer)

Any help would be great

Many thanks

Paul

I have this problem too.
0 votes
Correct Answer by Marwan ALshawi about 8 years 2 months ago

ok make more simple

i have just tested this one

voice translation-rule 2

rule 1 /^921/ /9#21#/

!

!

voice translation-profile p21

translate called 2

the verification:

Router#test voice translation-rule 2 921

Matched with rule 1

Original number: 921 Translated number: 9#21#

good luck

and let me know

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Marwan ALshawi Sat, 09/06/2008 - 03:52

hi Paul

the solusion to ur problem as follow

lets say in call manager u have a route-pattren with pattren 9.XXXXXX

and u have discard pre dot digits

now lets say u cal from call manger 9123456

the call manager will discard the 9 and send to the GATEWAY 123456 only

on the gateway we gonna make a translation-rule that match any dialed number and prepend a #21# so the numbet will send to the telco as #21#123456

as the following

voice translation-rule 1

rule 1 /\.*/ /#21#\1/

!

!

voice translation-profile p21

translate called 1

dial-peer voice 55 pots

destination-pattern 1T

translation-profile outgoing p21

port [portnumber]

forward-digits all

this is the test for the above translation

Router#test voice translation-rule 1 123456

Matched with rule 1

Original number: 123456 Translated number: #21#123456

look the called number was 123456 translated to #21#123456

u can make it more spisific like if the cal lgoing to the teleco start with a number like in our example 1

u cam make it like

voice translation-rule 1

rule 1 /\1*/ /#21#\1/

by the way i would also sugist u dont use the T in the destination pattren as it will wait unitle the interdigit time oute hic is 15 second make more spisific for exampe if u have the number to the telecom like in our example six digits and start with 1 do it like

dial-peer voice 55 pots

destination-pattern 1....

translation-profile outgoing p21

port [portnumber]

forward-digits all

good luck

if helpful Rate

warpsystems Sat, 09/06/2008 - 07:32

Thanks for the quick reply

Not sure I described the problem correctly.

#21# is the number I wish to dial in its entirety. It is a number we need to call to access a specific service from our telco. The only other times we need to use the # sign, is also to access a telco service, using #67# and #61#

As we need to dial 9 for an outside line, these are the 3 times we use the # sign

9#21#

9#67#

9#61#

ALL other numbers we dial start with a 9 but DO NOT require the # sign

eg

90178454321

90178498765

Hope that explains a bit better

Many thanks

Paul

Marwan ALshawi Sat, 09/06/2008 - 07:36

so u send for example #21# to the teleco and then u get dial-ton then u enter a normal number is that right ?

and the 9 should be send to the teleco as well

like 9#21# or only #21# ?

Marwan ALshawi Sat, 09/06/2008 - 07:46

from my understanding what u could try

instead of tell users to dial for example 9#21# tell them to dial 921 and creat a route-pattren for this number and send it to ur h323 gate in the gateway do similer translation-rule to one i sent u with simple change for example

voice translation-rule 1

rule 1 /921\/ /9#21#\1/

voice translation-profile p21

translate called 1

dial-peer voice 55 pots

destination-pattern 921

translation-profile outgoing p21

port [portnumber]

forward-digits all

based on this config

the ip phone will dial 921

this will match a route-pattren in callmanager with 921 and will send the whole number to the h323 gateway with 921

once this number arrive to the gateway it will match dial-peer 55 and becase it match a transaltion pattren on that dial-peer as well applied for outgoing called number so the dialed number 921 will be send to ur teleco as 9#21#

if u dont want the 9 to be sent to the telco just remove it fron the translation like:

voice translation-rule 1

rule 1 /921\/ /#21#\1/

then the teleco will get only #21# while the internal user dialed only 921

but i am not sure if that what u look for anyway if not just let me know what is the number shoud reach ur gateway and what number should be sent to the teleco

i mean as i mention only 9#21# so the above config apply to this idea if not just let me know exaclty

and good luck :)

warpsystems Sat, 09/06/2008 - 08:04

Many thanks....I think this is the closest

voice translation-rule 1

rule 1 /921\/ /9#21#\1/

voice translation-profile p21

translate called 1

dial-peer voice 55 pots

destination-pattern 921

translation-profile outgoing p21

port [portnumber]

forward-digits all

....so the dialed number 921 will be send to ur teleco as 9#21#

What happens is thet the user dials 9#21# and the telco answers with the voice message....

"dial the number to which you want your calls diverted, followed by #"

at that point, the user types in, for example...

0178454321#

..and then hangs up. This means that the analogue line from which the user has called from, is automatically diverted by the telco to a different analogue lie...ie 0178454321

I will try the solution you mention above, but we already have a voice translation-rule 1 which works and is...

voice translation-rule 1

rule 1 /^\(.*\)/ /9\1/

Should I create your voice-translation as a new rule eg

voice translation-rule 2

rule 1 /921\/ /9#21#\1/

voice translation-profile p21

translate called 2

dial-peer voice 55 pots

destination-pattern 921

translation-profile outgoing p21

port [portnumber]

forward-digits all

Many thanks

Paul

Marwan ALshawi Sat, 09/06/2008 - 08:09

yes u can rul 2 or any number

by the way

it gonna work but just make sure the 9 should be send or not and either way i sent u the rule for both ways

good luck

if helpful Rate

warpsystems Sat, 09/06/2008 - 08:28

Hi again

I tried it but get the following error

UC520(config)#voice translation-rule 2

UC520(cfg-translation-rule)#rule 2 /921\/ /9#21#\1/

% trailing \ ^

% Invalid input detected at '^' marker.

Correct Answer
Marwan ALshawi Sat, 09/06/2008 - 08:47

ok make more simple

i have just tested this one

voice translation-rule 2

rule 1 /^921/ /9#21#/

!

!

voice translation-profile p21

translate called 2

the verification:

Router#test voice translation-rule 2 921

Matched with rule 1

Original number: 921 Translated number: 9#21#

good luck

and let me know

Actions

This Discussion