Multiple called number remaps
2 posters
Page 1 of 1
Multiple called number remaps
When the number starts with 00 or +, I would like to remove those prefixes -> /^(00|\+)(\d{8,15})$/\2/
When the number starts with 0 as prefix and follows with either 6 or 8, I would like to replace this prefix with 264 -> /^0([6|8]\d{4,9})$/264\1/
Questions:
1. I just want to use one route, how can I add multiple remaps? I.e. in the above stripping on 1 condition and replace upon another
2. Does the remapping the number act as a route filter, i.e. block the call if it doesn't match or just the pass the number as is
When the number starts with 0 as prefix and follows with either 6 or 8, I would like to replace this prefix with 264 -> /^0([6|8]\d{4,9})$/264\1/
Questions:
1. I just want to use one route, how can I add multiple remaps? I.e. in the above stripping on 1 condition and replace upon another
2. Does the remapping the number act as a route filter, i.e. block the call if it doesn't match or just the pass the number as is
paratus- Number of Messages : 8
Point : 14
Registration Date : 2019-07-08
Re: Multiple called number remaps
Hi
You cannot assign multiple regexes in the same route. For your case, you need to create a minimum of two routes with the same incoming and outgoing NAP and different called remapping regex. Remapping number act as a route filter. If it does not match it will drop the call if you don't have an alternative route. For example, you want to send international calls from one specific NAP and others from different NAP from the same incoming destination. In this case, you need to set two routes, first for international call and second for others.
You cannot assign multiple regexes in the same route. For your case, you need to create a minimum of two routes with the same incoming and outgoing NAP and different called remapping regex. Remapping number act as a route filter. If it does not match it will drop the call if you don't have an alternative route. For example, you want to send international calls from one specific NAP and others from different NAP from the same incoming destination. In this case, you need to set two routes, first for international call and second for others.
paratus likes this post
Re: Multiple called number remaps
Two routes required, noted... I tested if remap act as filter and it does not, it just passes the number on no match.
paratus- Number of Messages : 8
Point : 14
Registration Date : 2019-07-08
Similar topics
» Multiple Numbers in one Called Route
» Script - Manipulate called number in the Registered User Route
» Routing script to create a User-to-User Indication (UUI) based on the incoming called number
» Multiple SIP Transport Server using same IP but different port and limit of a maximum number of transport servers in the configuration.
» Is there a higher level presenstation that we could take to a telecom team? We don't need to see all coding. Our enterprise users don't need all the fine tuning. If a number is spoofed, so it looks like a call is coming from a known number, will the ca
» Script - Manipulate called number in the Registered User Route
» Routing script to create a User-to-User Indication (UUI) based on the incoming called number
» Multiple SIP Transport Server using same IP but different port and limit of a maximum number of transport servers in the configuration.
» Is there a higher level presenstation that we could take to a telecom team? We don't need to see all coding. Our enterprise users don't need all the fine tuning. If a number is spoofed, so it looks like a call is coming from a known number, will the ca
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum