How to use GoToIF() application in Asterisk?
james_winston 03-September-2008 12:23:21 PM

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



Posted: 04-September-2008 12:02:36 PM By: adalson007

This application is helpful to make dialplan decisions based on variables

Syntax would be GoToIF (expression? destination1:destination2)

Posted: 05-September-2008 08:53:03 AM By: sagitraz

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: 18-September-2009 04:38:53 AM By: crouse

my.safaribooksonline.com/0596009623/asterisk-CHP-6-SECT-3

Posted: 18-September-2009 04:41:08 AM By: crouse

my.safaribooksonline.com/0596009623/asterisk-CHP-6-SECT-3