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

Method MOSMSRetry

SIP/SIPBase.cpp:827–844  ·  view source on GitHub ↗

This is a temporary routine to work around bugs in smqueue. Resend the message with changes (gPeerIsBuggySmqueue, set/reset by the caller) to see if it works any better.

Source from the content-addressed store, hash-verified

825// This is a temporary routine to work around bugs in smqueue.
826// Resend the message with changes (gPeerIsBuggySmqueue, set/reset by the caller) to see if it works any better.
827bool SipMOInviteClientTransactionLayer::MOSMSRetry()
828{
829 LOG(INFO);
830 SipDialog *oldDialog = dgGetDialog();
831 FullMobileId fromMsId(oldDialog->sipLocalUsername());
832 SipDialog *newDialog = SipDialog::newSipDialogMOSMS(
833 mTranId,
834 fromMsId, // caller imsi
835 oldDialog->sipRemoteUsername(),
836 oldDialog->smsBody,
837 oldDialog->smsContentType);
838 gNewTransactionTable.ttSetDialog(oldDialog->mTranId,newDialog);
839 return true; // success
840 //dialog->mLocalCSeq = gSipInterface.nextInviteCSeqNum(); // formerly: random()%600;
841 //dialog->dsSetCallId(globallyUniqueId(""));
842 //dialog->mLocalHeader.setTag(gPeerIsBuggySmqueue ? make_tag() : "");
843 //dialog->MOSMSSendMESSAGE(mInvite->msmBody,mInvite->msmContentType);
844}
845
846// Return TRUE to remove the dialog.
847bool SipMOInviteClientTransactionLayer::moPeriodicService()

Callers 1

handleSMSResponseMethod · 0.80

Calls 3

sipLocalUsernameMethod · 0.80
sipRemoteUsernameMethod · 0.80
ttSetDialogMethod · 0.80

Tested by

no test coverage detected