1#if defined(HAVE_CONFIG_H)
22#define RESIPROCATE_SUBSYSTEM resip::Subsystem::REPRO
32 DebugLog(<<
"Monkey handling request: " << *
this <<
"; reqcontext = " << context);
63 if(contacts.size() > 0)
66 std::map<resip::Data,resip::ContactList> outboundBatch;
68 for(resip::ContactList::iterator i = contacts.begin(); i != contacts.end(); ++i)
78 batch.push_back(target);
82 outboundBatch[contact.
mInstance].push_back(contact);
94 std::map<resip::Data,resip::ContactList>::iterator o;
96 for(o=outboundBatch.begin(); o!=outboundBatch.end(); ++o)
141 std::unique_ptr<ApplicationMessage> app(async);
#define resip_assert(x)
This file needs to work for both C and C++ code.
resip::Dispatcher * mUserInfoDispatcher
virtual processor_action_t process(RequestContext &)
resip::RegistrationPersistenceManager & mStore
static bool instanceCompare(const resip::ContactInstanceRecord &lhs, const resip::ContactInstanceRecord &rhs)
std::vector< short > & getOriginatorAddress()
virtual const std::vector< short > & getAddress() const
resip::SipMessage & getOriginalRequest()
Returns the SipMessage associated with the server transaction.
resip::Message * getCurrentEvent()
Returns the event that we are currently working on.
ResponseContext & getResponseContext()
void sendResponse(resip::SipMessage &response)
resip::Data getTransactionId() const
bool addTargetBatch(TargetPtrList &targets, bool highPriority=false)
Adds a batch of Targets.
static bool priorityMetricCompare(const Target *lhs, const Target *rhs)
const resip::Data & A1() const
const resip::Data & user() const
const resip::Data & domain() const
const resip::Data & realm() const
bool empty() const noexcept
Checks whether the Data is empty.
virtual bool post(std::unique_ptr< resip::ApplicationMessage > &work)
Posts a message to this thread bank.
static void makeResponse(SipMessage &response, const SipMessage &request, int responseCode, const Data &reason=Data::Empty, const Data &hostname=Data::Empty, const Data &warning=Data::Empty)
Make a response to a provided request.
virtual void unlockRecord(const Uri &aor)=0
virtual void lockRecord(const Uri &aor)=0
virtual void removeContact(const Uri &aor, const ContactInstanceRecord &rec)=0
virtual void getContacts(const Uri &aor, ContactList &container)=0
Represents a SIP message.
const RequestLine & header(const RequestLineType &l) const
Returns the RequestLine. This is only valid for request messages.
const Tuple & getSource() const
Returns the source tuple that the message was received from only makes sense for messages received fr...
static uint64_t getTimeSecs()
Returns the current clock time in seconds.
TransportType getType() const
Represents the "SIP-URI" and "SIPS-URI" elements in the RFC 3261 grammar.
Uri getAorAsUri(TransportType transportTypeToRemoveDefaultPort=UNKNOWN_TRANSPORT) const
This Class is used to implement a primitive form of RPC using loose XML formatting.
std::list< Target * > TargetPtrList
dcm! – add UnusedChecking(_enum) below;
RequestLineType h_RequestLine
std::list< ContactInstanceRecord > ContactList
unsigned __int64 uint64_t