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

Method createMTTransaction

SIP/SIPDialog.cpp:299–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297
298
299TranEntry *SipDialog::createMTTransaction(SipMessage *invite)
300{
301 // Create an incipient TranEntry. It does not have a TI yet.
302 TranEntry *tran = NULL;
303 //string& callerId = this->mRemoteUsername;
304 string callerId = sipRemoteDisplayname();
305 FullMobileId msid;
306 msid.mImsi = invite->smGetInviteImsi();
307 if (invite->isINVITE()) {
308 tran = TranEntry::newMTC(this,msid,GSM::L3CMServiceType::MobileTerminatedCall,callerId);
309 // Tell the sender we are trying.
310 this->MTCSendTrying();
311 } else {
312 assert(0);
313 }
314 return tran;
315}
316
317// If the cause is handoverOutbound, kill the dialog now: dont send a BYE, dont wait for any other incoming messsages.
318// Used for outbound handover, where the SIP session was transferred to another BTS.

Callers 1

handleInviteMethod · 0.80

Calls 3

smGetInviteImsiMethod · 0.80
isINVITEMethod · 0.80
MTCSendTryingMethod · 0.80

Tested by

no test coverage detected