sip: update DIVERTED call status valid response codes #283

This commit is contained in:
Kaian 2019-10-31 18:26:42 +01:00
parent f51e99cb40
commit a9636ff17c
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ call_update_state(sip_call_t *call, sip_msg_t *msg)
} else if (reqresp > 400 && call->invitecseq == msg->cseq) {
// Bob is not in the mood
call->state = SIP_CALLSTATE_REJECTED;
} else if (reqresp > 300) {
} else if (reqresp == 181 || reqresp == 302 || reqresp == 301) {
// Bob has diversion
call->state = SIP_CALLSTATE_DIVERTED;
}