mccdSdpAddAttribute

Adds a general attribute field (a=) to the output buffer.

Prototype

uint32_t mccdSdpAddAttribute ( MCC_SDP_CONTEXT_W * context, const char * name, const char * value)

Argument

Description

context

Pointer to the MCC_SDP_CONTEXT_W structure that stores the SDP message as you create its components.

name

Pointer to the attribute name.

value

Pointer to the attribute value.

Details

Depending on when you call mccdSdpAddAttribute, it adds either a session-level attribute or a media-level attribute to the SDP message. For more information, see Creating an SDP message.

Return values

mccdSdpAddAttribute returns either MCCSDP_OK (function completed successfully) or MCCSDP_MEMORY_ERROR.

Example

This example:

mccdSdpAddAttribute ( pc, "T38FaxVersion", "0" );

creates the following SDP output:

a=T38FaxVersion:0