Outbound rules¶
Rules for permitted outbound calls can be created in this section.
Rules can be defined as a:¶
- pattern (a certain syntax is required - patterns must begin with underlines . E.g.: _0XXXXXXXXX).)
- regular phone number, containing as many digits as possible (E.g.: 0727123456)
Exten is the actual number dialed via external trunk:¶
- ${EXTEN} - Will dial the same number
- ${EXTEN:2} - Will strip first two characters from the dialed number
- 0720000${EXTEN} - Will add 0720000 prefix to the dialed number
- 1234567 - Will dial 1234567 only
Pattern mathcing rules¶
- X matches any digit from 0-9
- Z matches any digit from 1-9
- N matches any digit from 2-9
- [1237-9] matches any digit or letter in the brackets
- [a-z] matches any lower case letter (introduced in which Asterisk version?)
- [A-Z] matches any UPPER case letter (introduced in which Asterisk version?)
- . wildcard, matches one or more characters
- ! wildcard, matches zero or more characters immediately
How to restrict an Outbound route:¶
The Deny ID field (optional) is used together with the OUTBOUND_DENY variable associated with the user (go to PBX/Users/Edit User).
To ban a route for certain users, set Deny ID, then set OUTBOUND_DENY for each user separately.
Examples - Rules for international outbound routes:¶
1. Patterns created for each country, for a more granular management of the outbound routes:
2. Unique pattern that allows international numbers to be dialed:
_!XXXXXXXXX!
Available in other languages: RO
Go to top