Asterisk Project : Asterisk 11 Application_Goto This page last changed on Jul 20, 2012 by wikibot. # Goto() ### Synopsis Jump to a particular priority, extension, or context. ### Description 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 `h` nor `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 `h` or `i` extensions, and the call will terminate! ### Syntax
    Goto(context,extensions,priority)
##### Arguments `context` `extensions` `priority` ### See Also Asterisk 11 Application_GotoIf Asterisk 11 Application_GotoIfTime Asterisk 11 Application_Gosub Asterisk 11 Application_Macro ### Import Version This documentation was imported from Asterisk Version SVN-trunk-r370328

Document generated by Confluence on Nov 02, 2012 17:42