Discard the last digit of a route pattern

Answered Question
May 20th, 2010
User Badges:

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Tableau Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0cm; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;}

Hello,

I have a TOIP Solution based on a CUCM 7.1, IP phone CP 7945, and an MGCP Gateway Cisco 2811 with a VIC2-1MFT-T1/E1 used to connect to an Ericsson PBX that control 100 analog phones. The CUCM use 2XXX as a dialing plan for IP Phones and the Ericsson PBX use 1XXX as a dialing plan for analog phones.

I have an issue with the forward between the analog phone controlled by the PBX and the IP Phones controlled by the CUCM. When an analog phone tries to forward all his call to an IP Phone it does not work. When I analyze the issue, I have seen that when an analog phone that have forwarded his calls to an IP Phone ( for example to an IP phone that have 2000 as a directory number) and that analog phone is called, the PBX send to the Gateway the Directory number of the IP Phone followed by the digit 1 (20001). So I have to discard the last digit in order to the forward to works fine. I have created a translation pattern with the pattern 2XXX1 and I need to apply something to discard the last digit. Can you help me please and thank you in advance.


Correct Answer by William Bell about 6 years 11 months ago

Hmmm.  With CUCM the digit transformation wildcard patterns are always going to consum digits from right to left.  So, while stripping digits off of the front is straight forward and native, dropping a digit on the tail end isn't possible as far as I know.  If your legacy PBX can't be modified to accomodate the correct dial plan, then you may need to look at using SIP/h323 on your voice gateway (to the cucm).  With these protocols, you have the ability to apply dial-peers and you would then gain the ability to apply translation profiles on ingress calls.  This would need to be tested, but a rule like the following may work (on an h323 gateway)


voice translation-rule 10

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

!

voice translation-profile fixlegacycalled

translate called 10

!



These are my thoughts on the matter at least.


HTH.


Regards,
Bill

Please remember to rate helpful posts.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
William Bell Thu, 05/20/2010 - 05:18
User Badges:
  • Purple, 4500 points or more

Hmmm.  With CUCM the digit transformation wildcard patterns are always going to consum digits from right to left.  So, while stripping digits off of the front is straight forward and native, dropping a digit on the tail end isn't possible as far as I know.  If your legacy PBX can't be modified to accomodate the correct dial plan, then you may need to look at using SIP/h323 on your voice gateway (to the cucm).  With these protocols, you have the ability to apply dial-peers and you would then gain the ability to apply translation profiles on ingress calls.  This would need to be tested, but a rule like the following may work (on an h323 gateway)


voice translation-rule 10

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

!

voice translation-profile fixlegacycalled

translate called 10

!



These are my thoughts on the matter at least.


HTH.


Regards,
Bill

Please remember to rate helpful posts.

Actions

This Discussion