Remove leaving * from Voip Dial peer

Answered Question
Nov 19th, 2008

We have an h323 gateway setup with a Voip dial peer that has a destination pattern that look like the following:

destination-pattern *61.. is there a way that I can remove the * before it sends the digits.

I have this problem too.
0 votes
Correct Answer by Brandon Buffin about 8 years 2 months ago

Sorry, * is a wildcard in translation rules. Try this:

rule 1 /^\*61/ /61/

Hope this helps.

Brandon

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Brandon Buffin Wed, 11/19/2008 - 07:51

Yes, you can do this with a translation rule.

voice translation-rule 1

rule 1 /^*61/ /61/

voice translation-profile 1

translate called 1

dial-peer voice 1 voip

destination-pattern *61..

translation-profile outgoing 1

Hope this helps If so, please rate the post.

Brandon

wbarren Wed, 11/19/2008 - 08:00

I had tried something like this and the router kicks back an error

rule 2 /^*61//61/ ?% *+ operand could be empty

Looks like it is treating the * like a wild card.

Correct Answer
Brandon Buffin Wed, 11/19/2008 - 08:08

Sorry, * is a wildcard in translation rules. Try this:

rule 1 /^\*61/ /61/

Hope this helps.

Brandon

Actions

This Discussion