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

Method dsSetLocalMO

SIP/SIPBase.cpp:334–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332
333
334void DialogStateVars::dsSetLocalMO(const FullMobileId &msid, bool addTag)
335{
336 // We dont really have to check for collisions; our ids were vanishingly unlikely to collide
337 // before and now the time is encoded into it as well.
338 //string callid;
339 //do { callid = globallyUniqueId(""); } while (gSipInterface.findDialogsByCallId(callid,false));
340 dsSetCallId(globallyUniqueId(""));
341
342 string username;
343 {
344 // IMSI gets prefixed with "IMSI" to form a SIP username
345 username = msid.fmidUsername();
346 }
347 dsSetLocalUri(makeUri(username,localIPAndPort()));
348 //mSipUsername = username;
349 LOG(DEBUG) << "set user MO"<<LOGVAR(msid)<<LOGVAR(username)<<LOGVARM(mCallId) << dsToString();
350 if (addTag) {
351 mLocalHeader.setTag(make_tag());
352 }
353}
354
355// We always need a local tag, but handover adds its own.
356void DialogStateVars::dsSetLocalHeaderMT(SipPreposition *toheader, bool addTag)

Callers 3

newSipDialogMOSMSMethod · 0.80
newSipDialogMOUssdMethod · 0.80
newSipDialogMOCMethod · 0.80

Calls 6

globallyUniqueIdFunction · 0.85
makeUriFunction · 0.85
localIPAndPortFunction · 0.85
make_tagFunction · 0.85
fmidUsernameMethod · 0.80
setTagMethod · 0.80

Tested by

no test coverage detected