7#define RESIPROCATE_SUBSYSTEM Subsystem::DUM
14 InfoLog (<<
"ClientRegistrationHandler::onFlowTerminated, refreshing registration to open new flow");
21 InfoLog(<<
"ClientRegistrationHandler::onRefreshRequired, returning true");
42 expires = msg.
header(h_Expires).value();
47 uint32_t minExpires = masterProfile->serverRegistrationMinExpiresTime();
49 if (expires < minExpires)
56 uint32_t maxExpires = masterProfile->serverRegistrationMaxExpiresTime();
58 if (expires > maxExpires)
67 expires = masterProfile->serverRegistrationDefaultExpiresTime();
84 if (contact.
exists(p_expires))
86 expires = contact.
param(p_expires);
91 uint32_t minExpires = masterProfile->serverRegistrationMinExpiresTime();
93 if (expires < minExpires)
100 uint32_t maxExpires = masterProfile->serverRegistrationMaxExpiresTime();
102 if (expires > maxExpires)
104 expires = maxExpires;
#define resip_assert(x)
This file needs to work for both C and C++ code.
virtual void onFlowTerminated(ClientRegistrationHandle)
Called when a TCP or TLS flow to the server has terminated.
virtual bool onRefreshRequired(ClientRegistrationHandle, const SipMessage &lastRequest)
Called before attempting to refresh a registration Return true if the refresh should go ahead or fals...
bool isWellFormed() const
Returns true iff this element was parsed successfully, according to the implementation of parse().
Represents the "name-addr" and the "addr-spec" elements in the RFC 3261 grammar.
bool exists(const Param< NameAddr > ¶mType) const
const Data & param(const ExtensionParameter ¶m) const
Const accessor for non-natively-supported parameter types.
virtual void getContactExpires(const NameAddr &contact, const std::shared_ptr< MasterProfile > &masterProfile, uint32_t &expires, uint32_t &returnCode)
When processing a REGISTER request, return the desired expires value by processing this contact's exp...
virtual void getGlobalExpires(const SipMessage &msg, const std::shared_ptr< MasterProfile > &masterProfile, uint32_t &expires, uint32_t &returnCode)
When processing a REGISTER request, return the desired expires value when processing the "Expires" he...
Represents a SIP message.
bool empty(const HeaderBase &headerType) const
Returns true if the header field is present and non-empty, false otherwise.
const RequestLine & header(const RequestLineType &l) const
Returns the RequestLine. This is only valid for request messages.
dcm! – add UnusedChecking(_enum) below;