translation patterns in SRST mode

Unanswered Question
Sep 9th, 2008

I have a site set up with MGCP in normal mode, H323 in SRST

Normal op

Users A dials an internal 3 digit extension number, the CCM adds a prefix via a TP and MASK`s the original DN i.e

Users A extension 222 dials User B 123

CCM adds prefix 212 to 123

Users B phone rings

The display on User B shows User A DN as 222 due to a mask I use

Incoming calls via PSTN

Call is shown on the missed calls, CCM is configured via TP`s to add the local PSTN access code

I need the following only when in SRST mode

Maintain current set up in that the user A dials User B 123, SRST GW adds prefix 212 as before

User B only sees User A DN as 222

Add PSTN access code so that the users can dial back via the Missed/ Received calls

Is Num-exp only in effect when in SRST mode ?

I thought about num-exp for ... 212... this would expand any number when in SRST mode .

NUM-EXP 2.. 212...

NUM-EXP 6.. 212...

So a user in SRST dials the 3 digit extension number beginning with either 2 or a 6 which is expanded to 2122.., 2126..

Mask

voice translation-rule 1

rule 1 /212.../ /.../

call-manager-fallback

Voice translation-profile MASK

translate calling 1

Adding a local PSTN access code for incoming calls while in SRST

voice translation-rule 2

rule 1 /*/ /0/

voice translation-profile Add Access code

translate called 2

dial-peer voice 100 pots

translation-profile incoming Add Access code

destination xxxxxxx

will this work , is this a good method or is there a better one

many thanks

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Marwan ALshawi Tue, 09/09/2008 - 05:50

do the following config base don r example:

num-exp 1.. 2121..

for mised calls:

voice translation-rule 1

rule 1 /\.*/ /9\1/

voice trnaslation-profile p1

trnslate calling 1

dial-peer voice 100 pots

translation-profile incoming p1

this should be as u seen above based on the calling number and applied to the pstn incoming pots dial-peer

by the way the num-exp config above based on ur example call from A to B

the idea the same for any other numbers just change the pattren

good lukc

if helpful Rate

iptuser55 Tue, 09/09/2008 - 07:31

Thanks for the reply

num-exp 1.. 2121..

I forgot what is did

Mask

voice translation-rule 1

rule 1 /212\(..\)/ /1/

This rule will hopefully mean that any number calling number i.e User A`s own DN 212XXX will be replaced with xxx ?? and only be in effect in when in fall- back

call-manager-fallback

Voice translation-profile MASK

translate calling 1

Rule 2 should be in place all the time?

voice translation-rule 2

rule 1 /\(.*\)/ /0\1/ - adds a 0 infront of any incoming number- 0 is the local PSTN ACCESS CODE

voice translation-profile Add Access code

translate called 2

dial-peer voice 100 pots

translation-profile incoming Add Access code

destination xxxxxxx

Marwan ALshawi Tue, 09/09/2008 - 16:45

ok the num-exp

in ur example if some one dial 123 or 155 and so one will be changed to

212123 or 212155 and so on...

about

this one

voice translation-rule 2

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

ok but u need to make the profile based oncalling not called be cased the number apearing to the local users is the external calling number so u need to translate the calling number and add the 0 infront of it

voice translation-profile Add Access code

translate CALLING 2

and apply id normally like

by the wau donrt make space on the name make the name like

add-access-code better

good luck

if helpful Rate

iptuser55 Wed, 09/10/2008 - 00:52

I`ve done some more investigation and suggested this. It seems to work when doing the test translation....

voice translation-rule 1

rule 1 /^776\(...\)/ /\1/

!

RULE 1 is to mask the DN so only the last 3 digits are seen

voice translation-rule 2

rule 1 /^6\(..\)/ /7766\1/

rule 2 /^8\(..\)/ /7768\1/

!

Rule 2 is to prefix DN 6xx, 8xx with 776

!

voice translation-profile ADD_776_PREFIX

translate called 2

!

voice translation-profile MASK

translate calling 1

dial-peer voice 100 pots

description PSTN/Telco Calls

translation-profile incoming ADD_776_PREFIX

destination-pattern 0T

incoming called-number .

direct-inward-dial

port 0/0/0:15

!!

!

call-manager-fallback

max-conferences 8 gain -6

transfer-system full-consult

timeouts interdigit 4

ip source-address 22.36.173.1 port 2000

max-dn 8

system message primary IN FALLBACK MODE

system message secondary IN FALLBACK MODE

transfer-pattern 776...

translate calling 1

translate called 2

time-format 24

date-format dd-mm-yy

So the called number is the DNIS and the calling is the ANI ?

Marwan ALshawi Wed, 09/10/2008 - 01:25

ok based on the above config:

claeed number from pstn will be:

with number 6.. will be 7766..

and 8.. will be 7768..

and other number will be passed as it is

from pstn people dial only 6.. or 8..??

about the translation rules config it is alright the config good but the aplication under the fallback work as it expected not sure

so try it and let me know about it

good luck

Actions

This Discussion