GoTo command
The GoTo command requests a specified URL (or an SQL query in case of using SQL OzML) and executes the OzML commands received from the URL (or database).
Parameters:
Parameter name | Value | Description | Mandatory |
Url / SQL query |
string value, e.g. - http://yourapp.com/ - select text from table where id = '1' |
URL or SQL query to request for OzML content. This parameter can be provided between the command nodes. | Yes |
OzML simple example:
Continues OzML commands from http://yourapp.com/.
<?xml version="1.0"?> <Response> <GoTo>http://yourapp.com/</GoTo> </Response>
Continues OzML commands from the table database table.
<?xml version="1.0"?> <Response> <GoTo>SELECT text FROM table WHERE id = '1'</GoTo> </Response>
Detailed example:
You can put GoTo commands in an IVR to step to different menupoints.
<?xml version="1.0"?> <Response> <UserInput timeout="10" repeat="true"> <InitialCommands> <Speak>Welcome to the Ozeki Phone System IVR.</Speak> <Speak>To send an SMS, press 1.</Speak> <Speak>To transfer the call to 101, press 2.</Speak> </InitialCommands> <Inputs> <Input key="1"> <GoTo>http://yourapp.com/press1.php</GoTo> </Input> <Input key="2"> <GoTo>http://yourapp.com/press2.php</GoTo> </Input> </Inputs> </UserInput> </Response>
Record command is used in OzML responses to these Api Extension Control notifications:
GoTo, RecordCompleted,
DtmfEntered, SMSDeliveryReport, IncomingSMS,
IncomingCall, CallConnected