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 command
- BlindTransfer command
- Call command
- ForwardCall command
- ListCallHistory command
- Hangup command
- Hold command
- ListActiveCalls command
- ListExtensions command
- ListExtensionTypes command
- Play command
- Record command
- Request command
- SendDTMF command
- Speak
- Unhold command
- ReceiveMessage command
- SendEmail command
- SendMessage command
- SendSMS command
- Array command
- Beep command
- Delay command
- DeleteFile command
- ForEach command
- GoTo command
- MoveFile command
- Reject command
- Route command
- SendAlarmNotification command
- SendMsg command
- UserInput command
- Var command
- WaitForMsg command
- CallSetup command
- Exit command
- ListAddressbokkContacts
- ListAddressbookNames command
- ReceiveAlarmNotification