Doesnt seem like messages need the private headers.
| 1411 | |
| 1412 | // Doesnt seem like messages need the private headers. |
| 1413 | void SipMTInviteServerTransactionLayer::MTSMSReply(int code, const char *explanation) // , const L3LogicalChannel *chan) |
| 1414 | { |
| 1415 | LOG(INFO) <<sbText(); |
| 1416 | // If this operation was initiated from the CLI, there was no MESSAGE |
| 1417 | if (mInvite) { // It is a MESSAGE in this case, not an INVITE |
| 1418 | //2-2014: the reply to MESSAGE must include the to-field, so we pass the dialog to SIpMessageReply |
| 1419 | SipMessageReply reply(mInvite,code,string(explanation),this); // previous: NULL); |
| 1420 | sipWrite(&reply); |
| 1421 | } else { |
| 1422 | LOG(INFO) << "clearing CLI-generated transaction" <<sbText(); |
| 1423 | } |
| 1424 | setSipState(code == 200 ? Cleared : SSFail); |
| 1425 | } |
| 1426 | |
| 1427 | // This can only be used for early errors before we get the ACK. |
| 1428 | void SipMTInviteServerTransactionLayer::MTCEarlyError(int code, const char*reason) // The message must be 300-699. |