This can only be used for early errors before we get the ACK.
| 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. |
| 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. |