Array command
The Array is a data structure which can store a fixed-size sequential collection of elements. Every Array has an ID which clearly identifies that array and it has an undetermined number of string items. It's really practical when you would like to collect all of your information about every message.
Parameters
Parameter name | Example value | Description | Mandatory |
ID | sampleArray | The ID parameter identifies the array, and can be reached by using this parameter. | yes |
OzML example
The following example is a simple representation, how you can use arrays in an OzML script. The array with the ID 'sampleArray' has two items. You can easily iterate through these items with a Foreach loop, and read them out with the Speak command.
<?xml version="1.0"?> <Response> <array id="sampleArray"> <item>Hello</item> <item>Welcome</item> </array> <ForEach source="sampleArray"> <speak>$item</speak> </ForEach> </Response>
More information
- أمر AttendedTransfer
- أمر BlindTransfer
- أمر Call
- أمر ForwardCall
- أمر ListCallHistory
- أمر Hangup
- أمر Hold
- أمر ListActiveCalls
- أمر ListExtensions
- أمر ListExtensionTypes
- أمر Play
- أمر Record
- أمر Request
- أمر SendDTMF
- Speak
- أمر Unhold
- أمر ReceiveMessage
- أمر SendEmail
- أمر SendMessage
- أمر SendSMS
- أمر Array
- أمر Beep
- أمر Delay
- أمر DeleteFile
- أمر ForEach
- أمر GoTo
- أمر MoveFile
- أمر Reject
- أمر Route
- أمر SendAlarmNotification
- أمر SendMsg
- أمر UserInput
- أمر Var
- أمر WaitForMsg
- أمر CallSetup
- أمر Exit
- ListAddressbokkContacts
- أمر ListAddressbookNames
- ReceiveAlarmNotification