Yate
|
A SDP parser. More...
#include <yatesdp.h>
Public Member Functions | |
SDPParser (const char *dbgName, const char *sessName, const char *fmts="alaw,mulaw") | |
void | getAudioFormats (String &buf) |
bool | rfc2833 () const |
bool | secure () const |
bool | sdpForward () const |
bool | ignorePort () const |
ObjList * | parse (const MimeSdpBody &sdp, String &addr, ObjList *oldMedia=0, const String &media=String::empty()) |
ObjList * | parse (const MimeSdpBody *sdp, String &addr, ObjList *oldMedia=0, const String &media=String::empty()) |
void | initialize (const NamedList *codecs, const NamedList *hacks, const NamedList *general=0) |
Static Public Attributes | |
static const TokenDict | s_payloads [] |
static const TokenDict | s_rtpmap [] |
Friends | |
class | SDPSession |
A SDP parser.
This class holds a SDP parser and additional data used by SDP objects
SDPParser | ( | const char * | dbgName, |
const char * | sessName, | ||
const char * | fmts = "alaw,mulaw" |
||
) | [inline] |
Constructor
dbgName | Debug name of this parser |
sessName | Name of the session in SDP |
fmts | Default media formats |
void getAudioFormats | ( | String & | buf | ) | [inline] |
Get the formats list This method is thread safe
buf | String to be filled with comma separated list of formats |
bool ignorePort | ( | ) | const [inline] |
Get the RTP port change ignore flag
void initialize | ( | const NamedList * | codecs, |
const NamedList * | hacks, | ||
const NamedList * | general = 0 |
||
) |
Update configuration. This method should be called after a configuration file is loaded
codecs | List of supported codecs |
hacks | List of hacks |
general | List of general settings |
ObjList* parse | ( | const MimeSdpBody * | sdp, |
String & | addr, | ||
ObjList * | oldMedia = 0 , |
||
const String & | media = String::empty() |
||
) | [inline] |
Parse a received SDP body, returns NULL if SDP is not present This method is thread safe
sdp | Pointer to received SDP body |
addr | Remote address |
oldMedia | Optional list of existing media (an already existing media will be moved to returned list) |
media | Optional expected media type. If not empty this will be the only media type returned (if found) |
References SDPParser::parse().
Referenced by SDPParser::parse().
ObjList* parse | ( | const MimeSdpBody & | sdp, |
String & | addr, | ||
ObjList * | oldMedia = 0 , |
||
const String & | media = String::empty() |
||
) |
Parse a received SDP body This method is thread safe
sdp | Received SDP body |
addr | Remote address |
oldMedia | Optional list of existing media (an already existing media will be moved to returned list) |
media | Optional expected media type. If not empty this will be the only media type returned (if found) |
bool rfc2833 | ( | ) | const [inline] |
Get the RFC 2833 offer flag
bool sdpForward | ( | ) | const [inline] |
Get the SDP forward flag
bool secure | ( | ) | const [inline] |
Get the secure offer flag
const TokenDict s_payloads[] [static] |
Yate Payloads for the AV profile