| 332 | |
| 333 | |
| 334 | void 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. |
| 356 | void DialogStateVars::dsSetLocalHeaderMT(SipPreposition *toheader, bool addTag) |
no test coverage detected