7#define RESIPROCATE_SUBSYSTEM Subsystem::DUM
30 InfoLog(<<
"ClientSubscriptionHandler::onFlowTerminated");
96 expires = msg.
header(h_Expires).value();
102 errorResponseCode = 423;
116 errorResponseCode = 400;
160 InfoLog(<<
"ServerSubscriptionHandler::onFlowTerminated");
virtual void onFlowTerminated(ClientSubscriptionHandle)
Called when a TCP or TLS flow to the server has terminated.
virtual void onReadyToSend(ClientSubscriptionHandle, SipMessage &msg)
called to allow app to adorn a message.
virtual void onNotifyNotReceived(ClientSubscriptionHandle)
Base class for all SIP body types.
virtual void onFlowTerminated(ServerSubscriptionHandle)
Called when a TCP or TLS flow to the server has terminated.
virtual bool hasMaxExpires() const
virtual void onExpiredByClient(ServerSubscriptionHandle, const SipMessage &sub, SipMessage ¬ify)
virtual void onNewSubscriptionFromRefer(ServerSubscriptionHandle, const SipMessage &sub)
virtual void onRefresh(ServerSubscriptionHandle, const SipMessage &sub)
virtual bool hasMinExpires() const
virtual void onNotifyAccepted(ServerSubscriptionHandle, const SipMessage &msg)
virtual void onExpired(ServerSubscriptionHandle, SipMessage ¬ify)
virtual uint32_t getMinExpires() const
virtual void onNotifyRejected(ServerSubscriptionHandle, const SipMessage &msg)
virtual void onError(ServerSubscriptionHandle, const SipMessage &msg)
const Mimes & getSupportedMimeTypes() const
virtual bool hasDefaultExpires() const
dcm! – a bit clunky, but really want these objects to not have state
virtual void onReadyToSend(ServerSubscriptionHandle, SipMessage &msg)
virtual uint32_t getMaxExpires() const
virtual void onPublished(ServerSubscriptionHandle associated, ServerPublicationHandle publication, const Contents *contents, const SecurityAttributes *attrs)
virtual uint32_t getDefaultExpires() const
virtual void getExpires(const SipMessage &msg, uint32_t &expires, int &errorResponseCode)
Default behavior is to use the expires value in the SipMessage, if it exists.
std::shared_ptr< SipMessage > neutralNotify()
void end(TerminateReason reason, const Contents *document=0, int retryAfter=0)
std::shared_ptr< SipMessage > accept(int statusCode=202)
void send(std::shared_ptr< SipMessage > msg) override
Represents a SIP message.
const RequestLine & header(const RequestLineType &l) const
Returns the RequestLine. This is only valid for request messages.
bool exists(const HeaderBase &headerType) const
Returns true if the given header field is present, false otherwise.
dcm! – add UnusedChecking(_enum) below;