#include <sippdu.h>
Inheritance diagram for SIP_PDU:
enum SIP_PDU::Methods |
enum SIP_PDU::StatusCodes |
SIP_PDU::SIP_PDU | ( | ) |
SIP_PDU::SIP_PDU | ( | Methods | method, | |
const SIPURL & | dest, | |||
const PString & | to, | |||
const PString & | from, | |||
const PString & | callID, | |||
unsigned | cseq, | |||
const OpalTransportAddress & | via | |||
) |
Construct a Request message
SIP_PDU::SIP_PDU | ( | Methods | method, | |
SIPConnection & | connection, | |||
const OpalTransport & | transport | |||
) |
Construct a Request message for requests in a dialog
SIP_PDU::SIP_PDU | ( | const SIP_PDU & | request, | |
StatusCodes | code, | |||
const char * | contact = NULL , |
|||
const char * | extra = NULL , |
|||
const SDPSessionDescription * | sdp = NULL | |||
) |
Construct a Response message extra is passed as message body
SIP_PDU::SIP_PDU | ( | const SIP_PDU & | ) |
SIP_PDU::~SIP_PDU | ( | ) |
static const char* SIP_PDU::GetStatusCodeDescription | ( | int | code | ) | [static] |
void SIP_PDU::PrintOn | ( | ostream & | strm | ) | const |
void SIP_PDU::Construct | ( | Methods | method | ) |
void SIP_PDU::Construct | ( | Methods | method, | |
const SIPURL & | dest, | |||
const PString & | to, | |||
const PString & | from, | |||
const PString & | callID, | |||
unsigned | cseq, | |||
const OpalTransportAddress & | via | |||
) |
void SIP_PDU::Construct | ( | Methods | method, | |
SIPConnection & | connection, | |||
const OpalTransport & | transport | |||
) |
PBoolean SIP_PDU::SetRoute | ( | const PStringList & | routeSet | ) |
Add and populate Route header following the given routeSet. If first route is strict, exchange with URI. Returns PTrue if routeSet.
void SIP_PDU::SetAllow | ( | unsigned | bitmask | ) |
Set mime allow field to all supported methods.
void SIP_PDU::AdjustVia | ( | OpalTransport & | transport | ) |
Update the VIA field following RFC3261, 18.2.1 and RFC3581.
PBoolean SIP_PDU::Read | ( | OpalTransport & | transport | ) |
Read PDU from the specified transport.
PBoolean SIP_PDU::Write | ( | OpalTransport & | transport, | |
const OpalTransportAddress & | remoteAddress = OpalTransportAddress() | |||
) |
Write the PDU to the transport.
bool SIP_PDU::SendResponse | ( | OpalTransport & | transport, | |
StatusCodes | code, | |||
const char * | contact = NULL , |
|||
const char * | extra = NULL | |||
) |
Write PDU as a response to a request.
bool SIP_PDU::SendResponse | ( | OpalTransport & | transport, | |
SIP_PDU & | response | |||
) |
PString SIP_PDU::Build | ( | ) |
Construct the PDU string to output. Returns the total length of the PDU.
PString SIP_PDU::GetTransactionID | ( | ) | const |
Methods SIP_PDU::GetMethod | ( | ) | const [inline] |
StatusCodes SIP_PDU::GetStatusCode | ( | ) | const [inline] |
const SIPURL& SIP_PDU::GetURI | ( | ) | const [inline] |
unsigned SIP_PDU::GetVersionMajor | ( | ) | const [inline] |
unsigned SIP_PDU::GetVersionMinor | ( | ) | const [inline] |
const PString& SIP_PDU::GetEntityBody | ( | ) | const [inline] |
PString& SIP_PDU::GetEntityBody | ( | ) | [inline] |
const PString& SIP_PDU::GetInfo | ( | ) | const [inline] |
const SIPMIMEInfo& SIP_PDU::GetMIME | ( | ) | const [inline] |
SIPMIMEInfo& SIP_PDU::GetMIME | ( | ) | [inline] |
void SIP_PDU::SetURI | ( | const SIPURL & | newuri | ) | [inline] |
SDPSessionDescription* SIP_PDU::GetSDP | ( | ) |
ostream& operator<< | ( | ostream & | strm, | |
StatusCodes | status | |||
) | [friend] |
Methods SIP_PDU::method [protected] |
StatusCodes SIP_PDU::statusCode [protected] |
SIPURL SIP_PDU::uri [protected] |
unsigned SIP_PDU::versionMajor [protected] |
unsigned SIP_PDU::versionMinor [protected] |
PString SIP_PDU::info [protected] |
SIPMIMEInfo SIP_PDU::mime [protected] |
PString SIP_PDU::entityBody [protected] |
SDPSessionDescription* SIP_PDU::m_SDP [protected] |
PString SIP_PDU::transactionID [mutable, protected] |