Represents an SDP message. The MCC_SDP structure contains session level information for the message, and pointers to other SDP structures that further describe the message.
MCC_SDP is the only structure returned directly by mccReadSDP.
typedef struct _MCC_SDP
{
const char * info;
const char * username;
const char * name;
uint32_t id;
uint32_t version;
MCC_SDP_ADDRESS * origin;
MCC_SDP_ADDRESS * connection;
MCC_SDP_ATTRIBUTE * attr;
MCC_SDP_RTPMAP * rtpmap;
MCC_SDP_MEDIA * media;
} MCC_SDP;
Field |
Type |
Description |
SDP field |
Required/ |
info |
const char |
Information about the session. |
i |
Optional |
username |
const char |
Session origin user name. |
o |
Required |
name |
const char |
Session name. |
s |
Required |
id |
uint32_t |
Session identifier. |
o |
Required |
version |
uint_t |
Session version. |
o |
Required |
origin |
Session origin address. |
o |
Required |
|
connection |
Pointer to the session-level connection address as defined by the MCC_SDP_ADDRESS structure. The value of this field is 0 if there is no session-level connection address associated with this SDP message. If a session-level connection address is not present, then media-level connection addresses must be present. |
c |
Optional |
|
attr |
Pointer to the first session-level general attribute as defined by the MCC_SDP_ATTRIBUTE structure. The value of this field is 0 if there are no session-level general attributes associated with this SDP message. |
a |
Optional |
|
rtpmap |
Pointer to the first session-level rtpmap attribute as defined by the MCC_SDP_RTPMAP structure. The value of this field is 0 if there are no session-level rtpmap attributes in this SDP message. |
a |
Optional |
|
media |
Pointer to the first media description as defined by the MCC_SDP_MEDIA structure. The value of this field is 0 if there are no media descriptions in this SDP message. |
m |
Optional |