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