#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) |
| SdpPayload * | getCompatiblePayload (int media_type, string &addr, int &port) |
| bool | hasTelephoneEvent () |
| const SdpPayload * | telephoneEventPayload () const |
Data Fields | |
| unsigned int | version |
| SdpOrigin | origin |
| string | sessionName |
| SdpConnection | conn |
| vector< SdpMedia > | media |
| vector< SdpPayload * > | sup_pl |
| bool | remote_active |
| int AmSdp::genRequest | ( | const string & | localip, | |
| int | localport, | |||
| string & | out_buf | |||
| ) |
Generate an SDP offer.
| int AmSdp::genResponse | ( | const string & | localip, | |
| int | localport, | |||
| string & | out_buf | |||
| ) |
Generate an SDP answer to the offer parsed previously.
| SdpPayload * AmSdp::getCompatiblePayload | ( | int | media_type, | |
| string & | addr, | |||
| int & | port | |||
| ) |
Get a compatible payload from SDP offer/response.
| bool AmSdp::hasTelephoneEvent | ( | ) |
Test if remote UA supports 'telefone_event'.
| int AmSdp::parse | ( | ) |
Parse the invitation
| void AmSdp::setBody | ( | const char * | _sdp_msg | ) |
Sets the SDP offer to be parsed.
1.4.7