Unfortunately, this is in the realm of 911 so I don’t want to monkey around and dial something by mistake. And my test system is down right now (had to disassemble my bench, as my wife said it needs to be a bedroom for the grandkids for the next few days). So … research.
I have a working sysem. The first block on my outbound routs is for Emergency, and transforms all the emergency variations correctly.
911 → 911
988 → 988
9-911 → 911
1-911 → 911
9-1-911 → 911
Why someone would dial a 1 in there I dunno, but …
Now a senior person says “we have a lot of folks of British origin here… what if one of them, in a panic, dials 999 instead of 911? We should be able to handle this.” Sigh.
OK, The full match pattern is the Prefix plus the pattern string, so maybe I could put 999 in the prefix, and nothing in the pattern. And put 911 in the prepend. In theory, “999 and nothing” would get matched, the 999 would get stripped, and “911 and nothing” would get sent to the trunk.
Do I have this figured out right?
I’d probably test this by putting my cellphone number in the Prepend, 999 in the Prefix, nothing in the pattern string, and see if my cellphone rings. Or if FreePBX chokes.
Or am I approaching this incorrectly?