Asterisk Dialplan General
Created by: JazEzork,Last modification on Tue 24 of Jul, 2007 [18:26 UTC] by michael.davis
extensions.conf General Settings Section
At the top of the extensions.conf file there should be a section with this label:
[general]
Here you define a few general options regarding the Dialplan.
static: At this stage, this option affects only the operation of the save dialplan command. The default value is no, but the sample extensions.conf installed with Asterisk explicitly sets static=yes.
writeprotect: If writeprotect=no and static=yes, then you may save the current dialplan with the CLI command "save dialplan". (Definitions of global variables in the [globals] category remain unchanged.) The default value is no.
autofallthrough: New in 1.2. From the sample extensions.conf: "If autofallthrough is set, then if an extension runs out of things to do, it will terminate the call with BUSY, CONGESTION or HANGUP depending on Asterisk's best guess (strongly recommended). If autofallthrough is not set, then if an extension runs out of things to do, asterisk will wait for a new extension to be dialed (this is the original behavior of Asterisk 1.0 and earlier)."
clearglobalvars: New in 1.2. From the sample extensions.conf: "If clearglobalvars is set, global variables will be cleared and reparsed on an extensions reload, or Asterisk reload. If clearglobalvars is not set, then global variables will persist through reloads, and even if deleted from the extensions.conf or one if its included files, will remain set to the previous value."
priorityjumping: New in 1.2. From the sample extensions.conf: "if priorityjumping is set to 'yes', then applications that support 'jumping' to a different priority based on the result of their operations will do so (this is backwards compatible behavior with pre-1.2 releases of Asterisk). Individual applications can also be requested to do this by passing a 'j' option in their arguments." (There is currently no documentation detailing what the preferred way of reading return codes is. If you know and/or have time to read the source, please post details here!)
(:exclaim:) "save dialplan" will overwrite your existing extensions.conf with a new one generated from the current dialplan. A copy of your old extensions.conf will not be kept. All comments in your extensions.conf will be lost.
(:exclaim:) Not only is no the default value if unspecified, but the sample extensions.conf installed with Asterisk explicitly sets writeprotect=no and static=yes, thus making your extensions.conf file vulnerable in the default installation.
Example
[general]
static=yes
writeprotect=yes
autofallthrough=yes
clearglobalvars=no
priorityjumping=no
See Also
Asterisk | Configuration | The Dialplan - extensions.conf
Comments
333dialplan testing