Administrator Guides EN Owner's manual

Routing Rules
41-001391-00 Rev 03 – 04.2012 7-7
Local Regular Expression Rules
Local regular expression rules, or Local Regex Rules, allow for the advanced routing of calls that are received at the local
regex rules box in the call model diagram below.
Local Regular Expression Rules are consulted by the Location Lookup if the URL was within the administrative domain, but
the username part of the URL did not match any local users and was not a telephony URL (i.e. with “;user=phone” parame-
ter). This can be used for example to rewrite URLs containing only numbers as the username, to be telephony URLs by
appending a “;user=phone” parameter. Typically, these rules will also be used to alter phone numbers as per the regular
expression examples above, since these are URLs that are considered to be the responsibility of the proxy to resolve.
If a rule is matched to a URL, the Location Lookup procedure is restarted with the new rewritten URL. It is therefore possi-
ble to have several rules work in conjunction, e.g. one rule rewrite certain 4 digit number to prepend an area code, another
rule could rewrite 7 digit numbers to 10 digit numbers, and another rule can rewrite 10 digit numbers with certain area
code prefixes to include a code to dial outside lines. In this way, it is possible for certain 4 digit numbers to end up being 10
digit numbers with outside line codes prepended after a number of recursions through the Location Lookup procedure.
Testing Rule
Enter the rule to be tested to make sure it is working correctly, i.e. a string matching one of the rules is correctly con-
verted to the expected “replacement string”. The test fails if no rule matches.