Hi!
Is possible to define the dialplan match from a VARIABLE?
Example:
I set the global variable: STATIONS_FORMAT=’_XXX’
Can I create a dialplan something like this?
...
exten=>${STATION_FORMAT},1,Answer()
exten=>${STATION_FORMAT},n,Dial(SIP/${EXTEN})
...
??
I made this question because, somethimes we need to configure a client PBX that use extensions with 3 digits, like: 221. But other times we need to setup a configuration that work with extensions with 4 digits, like: 2421.
What can be possibles alternatives to do this? Or… I have to edit the FULL FULL dialplan to make it match the numbers of extensions I want?