void startUnregister(const FullMobileId &msid, L3LogicalChannel *chan) { LOG(DEBUG) <<LOGVAR(msid); SipDialog *registrar = getRegistrar(); SipMessage *request = registrar->makeRegisterMsg(SIPDTUnregister,chan,"",msid,NULL); SipRegisterTU *reg = new SipRegisterTU(SipRegisterTU::KindUnRegister,registrar,(TranEntryId)0,request); delete request; // sctInitRegisterTransaction made a copy. Kind of wasteful. reg->sctStart(); }
void startRegister(TranEntryId tid, const FullMobileId &msid, const string rand, const string sres, L3LogicalChannel *chan) // msid is imsi and/or tmsi { LOG(DEBUG) <<LOGVAR(msid)<<LOGVAR(rand)<<LOGVAR(sres); // Kinda dumb to fish out the branch from the request, but its ok. SipDialog *registrar = getRegistrar(); SipMessage *request = registrar->makeRegisterMsg(SIPDTRegister,chan,rand,msid,sres.c_str()); SipRegisterTU *reg = new SipRegisterTU(SipRegisterTU::KindRegister,registrar,tid,request); delete request; // sctInitRegisterTransaction made a copy. Kind of wasteful. reg->sctStart(); }