SendMsg command
The SendMsg command can send a message to a specified connection. For example, you can send the message to an e-mail connection, that will forward this message to the specified address.
Parameters
Parameter name | Example value | Description | Mandatory |
Text | Hello world! | The content of the sent message. | yes |
ToAddress | test.ozeki@gmail.com | Some connections require a 'ToAddress' parameter. For example, the Gmail client connection sends the contents of the message to the email address provided here. | no |
ToConnection | gmail_client_1@localhost | It determines the connection where the message will be sent. | yes |
OzML example
This simple example is about to send an e-mail message to test.ozeki@gmail.com. So, first, the message will be routed to the connection, that you provided in the ToConnection attribute. Then this connection will send the message to the given address.
<?xml version="1.0"?> <Response> <SendMsg ToConnection="gmail_client_1@localhost" ToAddress="test.ozeki@gmail.com">Hello world!</SendMsg> </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