12#define RESIPROCATE_SUBSYSTEM resip::Subsystem::REPRO
15 : mPublicationDb(dum.getPublicationPersistenceManager())
27 if (h->getDocumentKey() == h->getPublisher())
29 InfoLog(<<
"PresencePublicationHandler::onInitial: etag=" << etag <<
", expires=" << expires <<
", msg=" << std::endl << pub);
30 h->send(h->accept(200));
34 WarningLog(<<
"PresencePublicationHandler::onInitial: etag=" << etag <<
" rejected since thirdparty publication: dockey=" << h->getDocumentKey() <<
" doesn't match publisher=" << h->getPublisher());
35 h->send(h->accept(403));
42 InfoLog(<<
"PresencePublicationHandler::onExpired: etag=" << etag);
53 if (h->getDocumentKey() == h->getPublisher())
55 InfoLog(<<
"PresencePublicationHandler::onRefresh: etag=" << etag <<
", expires=" << expires <<
", msg=" << std::endl << pub);
56 h->send(h->accept(200));
60 WarningLog(<<
"PresencePublicationHandler::onRefresh: etag=" << etag <<
" rejected since thirdparty publication: dockey=" << h->getDocumentKey() <<
" doesn't match publisher=" << h->getPublisher());
61 h->send(h->accept(403));
73 if (h->getDocumentKey() == h->getPublisher())
75 InfoLog(<<
"PresencePublicationHandler::onUpdate: etag=" << etag <<
", expires=" << expires <<
", msg=" << std::endl << pub);
76 h->send(h->accept(200));
80 WarningLog(<<
"PresencePublicationHandler::onUpdate: etag=" << etag <<
" rejected since thirdparty publication: dockey=" << h->getDocumentKey() <<
" doesn't match publisher=" << h->getPublisher());
81 h->send(h->accept(403));
88 InfoLog(<<
"PresencePublicationHandler::onRemoved: etag=" << etag <<
", expires=" << expires <<
", msg=" << std::endl << pub);
#define WarningLog(args_)
virtual void onRefresh(resip::ServerPublicationHandle, const resip::Data &etag, const resip::SipMessage &pub, const resip::Contents *contents, const resip::SecurityAttributes *attrs, uint32_t expires)
virtual void onRemoved(resip::ServerPublicationHandle h, const resip::Data &etag, const resip::SipMessage &pub, uint32_t expires)
virtual void onUpdate(resip::ServerPublicationHandle h, const resip::Data &etag, const resip::SipMessage &pub, const resip::Contents *contents, const resip::SecurityAttributes *attrs, uint32_t expires)
virtual void onInitial(resip::ServerPublicationHandle h, const resip::Data &etag, const resip::SipMessage &pub, const resip::Contents *contents, const resip::SecurityAttributes *attrs, uint32_t expires)
virtual void onExpired(resip::ServerPublicationHandle h, const resip::Data &etag)
PresencePublicationHandler(resip::DialogUsageManager &dum)
Base class for all SIP body types.
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
Represents a SIP message.
This Class is used to implement a primitive form of RPC using loose XML formatting.
dcm! – add UnusedChecking(_enum) below;