03-06-2008 06:19 AM - edited 03-15-2019 09:16 AM
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,
Solved! Go to Solution.
03-06-2008 06:24 AM
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!
03-06-2008 06:24 AM
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!
03-06-2008 07:17 AM
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.
03-06-2008 07:19 AM
That is exactly what I was saying above in different words :)
03-06-2008 07:21 AM
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
03-06-2008 07:52 AM
Looks good, except the profile should be applied in the inbound direction. The direction is from the perspective of the gateway.
Regards,
Michael.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide