vx_evt_media_stream_updated
Reference the Vivox Core SDK API.
Read time 2 minutesLast updated 20 hours ago
Module: Group Voice and Text Communications Sent when session media has been altered.
#include <VxcEvents.h>Public Attributes
Name | |
|---|---|
| vx_evt_base_t | base The common properties for all events. |
| VX_HANDLE | sessiongroup_handle The handle created for the session group. |
| VX_HANDLE | session_handle The handle created for the session. |
| int | status_code The code used to identify why a state change has been made. |
| char * | status_string Text (in English) to describe the status code. |
| vx_session_media_state | state The new state of the entity. |
| int | incoming Indicates whether this is an incoming call. |
| char * | durable_media_id The durable media identifier used to access value add services. |
| char * | media_probe_server The current media probe server. |
| vx_call_stats_t * | call_stats NULL, except for state session_media_disconnected. |
Public Attributes Documentation
variable base
The common properties for all events.vx_evt_base_t base;
variable sessiongroup_handle
The handle created for the session group.VX_HANDLE sessiongroup_handle;
variable session_handle
The handle created for the session.VX_HANDLE session_handle;
variable status_code
The code used to identify why a state change has been made. This code is only useful if the state is equal to session_media_disconnected. In this case, the following rules apply:int status_code;
-
- Any code < 400 can be ignored.
-
- 401 - A password is needed to join this channel. Typically, an application presents a password dialog at this point. You can retry the request if you obtain a password from the user.
-
- 403 - If the call is to a channel, the user does not have sufficient privilege to join the channel. Otherwise, the call has been declined.
-
- 404 - The destination (either a channel or other user) does not exist.
-
- 408 - The remote user did not answer the call. You can retry the request after a 10s delay.
-
- 480 - The remote user is temporarily offline. You can retry the request after a 10s delay.
-
- 486 - The remote user is busy (on another call). You can retry the request after a 10s delay.
-
- 503 - The server is busy (overloaded). You can retry the request after a 10s delay.
-
- 603 - The remote user has declined the call. The application should only retry a failed request if there is a chance the retry will succeed, as indicated in the preceding list. It is recommended that the status_string field only be displayed as diagnostic information for status codes > 400, and not the codes in the preceding list. This status_string is often generated by the network, which can also include public PSTN networks. This can result in status_string values that are informative to a technician, but not to an end user, and can be subject to change. Applications should not depend on the value of this field. Applications should present an application-specific message for each of the status codes outlined in the preceding list.
variable status_string
Text (in English) to describe the status code. For more information, refer to the vx_evt_media_stream_updated status_code description.char * status_string;
variable state
The new state of the entity. Refer to the codes in table vx_session_media_statevx_session_media_state state;
variable incoming
Indicates whether this is an incoming call.int incoming;
variable durable_media_id
The durable media identifier used to access value add services.char * durable_media_id;
variable media_probe_server
The current media probe server.char * media_probe_server;
variable call_stats
NULL, except for state session_media_disconnected.vx_call_stats_t * call_stats;