|
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) |
| int | 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(), bool force=false) |
| ObjList * | parse (const MimeSdpBody *sdp, String &addr, ObjList *oldMedia=0, const String &media=String::empty(), bool force=false) |
| void | initialize (const NamedList *codecs, const NamedList *hacks, const NamedList *general=0) |
Public Member Functions inherited from DebugEnabler | |
| DebugEnabler (int level=TelEngine::debugLevel(), bool enabled=true) | |
| int | debugLevel () const |
| int | debugLevel (int level) |
| bool | debugEnabled () const |
| void | debugEnabled (bool enable) |
| const char * | debugName () const |
| bool | debugAt (int level) const |
| bool | debugChained () const |
| void | debugChain (const DebugEnabler *chain=0) |
| void | debugCopy (const DebugEnabler *original=0) |
Public Member Functions inherited from Mutex | |
| Mutex (bool recursive=false, const char *name=0) | |
| Mutex (const Mutex &original) | |
| ~Mutex () | |
| Mutex & | operator= (const Mutex &original) |
| virtual bool | lock (long maxwait=-1) |
| virtual bool | unlock () |
| virtual bool | locked () const |
| const char * | owner () const |
| bool | recursive () const |
Public Member Functions inherited from Lockable | |
| virtual | ~Lockable () |
| virtual bool | check (long maxwait=-1) |
| virtual bool | unlockAll () |
Static Public Attributes | |
| static const TokenDict | s_payloads [] |
| static const TokenDict | s_rtpmap [] |
Friends | |
| class | SDPSession |
Additional Inherited Members | |
Static Public Member Functions inherited from Mutex | |
| static int | count () |
| static int | locks () |
| static bool | efficientTimedLock () |
Static Public Member Functions inherited from Lockable | |
| static void | wait (unsigned long maxwait) |
| static unsigned long | wait () |
| static void | startUsingNow () |
| static void | enableSafety (bool safe=true) |
| static bool | safety () |
Protected Member Functions inherited from DebugEnabler | |
| void | debugName (const char *name) |
A SDP parser.
This class holds a SDP parser and additional data used by SDP objects
|
inline |
Constructor
| dbgName | Debug name of this parser |
| sessName | Name of the session in SDP |
| fmts | Default media formats |
References DebugEnabler::debugName(), and Mutex::Mutex().
|
inline |
Get the formats list This method is thread safe
| buf | String to be filled with comma separated list of formats |
References Mutex::lock().
|
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(), | ||
| bool | force = false ) |
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) |
| force | Force updating formats even if incompatible with old ones |
References String::empty().
Referenced by parse().
|
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) |
| force | Force updating formats even if incompatible with old ones |
References String::empty(), and parse().
|
inline |
Get the RFC 2833 offer payload
|
inline |
Get the SDP forward flag
|
inline |
Get the secure offer flag
|
static |
Yate Payloads for the AV profile
|
static |
SDP Payloads for the AV profile