MCPcopy Create free account
hub / github.com/RangeNetworks/openbts / tuMapAdd

Method tuMapAdd

SIP/SIP2Interface.cpp:217–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217void SipTUMap::tuMapAdd(SipTransaction*tup) {
218 LOG(DEBUG) <<LOGVAR(tup);
219 string key = tuMakeKey(tup);
220 if (SipTransaction *existingTU = mTUMap.readNoBlock(key)) {
221 LOG(ERR) << "Warning: adding second SipTransaction with branch:"<<tup->stBranch()
222 <<LOGVAR(key) <<LOGVAR(existingTU) <<LOGVAR(tup);
223 }
224 // Deletes the old.
225 // Take care not to create deadlock here? To delete the old SipTransaction we have to lock it.
226 mTUMap.write(key,tup);
227}
228
229void SipTUMap::tuMapRemove(SipTransaction*tup, bool /*whine*/) {
230 LOG(DEBUG) <<LOGVAR(tup);

Callers 1

sctStartMethod · 0.80

Calls 2

stBranchMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected