Under certain circumstances it may be required that the fax server implements a regular expression to transform numbers.
Support Fax Number Transformation via Regular expression Rules.
Rules are defined in the msXfaxboot.ini under section [DMZ-FaxNo-Transformation]. Rules are executed in sequence 1-N and have a specific format DMZ-Outbound-RuleN-str=DestinationDomain:xxxxx InputRegEx:yyyyy OutputRegEx:zzzzz
where xxxx can be the reserved word 'all' to be applied to all destination domains or a specific destination domain e.g test.fax,
yyyyy can be any regular expression e.g +61(.*) to match an outbound faxnumber in this case it would match on a fax number +61299720113 and zzzzz is the corresponding regular expression e.g. 01 to be applied to the matched group. In this case the matched group would be 299720113 and the outputRegEx requires a 0 to be set as the prefix to the matched group, so the transformed number would be 0299720113.
The transformed number 0299720113 would be passed onto the next rule for processing and so on.
By default the following section and rules are created on a virgin or upgraded system.
DMZ-Outbound-UseFaxNoTransformationTable-int must be set to 1 for rules to be processed, by default rules processing is turned off.
DMZ-Outbound-Rules-int must be set to the number of rules created. Setting Debug-LoggingActive-int=1 in the msxfaxboot.ini
and restarting services will log rules processing in detail in the DMZ-TXmsXfaxDispatcherDMZ log.
[DMZ-FaxNo-Transformation]
DMZ-Outbound-UseFaxNoTransformationTable-int=1
DMZ-Outbound-Rules-int=3
DMZ-Outbound-Rule1-str=DestinationDomain:All InputRegEx:+61(.*) OutputRegEx:01
DMZ-Outbound-Rule2-str=DestinationDomain:All InputRegEx:+(.*) OutputRegEx:00111
DMZ-Outbound-Rule3-str=DestinationDomain:All InputRegEx:(.*) OutputRegEx:1