Asterisk Dialplan General

extensions.conf General Settings Section

At the top of the extensions.conf file there should be a section with this label:


Here you define a few general options regarding the Dialplan.

static: At this stage, this option affects only the operation of the "dialplan save"(Asterisk 1.6) or "save dialplan"(Asterisk 1.4) 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 "dialplan save". (Definitions of global variables in the [globals] category remain unchanged.) The default value is no but the sample extensions.conf installed with Asterisk explicitly sets writeprotect=no and static=yes.
"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.

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!)



See Also

Asterisk | Configuration | The Dialplan - extensions.conf

If you are not so familiar with Asterisk dialplan syntax, dialplan priorities, or you simply do not prefer coding using text editors, you may find Visual Dialplan for Asterisk useful tool for your dialplan development. Visual Dialplan for Asterisk is modern rapid application development platform for Asterisk dialplan development, it provides similar interface and approach like Visual Basic provides for rapid application development and comes with real world dialplan examples (extensions.conf files that can be used without visual dialplan) .

Download Visual Dialplan for Asterisk

Created by: JazEzork, Last modification: Tue 28 of Dec, 2010 (23:58) by hamf
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+