Send a directed message
Learn how to send a direct message to a user in the sample application.
Read time 1 minuteLast updated 2 days ago
When you send a directed message (account_send_message in the Vivox SDK), you need to know the URI of the participant, which starts with "sip:" and ends with "@mt1s.vivox.com". The following code displays an example of the user Alice sending a directed message to the user Bob:
Bob sees the message as a user_to_user_message event:[SDKSampleApp]: message -u sip:.xyzzy.bob.@mt1s.vivox.com -m "hey bob"* Sending directed message 'hey bob' to user sip:.xyzzy.bob.@mt1s.vivox.com* Issuing req_account_send_message with cookie=3
* evt_user_to_user_message: .xyzzy.bob. sip:.xyzzy.sa_c78d1595.@mt1s.vivox.com - hey bob