Aplicações do Dialplan do Asterisk 20
Comando:
Goto()
Sinopse:
Jump to a particular priority, extension, or context.
Descrição:
This aplicação will set the current context, extension, and priority in the canal 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 aplicação 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 canal and call will be terminated.
If the location that is put into the canal 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 canal is hung up, and the execution of instructions on the canal 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!
Goto([[context,]extension,]priority)
context extension priority
Dialplan aplicações GotoIf Dialplan aplicações GotoIfTime Dialplan aplicações Gosub Dialplan aplicações Macro
This documentation was generated from Asterisk branch 20 using version GIT
Sintaxe:
Goto([[context,]extension,]priority)
Veja Também:
Fonte: Asterisk Wiki