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.
| 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. |
| 827 | bool 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. |
| 847 | bool SipMOInviteClientTransactionLayer::moPeriodicService() |
no test coverage detected