pbx : dialplan
 
dialplan
Use this command to add a dial plan and add rules to the dial plan. A dial plan rule indicates an outgoing destination to send calls to. You can add multiple rules to a dial plan. You add dial plans to extensions to control how to handle outgoing calls from the extension.
Syntax
config pbx dialplan
edit <pbx_dialplan_name>
set comments <comment_string>
config rule
edit <rule_name_str>
set action {allow | block}
set callthrough {fxo1 | fxo2 | fxo3 | fx04 | <voip_providers>}
set outgoing-prefix <pattern_str>
set phone-no-beginwith <patern_str>
set prepend <pattern_str>
set use-global-outgoing-prefix {no | yes}
end
end
Variables
Description
Default
edit <pbx_dialplan_name>
Enter the name for the dial plan. If you entering an existing dial plan, select Tab to get to the dial plan that you want to edit.
No default
comments <comment_string>
Optionally enter a description of the dial plan.
No default
config rule
Configure a new dial plan rule.
No default
edit <rule_name_str>
Enter the name of the dial plan rule to configure.
No default
action {allow | block}
Set the action to allow if this dial plan rule should allow a call. Set the action to block if the dial plan should block a call. For example, if you want to block international calls you could set the Phone Number begin with to 011 and set the action to block.
No default
callthrough {fxo1 | fxo2 | fxo3 | fx04 | <voip_providers>}
Select one or more destinations that the dial plan rule sends outgoing calls to. fxo1, fxo2, fxo3, and fx04 are the 4 PSTN interfaces. <voip_providers> are the VoIP providers added to the FortiGate Voice. A dial plan rule can send calls to one or more destinations.
No default
outgoing-prefix <pattern_str>
If you set use-global-outgoing-prefix to no you can enter a different outgoing prefix for this dial plan.
null
phone-no-beginwith <patern_str>
Enter the leading digits of the phone number that this dial plan rule should match with. For example, a dial plan rule for toll free numbers in North America should begin with 18. The FortiGate Voice uses a best match to match a dialed number with a dial plan. So each dial plan should have a different Phone number Begin with setting. But you should plan your dial plan to make sure that unexpected matches do not occur.
null
prepend <pattern_str>
Add digits that should be prepended or added to the beginning of the dialed number before the call is forwarded to its destination. You can prepend digits at the beginning of a call of special dialing is required to reach and external phone system.
null
use-global-outgoing-prefix {no | yes}
Select yes if the dial plan rule should use the default outgoing prefix (usually 9). Select no to add a different outgoing-prefix.
yes