I have an outbound route for emergency calls where if pattern matches 999, I would also like to add 101 and 111 in that pattern but without having to add 2 extra rows of rules. Is it possible to create a single rule to cover all 3 of those patterns?
Are you trying to dial those numbers but separately? What would be the trigger to either replace the digits or insert them? It can be done easily on the extensions_custom using GotoIf
It would take you many more than than two extra lines in your outbound route list to do that with a custom extension , is it a problem typing those extra routes, or do you have other concerns?
Asterisk has a rather rudimentary understanding of regex’s so I suggest you just go with the two extra lines.