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