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

Method MTCEarlyError

SIP/SIPBase.cpp:1428–1437  ·  view source on GitHub ↗

This can only be used for early errors before we get the ACK.

Source from the content-addressed store, hash-verified

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.
1429{
1430 LOG(DEBUG);
1431 // TODO: What if we were already ACKed?
1432 setSipState(MODError);
1433 SipMessageReply reply(getInvite(),code,string(reason),this);
1434 mtWriteLowSide(&reply);
1435 if (dgIsInvite()) { setTimerG(); }
1436 setTimerH();
1437}
1438
1439// This is called for the second and subsequent received INVITEs as well as the ACK.
1440// We send the current response, whatever it is.

Callers 1

dialogCancelMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected