7.4. IP_CAPABILITY
The IP_CAPABILITY data structure provides a level of capability information in addition to simply the capability or codec identifier.
- Note: The IP_CAPABILITY data structure is not intended to provide all the flexibility of the H.245 terminal capability structure, but provides a first level of useful information in addition to the capability or codec identifier.
The data structure definition is as follows.
typedef struct
{
int capability;
int type;
int direction;
int payload_type;
IP_CAPABILITY_UNION extra;
char rfu[0x10];
} IP_CAPABILITY;
Table 41 describes the meaning of each field in the IP_CAPABILITY data structure.
Table 41. IP_CAPABILITY Field Descriptions
|
Field
|
Description
|
| capability |
The IP Media capability for this structure. Possible values are:
- GCCAP_AUDIO_g711Alaw64k
- GCCAP_AUDIO_g711Ulaw64k
- GCCAP_AUDIO_g7231_5_3k
- GCCAP_AUDIO_g7231_6_3k
- GCCAP_AUDIO_g729AnnexA
- GCCAP_AUDIO_g729AnnexAwAnnexB
- GCCAP_AUDIO_NO_AUDIO
- GCCAP_DATA_t38UDPFax
- GCCAP_dontCare
|
| type |
The category of capability specified in this structure. Indicates which member of the IP_CAPABILITY_UNION union is being used. Possible values are:
- GCCAPTYPE_AUDIO - Audio
- GCCAPTYPE_RDATA - Data
|
| direction |
The capability direction code for this capability. Possible values are:
- IP_CAP_DIR_LCLTRANSMIT - Indicates a transmit capability for the local endpoint.
- IP_CAP_DIR_LCLRECIEVE - Indicates a receive capability for the local endpoint.
- IP_CAP_DIR_LCLRXTX - Indicates a receive and transmit capability for the local endpoint. Supported for T.38 only.
|
| payload_type |
The payload type. When using a standard payload type, set the value of this field to IP_USE_STANDARD_PAYLOADTYPE. When using a nonstandard payload type, use this field to specify the RTP payload type that will be used in conjunction with the coder specified in the capability field in this structure. Not currently supported. |
| extra |
The contents of the IP_CAPABILITY_UNION will be indicated by the type field. |
| rfu |
Reserved for future use. Must be set to zero when not used. |