@billsimon
Hmm. It actually is causing an endless loop… actually, oh dear.
It’s taking priority over all other matches and endlessly looping, first.
Wound up playing with the regex a bit. Eventually expanded it to multiple lines to address international calling.
Current version (Edited for clarity):
[from-internal-custom]
exten => _[\ ()].,1,NoOp(Found an extension with spaces and parens, filtering)
same => n,Goto(from-internal,${FILTER(0-9,${EXTEN})},1)
exten => _X[\ ()].,1,NoOp(Found an extension with spaces and parens, filtering)
same => n,Goto(from-internal,${FILTER(0-9,${EXTEN})},1)
exten => _XX[\ ()].,1,NoOp(Found an extension with spaces and parens, filtering)
same => n,Goto(from-internal,${FILTER(0-9,${EXTEN})},1)
exten => _XXX[\ ()].,1,NoOp(Found an extension with spaces and parens, filtering)
same => n,Goto(from-internal,${FILTER(0-9,${EXTEN})},1)
exten => _XXXX[\ ()].,1,NoOp(Found an extension with spaces and parens, filtering)
same => n,Goto(from-internal,${FILTER(0-9,${EXTEN})},1)
exten => _XXXXX[\ ()].,1,NoOp(Found an extension with spaces and parens, filtering)
same => n,Goto(from-internal,${FILTER(0-9,${EXTEN})},1)
exten => _XXXXXX[\ ()].,1,NoOp(Found an extension with spaces and parens, filtering)
same => n,Goto(from-internal,${FILTER(0-9,${EXTEN})},1)
exten => _XXXXXXX[\ ()].,1,NoOp(Found an extension with spaces and parens, filtering)
same => n,Goto(from-internal,${FILTER(0-9,${EXTEN})},1)
exten => _XXXXXXXX[\ ()].,1,NoOp(Found an extension with spaces and parens, filtering)
same => n,Goto(from-internal,${FILTER(0-9,${EXTEN})},1)
exten => _XXXXXXXXX[\ ()].,1,NoOp(Found an extension with spaces and parens, filtering)
same => n,Goto(from-internal,${FILTER(0-9,${EXTEN})},1)
exten => _XXXXXXXXXX[\ ()].,1,NoOp(Found an extension with spaces and parens, filtering)
same => n,Goto(from-internal,${FILTER(0-9,${EXTEN})},1)
exten => _XXXXXXXXXXX[\ ()].,1,NoOp(Found an extension with spaces and parens, filtering)
same => n,Goto(from-internal,${FILTER(0-9,${EXTEN})},1)
exten => _XXXXXXXXXXXX[\ ()].,1,NoOp(Found an extension with spaces and parens, filtering)
same => n,Goto(from-internal,${FILTER(0-9,${EXTEN})},1)
exten => _XXXXXXXXXXXXX[\ ()].,1,NoOp(Found an extension with spaces and parens, filtering)
same => n,Goto(from-internal,${FILTER(0-9,${EXTEN})},1)
Works well, it’s ugly but Asterisk does not support leading fuzzy matches so I’m unsure of how to reduce it down.
@danielf
I tried your solution, as it seems much more succinct.
However, it kept failing with the original “Bad Extension” error. I placed your solution in the “extensions_custom.conf” file - should it have gone somewhere else?
Conversationally speaking, why wouldn’t freepbx come with this built-in?
I didn’t have an issue with it until I started using their ZULU UC softphone - all other softphones automatically stripped whitespace/parens.
When I spoke to Sangoma, they insisted it was not their app, and I needed to have my configuration audited by them for where I had screwed something up. (Which I found ridiculous as I haven’t modified any dialplans …)
Thank you so much for getting me on the right path!
Sene