Basic configuration of the GXW410x with Asterisk Please note that due to the customizable nature of both the GXW410x and Asterisk and the vast deployment possibilities, these instructions should be taken as a basic tutorial sample of getting the GXW410x to work with Asterisk. Your implementation may be customized and differ from. Dec 23, 2014 When dealing with Asterisk, the term extension does not represent a physical device such as a phone. An extension is simply a set of actions in the dialplan which may or may not write a physical device. In addition to writing a phone, an extensions might be used for such things auto-attendant menus and conference bridges.
Skip to end of metadataGo to start of metadataHere we'll list all of the special built-in dialplan extensions and their usage.
IconOther than special extensions, there is a special context 'default' that is used when either a) an extension context is deleted while an extension is in use, or b) a specific starting extension handler has not been defined (unless overridden by the low level channel interface).
a: Assistant extension
This extension is similar to the o extension, only it gets triggered when the caller presses the asterisk (*) key while recording a voice mail message. This is typically used to reach an assistant.
e: Exception Catchall extension
This extension will substitute as a catchall for any of the 'i', 't', or 'T' extensions, if any of them do not exist and catching the error in a single routine is desired. The function EXCEPTION may be used to query the type of exception or the location where it occurred.
h: Hangup extension
When a call is hung up, Asterisk executes the h extension in the current context. This is typically used for some sort of clean-up after a call has been completed.
i: Invalid entry extension
If Asterisk can't find an extension in the current context that matches the digits dialed during the Background() or WaitExten() applications, it will send the call to the i extension. You can then handle the call however you see fit.
o: Operator extension
If a caller presses the zero key on their phone keypad while recording a voice mail message, and the o extension exists, the caller will be redirected to the o extension. This is typically used so that the caller can press zero to reach an operator.
s: Start extension
When an analog call comes into Asterisk, the call is sent to the s extension. The s extension is also used in macros.
Please note that the s extension is not a catch-all extension. It's simply the location that analog calls and macros begin. In our example above, it simply makes a convenient extension to use that can't be easily dialed from the Background() and WaitExten() applications.
t: Response timeout extension
When the caller waits too long before entering a response to the Background() or WaitExten() applications, and there are no more priorities in the current extension, the call is sent to the t extension.
T: Absolute timeout extension
This is the extension that is executed when the 'absolute' timeout is reached. See 'core show function TIMEOUT' for more information on setting timeouts.
Skip to end of metadataGo to start of metadataSynopsis
Conditional goto.
Description
This application will set the current context, extension, and priority in the channel structure based on the evaluation of the given condition. After this application completes, the pbx engine will continue dialplan execution at the specified location in the dialplan. The labels are specified with the same syntax as used within the Goto application. If the label chosen by the condition is omitted, no jump is performed, and the execution passes to the next instruction. If the target location is bogus, and does not exist, the execution engine will try to find and execute the code in the
i
(invalid) extension in the current context. If that does not exist, it will try to execute the h
extension. If neither the h
nor i
extensions have been defined, the channel is hung up, and the execution of instructions on the channel is terminated. Remember that this command can set the current context, and if the context specified does not exist, then it will not be able to find any 'h' or 'i' extensions there, and the channel and call will both be terminated!.Syntax
Arguments
condition
destination
labeliftrue
- Continue at labeliftrue if the condition is true. Takes the form similar to Goto() of [[context,]extension,]priority.labeliffalse
- Continue at labeliffalse if the condition is false. Takes the form similar to Goto() of [[context,]extension,]priority.
See Also
Import Version
This documentation was imported from Asterisk Version SVN-branch-1.8-r418641