Create a DialPlan Rule
1. Please go to the [Dial Plan] -> [New Rule] page.
2. Enter the following rule.
----------------------------
[Matching Pattern:]
$request = ^INVITE
To = sip:(.+)@
$alias.lookup("%1") = (.+)
[Deploy Pattern:]
To = sip:%2@
----------------------------
The “$alias” is the plug-in name for Alias function.
The “lookup()” is the method name for looking the definition up.
3. Push [Save] button.