cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
425
Views
5
Helpful
5
Replies

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

paolo bevilacqua
Hall of Fame
Hall of Fame

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!

View solution in original post

5 Replies 5

paolo bevilacqua
Hall of Fame
Hall of Fame

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!

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.

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

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

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

Regards,

Michael.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: