#include <sipXtapiEvents.h>
This information is passed as part of the sipXtapi callback mechanism. Based on the SIPX_EVENT_CATEGORY, the application developer should cast the pInfo member of your callback to the appropriate structure.
Data Fields | |
size_t | nSize |
Size of the structure. | |
SIPX_MEDIA_EVENT | event |
Media event identifier. | |
SIPX_MEDIA_CAUSE | cause |
Media cause identifier. | |
SIPX_MEDIA_TYPE | mediaType |
Media type: Either MEDIA_TYPE_AUDIO or MEDIA_TYPE_VIDEO. | |
SIPX_CALL | hCall |
Associate call (or SIPX_CALL_NULL if not associated with a call). | |
SIPX_CODEC_INFO | codec |
Negotiated codec; only supplied on MEDIA_LOCAL_START and MEDIA_REMOTE_START events. | |
int | idleTime |
Idle time (ms) for SILENT events; only supplied on MEDIA_REMOTE_SILENT events. | |
SIPX_TONE_ID | toneId |
DTMF tone received from remote party; only supplied on MEDIA_REMOTE_DTMF_START and MEDIA_REMOTE_DTMF_STOP events). |
size_t SIPX_MEDIA_INFO::nSize |
Size of the structure.
Media event identifier.
See SIPX_MEDIA_EVENT for more information.
Media cause identifier.
See SIPX_MEDIA_CAUSE for more information.
Media type: Either MEDIA_TYPE_AUDIO or MEDIA_TYPE_VIDEO.
Associate call (or SIPX_CALL_NULL if not associated with a call).
Negotiated codec; only supplied on MEDIA_LOCAL_START and MEDIA_REMOTE_START events.
Idle time (ms) for SILENT events; only supplied on MEDIA_REMOTE_SILENT events.
DTMF tone received from remote party; only supplied on MEDIA_REMOTE_DTMF_START and MEDIA_REMOTE_DTMF_STOP events).
Note: Only out-of-band DTMF is supported (not in-band DTMF or dialtone detection, etc.)