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

Method MTSMSReply

SIP/SIPBase.cpp:1413–1425  ·  view source on GitHub ↗

Doesnt seem like messages need the private headers.

Source from the content-addressed store, hash-verified

1411
1412// Doesnt seem like messages need the private headers.
1413void 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.
1428void SipMTInviteServerTransactionLayer::MTCEarlyError(int code, const char*reason) // The message must be 300-699.

Callers 1

machineRunState1Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected