Convert Area Code and NPA of called number to two digit site code to create DN?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2018 11:54 AM - edited 03-17-2019 12:50 PM
I've looked all over the net, and can't seem to find a similar solution.
I'm currently receiving 10 digits from ITSP and would like to convert the Area Code and NPA of called number to two digit site code of say "10" + four digit extension, since my DN is 108039
Right now I have Significant Digits on the incoming SIP trunk to 4 and append "10" for a site code to create the DN of the called number. I will soon be receiving Area Codes and NPA's from different states.
I'm trying to figure out how to perhaps receive "all" for significant digits to modify and send to my DN.
Thanks in advance for any direction!
- Labels:
-
Other IP Telephony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2018 10:44 PM
I cant lab this atm,
but you would need to slice the incoming called number up:
NPA-NXX-xxxx
Specific Example
This example provides further detail:
voice translation-rule 1
rule 1 /^\(NPA\)NXX\(....\)$/ /\1\3/ essentially add the NPA and last 4 digits.
this might not be exactly correct, but look into this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2018 06:57 AM
- Create translation patterns that capture the NPANXX combinations and prefix the appropriate site codes. (Pattern: 408555.XXXX, Discard Pre-Dot, Prefix 10)
- Give the translation patterns a CSS that can reach your internal extensions.
- Put these translation patterns in a partition something like PSTN_Inbound_PT
- ...and put that partition in a CSS something like PSTN_Inbound_CSS.
- Give your gateway this CSS for inbound call routing
- (and remove the significant digits on the gateway)
As Dennis pointed out, you can also make this change using Voice Translation Profiles in the router.
Maren
