|
OPAL
Version 3.10.10
|
#include <sippdu.h>
Public Member Functions | |
| SIP_PDU (Methods method=SIP_PDU::NumMethods) | |
| SIP_PDU (const SIP_PDU &request, StatusCodes code, const SDPSessionDescription *sdp=NULL) | |
| SIP_PDU (const SIP_PDU &) | |
| SIP_PDU & | operator= (const SIP_PDU &) |
| ~SIP_PDU () | |
| void | PrintOn (ostream &strm) const |
| void | InitialiseHeaders (const SIPURL &dest, const SIPURL &to, const SIPURL &from, const PString &callID, unsigned cseq, const PString &via) |
| void | InitialiseHeaders (SIPDialogContext &dialog, const PString &via=PString::Empty(), unsigned cseq=0) |
| void | InitialiseHeaders (SIPConnection &connection, const OpalTransport &transport, unsigned cseq=0) |
| void | InitialiseHeaders (const SIP_PDU &request) |
| bool | SetRoute (const SIPURLList &routeSet) |
| bool | SetRoute (const SIPURL &proxy) |
| void | SetAllow (unsigned bitmask) |
| void | AdjustVia (OpalTransport &transport) |
| PString | CreateVia (SIPEndPoint &endpoint, const OpalTransport &transport) |
| SIP_PDU::StatusCodes | Read (OpalTransport &transport) |
| PBoolean | Write (OpalTransport &transport, const OpalTransportAddress &remoteAddress=OpalTransportAddress(), const PString &localInterface=PString::Empty()) |
| bool | SendResponse (OpalTransport &transport, StatusCodes code, SIPEndPoint *endpoint=NULL) const |
| bool | SendResponse (OpalTransport &transport, SIP_PDU &response, SIPEndPoint *endpoint=NULL) const |
| PString | Build () |
| PString | GetTransactionID () const |
| Methods | GetMethod () const |
| StatusCodes | GetStatusCode () const |
| void | SetStatusCode (StatusCodes c) |
| const SIPURL & | GetURI () const |
| void | SetURI (const SIPURL &newuri) |
| unsigned | GetVersionMajor () const |
| unsigned | GetVersionMinor () const |
| void | SetCSeq (unsigned cseq) |
| const PString & | GetEntityBody () const |
| void | SetEntityBody (const PString &body) |
| void | SetEntityBody () |
| const PString & | GetInfo () const |
| void | SetInfo (const PString &info) |
| const SIPMIMEInfo & | GetMIME () const |
| SIPMIMEInfo & | GetMIME () |
| SDPSessionDescription * | GetSDP (const OpalMediaFormatList &masterList) |
| void | SetSDP (SDPSessionDescription *sdp) |
Static Public Member Functions | |
| static const char * | GetStatusCodeDescription (int code) |
Protected Attributes | |
| Methods | m_method |
| StatusCodes | m_statusCode |
| SIPURL | m_uri |
| unsigned | m_versionMajor |
| unsigned | m_versionMinor |
| PString | m_info |
| SIPMIMEInfo | m_mime |
| PString | m_entityBody |
| SDPSessionDescription * | m_SDP |
| PString | m_transactionID |
Friends | |
| ostream & | operator<< (ostream &strm, StatusCodes status) |
Session Initiation Protocol message. Each message contains a header, MIME lines and possibly SDP. Class provides methods for reading from and writing to transport.
| 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 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 | ||
| ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| SDPSessionDescription* SIP_PDU::GetSDP | ( | const OpalMediaFormatList & | masterList | ) |
|
inline |
|
static |
| PString SIP_PDU::GetTransactionID | ( | ) | const |
Referenced by SIPEndPoint::AddTransaction().
|
inline |
|
inline |
|
inline |
| void SIP_PDU::InitialiseHeaders | ( | const SIPURL & | dest, |
| const SIPURL & | to, | ||
| const SIPURL & | from, | ||
| const PString & | callID, | ||
| unsigned | cseq, | ||
| const PString & | via | ||
| ) |
| void SIP_PDU::InitialiseHeaders | ( | SIPDialogContext & | dialog, |
| const PString & | via = PString::Empty(), |
||
| unsigned | cseq = 0 |
||
| ) |
| void SIP_PDU::InitialiseHeaders | ( | SIPConnection & | connection, |
| const OpalTransport & | transport, | ||
| unsigned | cseq = 0 |
||
| ) |
| void SIP_PDU::InitialiseHeaders | ( | const SIP_PDU & | request | ) |
| void SIP_PDU::PrintOn | ( | ostream & | strm | ) | const |
| SIP_PDU::StatusCodes SIP_PDU::Read | ( | OpalTransport & | transport | ) |
Read PDU from the specified transport.
| bool SIP_PDU::SendResponse | ( | OpalTransport & | transport, |
| StatusCodes | code, | ||
| SIPEndPoint * | endpoint = NULL |
||
| ) | const |
Write PDU as a response to a request.
| bool SIP_PDU::SendResponse | ( | OpalTransport & | transport, |
| SIP_PDU & | response, | ||
| SIPEndPoint * | endpoint = NULL |
||
| ) | const |
| void SIP_PDU::SetAllow | ( | unsigned | bitmask | ) |
Set mime allow field to all supported methods.
| void SIP_PDU::SetCSeq | ( | unsigned | cseq | ) |
|
inline |
| void SIP_PDU::SetEntityBody | ( | ) |
|
inline |
| bool SIP_PDU::SetRoute | ( | const SIPURLList & | routeSet | ) |
Add and populate Route header following the given routeSet. If first route is strict, exchange with URI. Returns true if routeSet.
| bool SIP_PDU::SetRoute | ( | const SIPURL & | proxy | ) |
| void SIP_PDU::SetSDP | ( | SDPSessionDescription * | sdp | ) |
|
inline |
|
inline |
| PBoolean SIP_PDU::Write | ( | OpalTransport & | transport, |
| const OpalTransportAddress & | remoteAddress = OpalTransportAddress(), |
||
| const PString & | localInterface = PString::Empty() |
||
| ) |
Write the PDU to the transport.
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |