Label Routing and Regex
2 posters
Page 1 of 1
Label Routing and Regex
Hi,
Say I want to use label routing for local numbers and I have uploaded a digitmap containing something like:
1519123
1519456
Can I have numbers such as '519123...' or '519456' match those as well (ie. numbers without leading one)?
Or do I have to put each number prefix with and without the leading one in the digit map?
I tried to use regex for the Calling parameter (ie. /^1?[0-9]*$/) in the route but that doesn't work since I think it has to match both the digit map and the regex to match this.
I found the script 'called_pre_remap.rb' and the called_pre_remap NAP column. Will this help me?
Thanks
Edit:
I think I got called_pre_remap working but if I set the regex in the called_pre_remap NAP column, it remaps only when a call is incoming from this NAP. I think I want to remap only when a call is outgoing to a certain NAP.
Say I want to use label routing for local numbers and I have uploaded a digitmap containing something like:
1519123
1519456
Can I have numbers such as '519123...' or '519456' match those as well (ie. numbers without leading one)?
Or do I have to put each number prefix with and without the leading one in the digit map?
I tried to use regex for the Calling parameter (ie. /^1?[0-9]*$/) in the route but that doesn't work since I think it has to match both the digit map and the regex to match this.
I found the script 'called_pre_remap.rb' and the called_pre_remap NAP column. Will this help me?
Thanks
Edit:
I think I got called_pre_remap working but if I set the regex in the called_pre_remap NAP column, it remaps only when a call is incoming from this NAP. I think I want to remap only when a call is outgoing to a certain NAP.
jmross- Number of Messages : 9
Point : 19
Registration Date : 2020-03-06
Re: Label Routing and Regex
You can find the details about label routing in the following link;
https://docs.telcobridges.com/tbwiki/Label_Routing
If you set 1519123 in the digitmap file, only the numbers start with 1519123 will match. For example;
1519123 --> will match
15191234 --> will match
519123 --> will not match
Digitmap file does not allow you to use any regex.
called_pre_remap.rb: Filter module that pre-remap the called number, before routing takes place.
You can find all the details about the scripts when you open the script.
https://docs.telcobridges.com/tbwiki/Label_Routing
If you set 1519123 in the digitmap file, only the numbers start with 1519123 will match. For example;
1519123 --> will match
15191234 --> will match
519123 --> will not match
Digitmap file does not allow you to use any regex.
called_pre_remap.rb: Filter module that pre-remap the called number, before routing takes place.
You can find all the details about the scripts when you open the script.
Similar topics
» can we do a regex expression in the call trace?
» MS Teams Routing
» SIP - Domain Routing
» Using Regular expression on routing
» Routing Script Tutorial
» MS Teams Routing
» SIP - Domain Routing
» Using Regular expression on routing
» Routing Script Tutorial
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|