Asterisk IP PBX Learning Tutorials - Part 6
Here is video number 5: Using Contexts and Dial Plans - Part 2
Contexts and dialplan Part 2
Ok, moving to next context which is called “incoming-calls-wildcard”. Lets imagine situation when you have, say, hundreds of extensions, and writing rules for each one of them can take really much time. In this case wildcards are coming to save us.
Lets take a look at single rule with 2 steps in “incoming-calls-wildcard” context, as you can see I have changed last digit of dialled extension to capital “X”, which is any number from 1 to 9 and 0. But you also have to tell asterisk that this rule contains wildcard, you do it with putting subscribe sign in the beginning. But how can we tell asterisk what to dial when we have wildcards in our rules? We use built-in variables, one of them is ${EXTEN}. This is the way all variables are referenced in asterisk – dollar sign, opening curly bracket, variable name and closing curly bracket. [Read more →]