Removing DID digits in SRST Mode

Unanswered Question
Dec 16th, 2009
User Badges:



/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table 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:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; 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;}

I'm getting 8 digits from the Telco and we use 7, I'm having a hard time finding out how to remove the first digit.


Example - incoming DID number 47111309 extension number 7111309


Thanks for the help

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
asandborgh Wed, 12/16/2009 - 07:47
User Badges:
  • Silver, 250 points or more

Hi,


Use a voice translation-rule/profile and applyy it to an inbound dial-peer that is catching the DID or directly to the port (although this will trim it to 7 digits even when you are not in SRST).


Something like this:


voice translation-rule 1

rule 1 /4711..../ /711..../


voice translation-profile indid

translate called 1


dial-peer voice 1000 pots

incoming called .

direct-inward-dialing

translation-profile in indid



HTH


Art

spatrick73 Wed, 12/16/2009 - 07:52
User Badges:

I have tried that but I'm getting an error



(cfg-translation-rule)#rule 1 /4711..../ /711..../
                                                       ^
% Invalid input detected at '^' marker.

asandborgh Wed, 12/16/2009 - 07:56
User Badges:
  • Silver, 250 points or more

Duh!


Sorry I'm rusty..


Try


rule 1 /4711\(....\)/  /711\1/


Art

asandborgh Wed, 12/16/2009 - 08:25
User Badges:
  • Silver, 250 points or more

np - glad to hear it helped


Cheers!


Art

Actions

This Discussion

Related Content