From a9636ff17c7f3c2b770a939774c5826e5c492e3f Mon Sep 17 00:00:00 2001 From: Kaian Date: Thu, 31 Oct 2019 18:26:42 +0100 Subject: [PATCH] sip: update DIVERTED call status valid response codes #283 --- src/sip_call.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sip_call.c b/src/sip_call.c index 3df079b..515280b 100644 --- a/src/sip_call.c +++ b/src/sip_call.c @@ -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; }