GW translation-rule question: match called - modify calling

Answered Question
Mar 6th, 2008

Does anyone know if it is possible to modify the calling number type based on a match on the called number?

Example:

Calling number: 46701234567 (Type: International)

Called number: 98089512345 (Type: Unknown)

The calling number type should be changed to 'Unknown' if the called number matches with the regular expression ^980895.*

Thanks,

I have this problem too.
0 votes
Correct Answer by Paolo Bevilacqua about 8 years 8 months ago

No, that is not possible with a translation-rule.

However, you can use an incoming DP to prefix the called number with somethign in order to route the call out to a designated outgoing DP, where the correct type is applied.

Hope this helps, please rate post if it does!

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
Correct Answer
Paolo Bevilacqua Thu, 03/06/2008 - 06:24

No, that is not possible with a translation-rule.

However, you can use an incoming DP to prefix the called number with somethign in order to route the call out to a designated outgoing DP, where the correct type is applied.

Hope this helps, please rate post if it does!

Michael Owuor Thu, 03/06/2008 - 07:17

An alternative option might be to use a dial-peer with 'incoming called-number 980895.....' to match on the inbound leg of the call, and then apply a voice translation profile to that dial-peer to set the calling number type to 'Unknown'.

Regards,

Michael.

therealstargazer Thu, 03/06/2008 - 07:21

Thanks Paolo & Michael, that might just work.

Something like this?

voice translation-rule 1

rule 1 // // type any unknown

voice translation-profile MODIFY

translate calling 1

dial-peer voice 20 pots

translation-profile outgoing MODIFY

incoming called number 980895.T

direct-inward-dial

forward digits all

port 0/0/0:15

Michael Owuor Thu, 03/06/2008 - 07:52

Looks good, except the profile should be applied in the inbound direction. The direction is from the perspective of the gateway.

Regards,

Michael.

Actions

This Discussion