class SDPParser

A SDP parser. More...

Full nameTelEngine::SDPParser
Definition#include <libs/ysdp/yatesdp.h>
InheritsTelEngine::DebugEnabler [public ], TelEngine::Mutex [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Members


Detailed Description

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:
dbgNameDebug name of this parser
sessNameName of the session in SDP
fmtsDefault media formats

inline void  getAudioFormats (String& buf)

getAudioFormats

Get the formats list This method is thread safe

Parameters:
bufString to be filled with comma separated list of formats

inline int  rfc2833 ()

rfc2833

[const]

Get the RFC 2833 offer payload

Returns: Payload for RFC 2883 telephony events, negative if not 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(), bool force = false)

parse

Parse a received SDP body This method is thread safe

Parameters:
sdpReceived SDP body
addrRemote address
oldMediaOptional list of existing media (an already existing media will be moved to returned list)
mediaOptional expected media type. If not empty this will be the only media type returned (if found)
forceForce updating formats even if incompatible with old ones

Returns: List of SDPMedia objects, may be NULL

inline ObjList*  parse (const MimeSdpBody* sdp, String& addr, ObjList* oldMedia = 0, const String& media = String::empty(), bool force = false)

parse

Parse a received SDP body, returns NULL if SDP is not present This method is thread safe

Parameters:
sdpPointer to received SDP body
addrRemote address
oldMediaOptional list of existing media (an already existing media will be moved to returned list)
mediaOptional expected media type. If not empty this will be the only media type returned (if found)
forceForce updating formats even if incompatible with old ones

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:
codecsList of supported codecs
hacksList of hacks
generalList of general settings

static const TokenDict s_payloads[]

s_payloads[]

static const TokenDict s_rtpmap[]

s_rtpmap[]


Generated by: paulc on bussard on Sun Oct 20 21:06:06 2013, using kdoc 2.0a54.