Jump to a particular priority, extension, or context.
This application will set the current context, extension, and priority in the channel structure. After it completes, the pbx engine will continue dialplan execution at the specified location. If no specific extension, or extension and context, are specified, then this application will just set the specified priority of the current extension.
At least a priority is required as an argument, or the goto will return a
-1,and the channel and call will be terminated.
If the location that is put into the channel information is bogus, and asterisk cannot find that location in the dialplan, then 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
i extensions have been defined, the channel is hung up, and the execution of instructions on the channel is terminated. What this means is that, for example, you specify a context that does not exist, then it will not be possible to find the
i extensions, and the call will terminate!
- Asterisk 12 Application_GotoIf
- Asterisk 12 Application_GotoIfTime
- Asterisk 12 Application_Gosub
- Asterisk 12 Application_Macro
This documentation was imported from Asterisk Version Unknown