09-09-2008 04:26 AM - edited 03-15-2019 01:08 PM
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
09-09-2008 05:50 AM
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
09-09-2008 07:31 AM
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
09-09-2008 04:45 PM
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
09-10-2008 12:52 AM
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 ?
09-10-2008 12:58 AM
So the called number is the DNIS and the calling is the ANI ?
YES
09-10-2008 01:17 AM
Will the above work ?
thanks
09-10-2008 01:25 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide