Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]


How to use the SIP SDP Codec API

[Top]


Protocols

The following diagram shows how an SDP description is created. Note that only mandatory SDP fields are included.

First, the client must create a CSdpDocument object.

The string pool must be open before use. Predefined SDP constants are defined in the string table whose handle can be fetched by calling SdpCodecStringPool::StringPoolL(). The string table includes all predefined SDP related constants.

The net type and the address type of the connection and origin field parameters are fetched from the string pool; these are predefined.

The origin field is created with origin field parameters, and is set into the CSdpDocument object.

The connection field is created from parameters, and is set into the CSdpDocument object.

When you have finished with the SDP description, you delete the CSdpDocument object and close the string pool.


[Top]


Error handling

All function calls are synchronous, and, in the event of an error, leave with SDP Codec specific error codes and Symbian OS errorcodes.