|
|
This class holds a SDP parser and additional data used by SDP objects
inline SDPParser (const char* dbgName, const char* sessName, const char* fmts = "alaw,mulaw")
| SDPParser |
Constructor
Parameters:
dbgName | Debug name of this parser |
sessName | Name of the session in SDP |
fmts | Default media formats |
inline void getAudioFormats (String& buf)
| getAudioFormats |
Get the formats list This method is thread safe
Parameters:
buf | String to be filled with comma separated list of formats |
inline bool rfc2833 ()
| rfc2833 |
[const]
Get the RFC 2833 offer flag
Returns: True if RFC 2883 telephony events will be offered
inline bool secure ()
| secure |
[const]
Get the secure offer flag
Returns: True if SDES descriptors for SRTP will be offered
inline bool sdpForward ()
| sdpForward |
[const]
Get the SDP forward flag
Returns: True if raw SDP should be added to RTP forward offer
inline bool ignorePort ()
| ignorePort |
[const]
Get the RTP port change ignore flag
Returns: True if a port change should not cause an offer change
ObjList* parse (const MimeSdpBody& sdp, String& addr, ObjList* oldMedia = 0,
const String& media = String::empty())
| parse |
Parse a received SDP body This method is thread safe
Parameters:
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) |
Returns: List of SDPMedia objects, may be NULL
inline ObjList* parse (const MimeSdpBody* sdp, String& addr, ObjList* oldMedia = 0,
const String& media = String::empty())
| parse |
Parse a received SDP body, returns NULL if SDP is not present This method is thread safe
Parameters:
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) |
Returns: List of SDPMedia objects, may be NULL
void initialize (const NamedList* codecs, const NamedList* hacks, const NamedList* general = 0)
| initialize |
Update configuration. This method should be called after a configuration file is loaded
Parameters:
codecs | List of supported codecs |
hacks | List of hacks |
general | List of general settings |
static const TokenDict s_payloads[] | s_payloads[] |
static const TokenDict s_rtpmap[] | s_rtpmap[] |
Generated by: paulc on bussard on Fri Apr 1 18:17:10 2011, using kdoc 2.0a54. |