#include <sippdu.h>
Inheritance diagram for SIP_PDU:
enum SIP_PDU::Methods |
enum SIP_PDU::StatusCodes |
SIP_PDU::SIP_PDU | ( | Methods | method = SIP_PDU::NumMethods |
) |
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 | ( | ) |
void SIP_PDU::AdjustVia | ( | OpalTransport & | transport | ) |
Update the VIA field following RFC3261, 18.2.1 and RFC3581.
PString SIP_PDU::Build | ( | ) |
Construct the PDU string to output. Returns the total length of the PDU.
PString SIP_PDU::CreateVia | ( | SIPEndPoint & | endpoint, | |
const OpalTransport & | transport, | |||
SIPConnection * | connection = NULL | |||
) |
const PString& SIP_PDU::GetEntityBody | ( | ) | const [inline] |
const PString& SIP_PDU::GetInfo | ( | ) | const [inline] |
Methods SIP_PDU::GetMethod | ( | ) | const [inline] |
SIPMIMEInfo& SIP_PDU::GetMIME | ( | ) | [inline] |
const SIPMIMEInfo& SIP_PDU::GetMIME | ( | ) | const [inline] |
SDPSessionDescription* SIP_PDU::GetSDP | ( | ) |
StatusCodes SIP_PDU::GetStatusCode | ( | ) | const [inline] |
static const char* SIP_PDU::GetStatusCodeDescription | ( | int | code | ) | [static] |
PString SIP_PDU::GetTransactionID | ( | ) | const |
const SIPURL& SIP_PDU::GetURI | ( | ) | const [inline] |
unsigned SIP_PDU::GetVersionMajor | ( | ) | const [inline] |
unsigned SIP_PDU::GetVersionMinor | ( | ) | const [inline] |
void SIP_PDU::InitialiseHeaders | ( | SIPConnection & | connection, | |
const OpalTransport & | transport | |||
) |
void SIP_PDU::InitialiseHeaders | ( | SIPDialogContext & | dialog, | |
const PString & | via = PString::Empty() | |||
) |
void SIP_PDU::InitialiseHeaders | ( | const SIPURL & | dest, | |
const SIPURL & | to, | |||
const SIPURL & | from, | |||
const PString & | callID, | |||
unsigned | cseq, | |||
const PString & | via | |||
) |
void SIP_PDU::PrintOn | ( | ostream & | strm | ) | const |
PBoolean SIP_PDU::Read | ( | OpalTransport & | transport | ) |
Read PDU from the specified transport.
bool SIP_PDU::SendResponse | ( | OpalTransport & | transport, | |
SIP_PDU & | response, | |||
SIPEndPoint * | endpoint = NULL | |||
) |
bool SIP_PDU::SendResponse | ( | OpalTransport & | transport, | |
StatusCodes | code, | |||
SIPEndPoint * | endpoint = NULL , |
|||
const char * | contact = NULL , |
|||
const char * | extra = NULL | |||
) |
Write PDU as a response to a request.
void SIP_PDU::SetAllow | ( | unsigned | bitmask | ) |
Set mime allow field to all supported methods.
void SIP_PDU::SetEntityBody | ( | const PString & | body | ) | [inline] |
void SIP_PDU::SetInfo | ( | const PString & | info | ) | [inline] |
bool SIP_PDU::SetRoute | ( | const SIPURL & | proxy | ) |
bool 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::SetSDP | ( | SDPSessionDescription * | sdp | ) |
void SIP_PDU::SetStatusCode | ( | StatusCodes | c | ) | [inline] |
void SIP_PDU::SetURI | ( | const SIPURL & | newuri | ) | [inline] |
PBoolean SIP_PDU::Write | ( | OpalTransport & | transport, | |
const OpalTransportAddress & | remoteAddress = OpalTransportAddress() , |
|||
const PString & | localInterface = PString::Empty() | |||
) |
Write the PDU to the transport.
ostream& operator<< | ( | ostream & | strm, | |
StatusCodes | status | |||
) | [friend] |
PString SIP_PDU::m_entityBody [protected] |
PString SIP_PDU::m_info [protected] |
Methods SIP_PDU::m_method [protected] |
SIPMIMEInfo SIP_PDU::m_mime [protected] |
SDPSessionDescription* SIP_PDU::m_SDP [protected] |
StatusCodes SIP_PDU::m_statusCode [protected] |
PString SIP_PDU::m_transactionID [mutable, protected] |
SIPURL SIP_PDU::m_uri [protected] |
bool SIP_PDU::m_usePeerTransportAddress [protected] |
unsigned SIP_PDU::m_versionMajor [protected] |
unsigned SIP_PDU::m_versionMinor [protected] |