This dial plan entry will look for a pattern ending in a pound symbol and use this as the user name in a SIP URI (not including the pound symbol).
|
|
This pattern requires that the user presses the Ok key in order to start the call.
Example 1:
If the phone number has digits between 3 and 6 then use an area code:
|
Example 2:
Use an area code all the time:
|
The following dial plan entry could be used:
|
This pattern will look for a number starting with 1 and followed by ten digits. It will replace it with a URI that contain the hint to try an ENUM lookup first before sending it to the proxy.
This is a little bit more difficult because of the number of allowed characters in the user name. The following character can be base for such a dial plan entry
|
This is sometimes desired e.g. a plan is needed to add a leading 0 to an outgoing number not starting with 0 e.g. 3039833104 should be dialled as 03039833104 but not 03039833104 be converted to 003039833104. One could use the following for this purpose:
|
But if a start code is followed by a destination e.g. *7939833452, it is not desired to convert it to 07939833452, because the pbx is expected to get the whole string and use it accordingly. Hence we can concatenate a plan to the one above to look after such exceptions:
|
Separated by the exclamation mark, it contains the pattern for the 911 and the resulting SIP URI. The d flag indicates that there is no need to press the Ok key after dialling this number.
If a number starts with 9 and has at least 8 further digits then use a leading Zero
|
If a number has 2 digits don't use a leading zero. When more than 2 digits use the leading zero
|
To concatenate dialplans just write them one after another including "" quotes. You will get after concatenating the above two dialplans.
|
|
|
To allow only calls to numbers with 9 at the beginning. All other numbers will be blocked.
|