Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

GW translation-rule question: match called - modify calling

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,

1 ACCEPTED SOLUTION

Accepted Solutions
Hall of Fame Super Gold

Re: GW translation-rule question: match called - modify calling

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!

5 REPLIES
Hall of Fame Super Gold

Re: GW translation-rule question: match called - modify calling

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!

Cisco Employee

Re: GW translation-rule question: match called - modify calling

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.

Hall of Fame Super Gold

Re: GW translation-rule question: match called - modify calling

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

New Member

Re: GW translation-rule question: match called - modify calling

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

Cisco Employee

Re: GW translation-rule question: match called - modify calling

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

Regards,

Michael.

135
Views
5
Helpful
5
Replies