AmSdp Class Reference

The SDP parser class. More...

#include <AmSdp.h>


Public Member Functions

 AmSdp (const AmSdp &p_sdp_msg)
void setBody (const char *_sdp_msg)
int parse ()
int genResponse (const string &localip, int localport, string &out_buf)
int genRequest (const string &localip, int localport, string &out_buf)
SdpPayloadgetCompatiblePayload (int media_type, string &addr, int &port)
bool hasTelephoneEvent ()
const SdpPayloadtelephoneEventPayload () const

Data Fields

unsigned int version
SdpOrigin origin
string sessionName
SdpConnection conn
vector< SdpMediamedia
vector< SdpPayload * > sup_pl
bool remote_active


Detailed Description

The SDP parser class.


Member Function Documentation

int AmSdp::genRequest ( const string &  localip,
int  localport,
string &  out_buf 
)

Generate an SDP offer.

Returns:
!=0 if error encountered.

int AmSdp::genResponse ( const string &  localip,
int  localport,
string &  out_buf 
)

Generate an SDP answer to the offer parsed previously.

Returns:
!=0 if error encountered.

SdpPayload * AmSdp::getCompatiblePayload ( int  media_type,
string &  addr,
int &  port 
)

Get a compatible payload from SDP offer/response.

Returns:
NULL if error encountered.

bool AmSdp::hasTelephoneEvent (  ) 

Test if remote UA supports 'telefone_event'.

int AmSdp::parse (  ) 

Parse the invitation

Returns:
!=0 if error encountered.

void AmSdp::setBody ( const char *  _sdp_msg  ) 

Sets the SDP offer to be parsed.


The documentation for this class was generated from the following files:
Generated on Thu Mar 8 00:12:46 2007 for Sems by  doxygen 1.4.7
Home |  Recent changes |  Search |  Glossary |  Sitemap |  Login