GW translation-rule question: match called - modify calling

Answered Question
Mar 6th, 2008
User Badges:

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,


Correct Answer by Paolo Bevilacqua about 9 years 2 weeks 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
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

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
User Badges:
  • Cisco Employee,

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.

Paolo Bevilacqua Thu, 03/06/2008 - 07:19
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

That is exactly what I was saying above in different words :)

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

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
User Badges:
  • Cisco Employee,

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