Comments
my.safaribooksonline.com/0596009623/asterisk-CHP-6-SECT-3
Posted by crouse
my.safaribooksonline.com/0596009623/asterisk-CHP-6-SECT-3
Posted by crouse
Asterisk cmd Goto
Synopsis
Jump to a particular priority, extension, or context
Description
Goto([[context|]extension|]priority)
Set the priority to the specified value, optionally setting the extension and optionally the context as well. The extension BYEXTENSION is special in that it uses the current extension, thus permitting you to go to a different context, without specifying a specific extension. Please note that the LEADING arguments to Goto() are optional, not the trailing arguments.
Variants
Goto(context,extension,priority)
Goto(extension,priority)
Goto(priority)
Goto(context,extension,label)
Goto(extension,label)
Goto(label)
Note
Inserting a space after commas separating the parameters will result in unexpected results.
e.g.
Goto(confexisting, 1, 1)
will look for an extension " 1", i.e. with a preceding space character.
Posted by sagitraz
This application is helpful to make dialplan decisions based on variables
Syntax would be GoToIF (expression? destination1:destination2)
Posted by adalson007