#include <sipep.h>
Inheritance diagram for SIPEndPoint:
Public Types | |
enum | NATBindingRefreshMethod { None, Options, EmptyRequest, NumMethods } |
Public Member Functions | |
PSafePtr< SIPConnection > | GetSIPConnectionWithLock (const PString &token, PSafetyMode mode=PSafeReadWrite) |
virtual BOOL | IsAcceptedAddress (const SIPURL &toAddr) |
virtual void | OnMessageReceived (const SIPURL &from, const PString &body) |
BOOL | Register (unsigned expire, const PString &aor=PString::Empty(), const PString &authName=PString::Empty(), const PString &password=PString::Empty(), const PString &authRealm=PString::Empty(), const PTimeInterval &minRetryTime=PMaxTimeInterval, const PTimeInterval &maxRetryTime=PMaxTimeInterval) |
BOOL | Register (const PString &host, const PString &user=PString::Empty(), const PString &autName=PString::Empty(), const PString &password=PString::Empty(), const PString &authRealm=PString::Empty(), unsigned expire=0, const PTimeInterval &minRetryTime=PMaxTimeInterval, const PTimeInterval &maxRetryTime=PMaxTimeInterval) |
BOOL | Unregister (const PString &aor) |
BOOL | Subscribe (SIPSubscribe::SubscribeType &type, unsigned expire, const PString &to) |
BOOL | Unsubscribe (SIPSubscribe::SubscribeType &type, const PString &to) |
BOOL | Message (const PString &to, const PString &body) |
BOOL | Publish (const PString &to, const PString &body, unsigned expire=0) |
BOOL | Ping (const PString &to) |
virtual void | OnMWIReceived (const PString &to, SIPSubscribe::MWIType type, const PString &msgs) |
virtual void | OnPresenceInfoReceived (const PString &user, const PString &basic, const PString ¬e) |
virtual void | OnRegistrationStatus (const PString &aor, BOOL wasRegistering, BOOL reRegistering, SIP_PDU::StatusCodes reason) |
virtual void | OnRegistrationFailed (const PString &aor, SIP_PDU::StatusCodes reason, BOOL wasRegistering) |
virtual void | OnRegistered (const PString &aor, BOOL wasRegistering) |
BOOL | IsRegistered (const PString &aor) |
BOOL | IsSubscribed (SIPSubscribe::SubscribeType type, const PString &to) |
unsigned | GetRegistrationsCount () |
virtual void | OnMessageFailed (const SIPURL &messageUrl, SIP_PDU::StatusCodes reason) |
void | SetMIMEForm (BOOL v) |
BOOL | GetMIMEForm () const |
void | SetMaxRetries (unsigned r) |
unsigned | GetMaxRetries () const |
void | SetRetryTimeouts (const PTimeInterval &t1, const PTimeInterval &t2) |
const PTimeInterval & | GetRetryTimeoutMin () const |
const PTimeInterval & | GetRetryTimeoutMax () const |
void | SetNonInviteTimeout (const PTimeInterval &t) |
const PTimeInterval & | GetNonInviteTimeout () const |
void | SetPduCleanUpTimeout (const PTimeInterval &t) |
const PTimeInterval & | GetPduCleanUpTimeout () const |
void | SetInviteTimeout (const PTimeInterval &t) |
const PTimeInterval & | GetInviteTimeout () const |
void | SetAckTimeout (const PTimeInterval &t) |
const PTimeInterval & | GetAckTimeout () const |
void | SetRegistrarTimeToLive (const PTimeInterval &t) |
const PTimeInterval & | GetRegistrarTimeToLive () const |
void | SetNotifierTimeToLive (const PTimeInterval &t) |
const PTimeInterval & | GetNotifierTimeToLive () const |
void | SetNATBindingTimeout (const PTimeInterval &t) |
const PTimeInterval & | GetNATBindingTimeout () const |
void | AddTransaction (SIPTransaction *transaction) |
PSafePtr< SIPTransaction > | GetTransaction (const PString &transactionID, PSafetyMode mode=PSafeReadWrite) |
unsigned | GetNextCSeq () |
BOOL | GetAuthentication (const PString &authRealm, SIPAuthentication &) |
virtual SIPURL | GetRegisteredPartyName (const SIPURL &) |
virtual SIPURL | GetDefaultRegisteredPartyName () |
SIPURL | GetContactURL (const OpalTransport &transport, const PString &userName, const PString &host) |
SIPURL | GetLocalURL (const OpalTransport &transport, const PString &userName=PString::Empty()) |
const SIPURL & | GetProxy () const |
void | SetProxy (const SIPURL &url) |
void | SetProxy (const PString &hostname, const PString &username, const PString &password) |
virtual PString | GetUserAgent () const |
void | SetUserAgent (const PString &str) |
BOOL | SendResponse (SIP_PDU::StatusCodes code, OpalTransport &transport, SIP_PDU &pdu) |
void | SetNATBindingRefreshMethod (const NATBindingRefreshMethod m) |
virtual SIPRegisterHandler * | CreateRegisterHandler (const PString &to, const PString &authName, const PString &password, const PString &realm, int expire, const PTimeInterval &minRetryTime, const PTimeInterval &maxRetryTime) |
Overrides from OpalEndPoint | |
virtual PString | GetDefaultTransport () const |
virtual BOOL | NewIncomingConnection (OpalTransport *transport) |
virtual BOOL | MakeConnection (OpalCall &call, const PString &party, void *userData, unsigned int options, OpalConnection::StringOptions *stringOptions) |
virtual OpalMediaFormatList | GetMediaFormats () const |
virtual BOOL | GarbageCollection () |
Customisation call backs | |
virtual SIPConnection * | CreateConnection (OpalCall &call, const PString &token, void *userData, const SIPURL &destination, OpalTransport *transport, SIP_PDU *invite, unsigned int options=0, OpalConnection::StringOptions *stringOptions=NULL) |
virtual BOOL | SetupTransfer (const PString &token, const PString &callIdentity, const PString &remoteParty, void *userData=NULL) |
virtual BOOL | ForwardConnection (SIPConnection &connection, const PString &forwardParty) |
Protocol handling routines | |
OpalTransport * | CreateTransport (const OpalTransportAddress &remoteAddress, const OpalTransportAddress &localAddress=OpalTransportAddress()) |
virtual void | HandlePDU (OpalTransport &transport) |
virtual BOOL | OnReceivedPDU (OpalTransport &transport, SIP_PDU *pdu) |
virtual void | OnReceivedResponse (SIPTransaction &transaction, SIP_PDU &response) |
virtual BOOL | OnReceivedINVITE (OpalTransport &transport, SIP_PDU *pdu) |
virtual void | OnReceivedAuthenticationRequired (SIPTransaction &transaction, SIP_PDU &response) |
virtual void | OnReceivedOK (SIPTransaction &transaction, SIP_PDU &response) |
virtual BOOL | OnReceivedNOTIFY (OpalTransport &transport, SIP_PDU &response) |
virtual BOOL | OnReceivedREGISTER (OpalTransport &transport, SIP_PDU &pdu) |
virtual BOOL | OnReceivedSUBSCRIBE (OpalTransport &transport, SIP_PDU &pdu) |
virtual void | OnReceivedMESSAGE (OpalTransport &transport, SIP_PDU &response) |
virtual void | OnTransactionTimeout (SIPTransaction &transaction) |
virtual void | OnRTPStatistics (const SIPConnection &connection, const RTP_Session &session) const |
Protected Member Functions | |
PDECLARE_NOTIFIER (PThread, SIPEndPoint, TransportThreadMain) | |
PDECLARE_NOTIFIER (PTimer, SIPEndPoint, NATBindingRefresh) | |
void | ParsePartyName (const PString &remoteParty, PString &party) |
Protected Attributes | |
SIPURL | proxy |
PString | userAgentString |
BOOL | mimeForm |
unsigned | maxRetries |
PTimeInterval | retryTimeoutMin |
PTimeInterval | retryTimeoutMax |
PTimeInterval | nonInviteTimeout |
PTimeInterval | pduCleanUpTimeout |
PTimeInterval | inviteTimeout |
PTimeInterval | ackTimeout |
PTimeInterval | registrarTimeToLive |
PTimeInterval | notifierTimeToLive |
PTimeInterval | natBindingTimeout |
SIPHandlersList | activeSIPHandlers |
PSafeDictionary< PString, SIPTransaction > | transactions |
PTimer | natBindingTimer |
NATBindingRefreshMethod | natMethod |
PAtomicInteger | lastSentCSeq |
SIPEndPoint::SIPEndPoint | ( | OpalManager & | manager | ) |
Create a new endpoint.
SIPEndPoint::~SIPEndPoint | ( | ) |
Destroy endpoint.
SIPEndPoint::SIPEndPoint | ( | OpalManager & | manager | ) |
Create a new endpoint.
SIPEndPoint::~SIPEndPoint | ( | ) |
Destroy endpoint.
virtual PString SIPEndPoint::GetDefaultTransport | ( | ) | const [inline, virtual] |
Get the default transports for the endpoint type. Overrides the default behaviour to return udp and tcp.
Reimplemented from OpalEndPoint.
virtual BOOL SIPEndPoint::NewIncomingConnection | ( | OpalTransport * | transport | ) | [virtual] |
Handle new incoming connection from listener.
The default behaviour does nothing.
transport | Transport connection came in on |
Reimplemented from OpalEndPoint.
virtual BOOL SIPEndPoint::MakeConnection | ( | OpalCall & | call, | |
const PString & | party, | |||
void * | userData, | |||
unsigned int | options, | |||
OpalConnection::StringOptions * | stringOptions | |||
) | [virtual] |
Set up a connection to a remote party. This is called from the OpalManager::MakeConnection() function once it has determined that this is the endpoint for the protocol.
The general form for this party parameter is:
[proto:][alias@][transport$]address[:port]
where the various fields will have meanings specific to the endpoint type. For example, with H.323 it could be "h323:Fred@site.com" which indicates a user Fred at gatekeeper size.com. Whereas for the PSTN endpoint it could be "pstn:5551234" which is to call 5551234 on the first available PSTN line.
The proto field is optional when passed to a specific endpoint. If it is present, however, it must agree with the endpoints protocol name or FALSE is returned.
This function usually returns almost immediately with the connection continuing to occur in a new background thread.
If FALSE is returned then the connection could not be established. For example if a PSTN endpoint is used and the assiciated line is engaged then it may return immediately. Returning a non-NULL value does not mean that the connection will succeed, only that an attempt is being made.
The default behaviour is pure.
call | Owner of connection |
party | Remote party to call |
userData | Arbitrary data to pass to connection |
options | options to pass to conneciton |
stringOptions | complex string options |
Implements OpalEndPoint.
virtual OpalMediaFormatList SIPEndPoint::GetMediaFormats | ( | ) | const [virtual] |
Get the data formats this endpoint is capable of operating. This provides a list of media data format names that may be used by an OpalMediaStream may be created by a connection from this endpoint.
Note that a specific connection may not actually support all of the media formats returned here, but should return no more.
The default behaviour is pure.
Implements OpalEndPoint.
virtual BOOL SIPEndPoint::GarbageCollection | ( | ) | [virtual] |
Execute garbage collection for endpoint. Returns TRUE if all garbage has been collected. Default behaviour deletes the objects in the connectionsActive list.
Reimplemented from OpalEndPoint.
virtual SIPConnection* SIPEndPoint::CreateConnection | ( | OpalCall & | call, | |
const PString & | token, | |||
void * | userData, | |||
const SIPURL & | destination, | |||
OpalTransport * | transport, | |||
SIP_PDU * | invite, | |||
unsigned int | options = 0 , |
|||
OpalConnection::StringOptions * | stringOptions = NULL | |||
) | [virtual] |
Create a connection for the SIP endpoint. The default implementation is to create a OpalSIPConnection.
call | Owner of connection |
token | token used to identify connection |
userData | User data for connection |
destination | Destination for outgoing call |
transport | Transport INVITE has been received on |
invite | Original INVITE pdu |
options | connection options |
stringOptions | complex string options |
virtual BOOL SIPEndPoint::SetupTransfer | ( | const PString & | token, | |
const PString & | callIdentity, | |||
const PString & | remoteParty, | |||
void * | userData = NULL | |||
) | [virtual] |
Setup a connection transfer a connection for the SIP endpoint.
token | Existing connection to be transferred |
callIdentity | Call identity of the secondary call (if it exists) |
remoteParty | Remote party to transfer the existing call to |
userData | user data to pass to CreateConnection |
virtual BOOL SIPEndPoint::ForwardConnection | ( | SIPConnection & | connection, | |
const PString & | forwardParty | |||
) | [virtual] |
Forward the connection using the same token as the specified connection. Return TRUE if the connection is being redirected.
connection | Connection to be forwarded |
forwardParty | Remote party to forward to |
OpalTransport* SIPEndPoint::CreateTransport | ( | const OpalTransportAddress & | remoteAddress, | |
const OpalTransportAddress & | localAddress = OpalTransportAddress() | |||
) |
Creates an OpalTransport instance, based on the address is interpreted as the remote address to which the transport should connect
virtual void SIPEndPoint::HandlePDU | ( | OpalTransport & | transport | ) | [virtual] |
virtual BOOL SIPEndPoint::OnReceivedPDU | ( | OpalTransport & | transport, | |
SIP_PDU * | pdu | |||
) | [virtual] |
Handle an incoming SIP PDU that has been full decoded
virtual void SIPEndPoint::OnReceivedResponse | ( | SIPTransaction & | transaction, | |
SIP_PDU & | response | |||
) | [virtual] |
Handle an incoming response PDU.
virtual BOOL SIPEndPoint::OnReceivedINVITE | ( | OpalTransport & | transport, | |
SIP_PDU * | pdu | |||
) | [virtual] |
Handle an incoming INVITE request.
virtual void SIPEndPoint::OnReceivedAuthenticationRequired | ( | SIPTransaction & | transaction, | |
SIP_PDU & | response | |||
) | [virtual] |
Handle an incoming Proxy Authentication Required response PDU
virtual void SIPEndPoint::OnReceivedOK | ( | SIPTransaction & | transaction, | |
SIP_PDU & | response | |||
) | [virtual] |
Handle an incoming OK response PDU. This actually gets any PDU of the class 2xx not just 200.
virtual BOOL SIPEndPoint::OnReceivedNOTIFY | ( | OpalTransport & | transport, | |
SIP_PDU & | response | |||
) | [virtual] |
Handle an incoming NOTIFY PDU.
virtual BOOL SIPEndPoint::OnReceivedREGISTER | ( | OpalTransport & | transport, | |
SIP_PDU & | pdu | |||
) | [virtual] |
Handle an incoming REGISTER PDU.
virtual BOOL SIPEndPoint::OnReceivedSUBSCRIBE | ( | OpalTransport & | transport, | |
SIP_PDU & | pdu | |||
) | [virtual] |
Handle an incoming SUBSCRIBE PDU.
virtual void SIPEndPoint::OnReceivedMESSAGE | ( | OpalTransport & | transport, | |
SIP_PDU & | response | |||
) | [virtual] |
Handle an incoming MESSAGE PDU.
virtual void SIPEndPoint::OnTransactionTimeout | ( | SIPTransaction & | transaction | ) | [virtual] |
Handle a timeout
virtual void SIPEndPoint::OnRTPStatistics | ( | const SIPConnection & | connection, | |
const RTP_Session & | session | |||
) | const [virtual] |
Callback from the RTP session for statistics monitoring. This is called every so many packets on the transmitter and receiver threads of the RTP session indicating that the statistics have been updated.
The default behaviour does nothing.
connection | Connection for the channel |
session | Session with statistics |
PSafePtr<SIPConnection> SIPEndPoint::GetSIPConnectionWithLock | ( | const PString & | token, | |
PSafetyMode | mode = PSafeReadWrite | |||
) | [inline] |
Find a connection that uses the specified token. This searches the endpoint for the connection that contains the token as provided by functions such as MakeConnection().
token | Token to identify connection |
virtual BOOL SIPEndPoint::IsAcceptedAddress | ( | const SIPURL & | toAddr | ) | [virtual] |
virtual void SIPEndPoint::OnMessageReceived | ( | const SIPURL & | from, | |
const PString & | body | |||
) | [virtual] |
Callback for SIP message received
BOOL SIPEndPoint::Register | ( | unsigned | expire, | |
const PString & | aor = PString::Empty() , |
|||
const PString & | authName = PString::Empty() , |
|||
const PString & | password = PString::Empty() , |
|||
const PString & | authRealm = PString::Empty() , |
|||
const PTimeInterval & | minRetryTime = PMaxTimeInterval , |
|||
const PTimeInterval & | maxRetryTime = PMaxTimeInterval | |||
) |
Register to a registrar. This function is asynchronous to permit several registrations to occur at the same time. It can be called several times for different hosts and users.
The username can be of the form user. In that case, the From field will be set to that value.
The realm can be specified when registering, this will allow to find the correct authentication information when being requested. If no realm is specified, authentication will occur with the "best guess" of authentication parameters.
aor | user |
authName | authentication user name |
password | authentication password |
authRealm | authentication realm |
BOOL SIPEndPoint::Register | ( | const PString & | host, | |
const PString & | user = PString::Empty() , |
|||
const PString & | autName = PString::Empty() , |
|||
const PString & | password = PString::Empty() , |
|||
const PString & | authRealm = PString::Empty() , |
|||
unsigned | expire = 0 , |
|||
const PTimeInterval & | minRetryTime = PMaxTimeInterval , |
|||
const PTimeInterval & | maxRetryTime = PMaxTimeInterval | |||
) |
BOOL SIPEndPoint::Unregister | ( | const PString & | aor | ) |
Unregister from a registrar.
BOOL SIPEndPoint::Subscribe | ( | SIPSubscribe::SubscribeType & | type, | |
unsigned | expire, | |||
const PString & | to | |||
) |
Subscribe to a notifier. This function is asynchronous to permit several subscriptions to occur at the same time.
BOOL SIPEndPoint::Unsubscribe | ( | SIPSubscribe::SubscribeType & | type, | |
const PString & | to | |||
) |
BOOL SIPEndPoint::Message | ( | const PString & | to, | |
const PString & | body | |||
) |
Send a message to the given URL.
BOOL SIPEndPoint::Publish | ( | const PString & | to, | |
const PString & | body, | |||
unsigned | expire = 0 | |||
) |
Publish new state information. Only the basic & note fields of the PIDF+xml are supported for now.
BOOL SIPEndPoint::Ping | ( | const PString & | to | ) |
Send a SIP PING to the remote host
virtual void SIPEndPoint::OnMWIReceived | ( | const PString & | to, | |
SIPSubscribe::MWIType | type, | |||
const PString & | msgs | |||
) | [virtual] |
Callback called when MWI is received
virtual void SIPEndPoint::OnPresenceInfoReceived | ( | const PString & | user, | |
const PString & | basic, | |||
const PString & | note | |||
) | [virtual] |
Callback called when MWI is received
virtual void SIPEndPoint::OnRegistrationStatus | ( | const PString & | aor, | |
BOOL | wasRegistering, | |||
BOOL | reRegistering, | |||
SIP_PDU::StatusCodes | reason | |||
) | [virtual] |
Callback called when a registration to a SIP registrar status. The BOOL indicates if the operation that failed was a REGISTER or an (UN)REGISTER.
virtual void SIPEndPoint::OnRegistrationFailed | ( | const PString & | aor, | |
SIP_PDU::StatusCodes | reason, | |||
BOOL | wasRegistering | |||
) | [virtual] |
Callback called when a registration to a SIP registrars fails. The BOOL indicates if the operation that failed was a REGISTER or an (UN)REGISTER.
virtual void SIPEndPoint::OnRegistered | ( | const PString & | aor, | |
BOOL | wasRegistering | |||
) | [virtual] |
Callback called when a registration or an unregistration is successful. The BOOL indicates if the operation that failed was a registration or not.
BOOL SIPEndPoint::IsRegistered | ( | const PString & | aor | ) |
Returns TRUE if the given URL has been registered (e.g.: 6001@seconix.com).
BOOL SIPEndPoint::IsSubscribed | ( | SIPSubscribe::SubscribeType | type, | |
const PString & | to | |||
) |
Returns TRUE if the endpoint is subscribed to some event for the given to address.
unsigned SIPEndPoint::GetRegistrationsCount | ( | ) | [inline] |
Returns the number of registered accounts.
virtual void SIPEndPoint::OnMessageFailed | ( | const SIPURL & | messageUrl, | |
SIP_PDU::StatusCodes | reason | |||
) | [virtual] |
Callback called when a message sent by the endpoint didn't reach its destination or when the proxy or remote endpoint returns an error code.
void SIPEndPoint::SetMIMEForm | ( | BOOL | v | ) | [inline] |
BOOL SIPEndPoint::GetMIMEForm | ( | ) | const [inline] |
void SIPEndPoint::SetMaxRetries | ( | unsigned | r | ) | [inline] |
unsigned SIPEndPoint::GetMaxRetries | ( | ) | const [inline] |
void SIPEndPoint::SetRetryTimeouts | ( | const PTimeInterval & | t1, | |
const PTimeInterval & | t2 | |||
) | [inline] |
const PTimeInterval& SIPEndPoint::GetRetryTimeoutMin | ( | ) | const [inline] |
const PTimeInterval& SIPEndPoint::GetRetryTimeoutMax | ( | ) | const [inline] |
void SIPEndPoint::SetNonInviteTimeout | ( | const PTimeInterval & | t | ) | [inline] |
const PTimeInterval& SIPEndPoint::GetNonInviteTimeout | ( | ) | const [inline] |
void SIPEndPoint::SetPduCleanUpTimeout | ( | const PTimeInterval & | t | ) | [inline] |
const PTimeInterval& SIPEndPoint::GetPduCleanUpTimeout | ( | ) | const [inline] |
void SIPEndPoint::SetInviteTimeout | ( | const PTimeInterval & | t | ) | [inline] |
const PTimeInterval& SIPEndPoint::GetInviteTimeout | ( | ) | const [inline] |
void SIPEndPoint::SetAckTimeout | ( | const PTimeInterval & | t | ) | [inline] |
const PTimeInterval& SIPEndPoint::GetAckTimeout | ( | ) | const [inline] |
void SIPEndPoint::SetRegistrarTimeToLive | ( | const PTimeInterval & | t | ) | [inline] |
const PTimeInterval& SIPEndPoint::GetRegistrarTimeToLive | ( | ) | const [inline] |
void SIPEndPoint::SetNotifierTimeToLive | ( | const PTimeInterval & | t | ) | [inline] |
const PTimeInterval& SIPEndPoint::GetNotifierTimeToLive | ( | ) | const [inline] |
void SIPEndPoint::SetNATBindingTimeout | ( | const PTimeInterval & | t | ) | [inline] |
const PTimeInterval& SIPEndPoint::GetNATBindingTimeout | ( | ) | const [inline] |
void SIPEndPoint::AddTransaction | ( | SIPTransaction * | transaction | ) | [inline] |
PSafePtr<SIPTransaction> SIPEndPoint::GetTransaction | ( | const PString & | transactionID, | |
PSafetyMode | mode = PSafeReadWrite | |||
) | [inline] |
unsigned SIPEndPoint::GetNextCSeq | ( | ) | [inline] |
Return the next CSEQ for the next transaction.
BOOL SIPEndPoint::GetAuthentication | ( | const PString & | authRealm, | |
SIPAuthentication & | ||||
) |
Return the SIPAuthentication for a specific realm.
Return the registered party name URL for the given host.
That URL can be used in the FORM field of the PDU's. The host part can be different from the registration domain.
virtual SIPURL SIPEndPoint::GetDefaultRegisteredPartyName | ( | ) | [virtual] |
Return the default registered party name URL.
SIPURL SIPEndPoint::GetContactURL | ( | const OpalTransport & | transport, | |
const PString & | userName, | |||
const PString & | host | |||
) |
Return the contact URL for the given host and user name based on the listening port of the registration to that host.
That URL can be used as as contact field in outgoing requests.
The URL is translated if required.
If no active registration is used, return the result of GetLocalURL on the given transport.
SIPURL SIPEndPoint::GetLocalURL | ( | const OpalTransport & | transport, | |
const PString & | userName = PString::Empty() | |||
) |
Return the local URL for the given transport and user name. That URL can be used as via address, and as contact field in outgoing requests.
The URL is translated if required.
If the transport is not running, the first listener transport will be used, if any.
transport | Transport on which we can receive new requests |
userName | The user name part of the contact field |
const SIPURL& SIPEndPoint::GetProxy | ( | ) | const [inline] |
Return the outbound proxy URL, if any.
void SIPEndPoint::SetProxy | ( | const SIPURL & | url | ) |
Set the outbound proxy URL.
void SIPEndPoint::SetProxy | ( | const PString & | hostname, | |
const PString & | username, | |||
const PString & | password | |||
) |
Set the outbound proxy URL.
virtual PString SIPEndPoint::GetUserAgent | ( | ) | const [virtual] |
Get the User Agent for this endpoint. Default behaviour returns an empty string so the SIPConnection builds a valid string from the productInfo data.
These semantics are for backward compatibility.
void SIPEndPoint::SetUserAgent | ( | const PString & | str | ) | [inline] |
Set the User Agent for the endpoint.
BOOL SIPEndPoint::SendResponse | ( | SIP_PDU::StatusCodes | code, | |
OpalTransport & | transport, | |||
SIP_PDU & | pdu | |||
) |
void SIPEndPoint::SetNATBindingRefreshMethod | ( | const NATBindingRefreshMethod | m | ) | [inline] |
Set the NAT Binding Refresh Method
virtual SIPRegisterHandler* SIPEndPoint::CreateRegisterHandler | ( | const PString & | to, | |
const PString & | authName, | |||
const PString & | password, | |||
const PString & | realm, | |||
int | expire, | |||
const PTimeInterval & | minRetryTime, | |||
const PTimeInterval & | maxRetryTime | |||
) | [virtual] |
SIPEndPoint::PDECLARE_NOTIFIER | ( | PThread | , | |
SIPEndPoint | , | |||
TransportThreadMain | ||||
) | [protected] |
SIPEndPoint::PDECLARE_NOTIFIER | ( | PTimer | , | |
SIPEndPoint | , | |||
NATBindingRefresh | ||||
) | [protected] |
void SIPEndPoint::ParsePartyName | ( | const PString & | remoteParty, | |
PString & | party | |||
) | [protected] |
remoteParty | Party name string. |
party | Parsed party name, after e164 lookup |
SIPURL SIPEndPoint::proxy [protected] |
PString SIPEndPoint::userAgentString [protected] |
BOOL SIPEndPoint::mimeForm [protected] |
unsigned SIPEndPoint::maxRetries [protected] |
PTimeInterval SIPEndPoint::retryTimeoutMin [protected] |
PTimeInterval SIPEndPoint::retryTimeoutMax [protected] |
PTimeInterval SIPEndPoint::nonInviteTimeout [protected] |
PTimeInterval SIPEndPoint::pduCleanUpTimeout [protected] |
PTimeInterval SIPEndPoint::inviteTimeout [protected] |
PTimeInterval SIPEndPoint::ackTimeout [protected] |
PTimeInterval SIPEndPoint::registrarTimeToLive [protected] |
PTimeInterval SIPEndPoint::notifierTimeToLive [protected] |
PTimeInterval SIPEndPoint::natBindingTimeout [protected] |
SIPHandlersList SIPEndPoint::activeSIPHandlers [protected] |
PSafeDictionary<PString, SIPTransaction> SIPEndPoint::transactions [protected] |
PTimer SIPEndPoint::natBindingTimer [protected] |
NATBindingRefreshMethod SIPEndPoint::natMethod [protected] |
PAtomicInteger SIPEndPoint::lastSentCSeq [protected] |