[sofia-sip] fix 183 received right after 200 (#67)

This commit is contained in:
Seven Du 2019-12-12 06:41:17 +08:00 committed by Andrey Volk
parent 13dc7629d6
commit 9248aa05ec
2 changed files with 5 additions and 1 deletions

View File

@ -1 +1 @@
Fri Nov 08 08:54:20 CDT 2019 Wed Dec 11 15:38:35 MST 2019

View File

@ -1040,6 +1040,10 @@ int nua_client_response(nua_client_request_t *cr,
if (cr->cr_restarting) if (cr->cr_restarting)
return 0; return 0;
if (cr->cr_status == 200 && status < 200) { // ignore 183 follows 200
return 0;
}
nua_client_request_ref(cr); nua_client_request_ref(cr);
cr->cr_status = status; cr->cr_status = status;