Hangup call in crossover scenario between CANCEL and 200 response (#2994)

remotes/origin/update_contact_on_ip_change
sauwming 3 years ago committed by GitHub
parent 088690b607
commit c4531e0ddc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4843,6 +4843,14 @@ static void pjsua_call_on_state_changed(pjsip_inv_session *inv,
sizeof(call->last_text_buf_));
break;
case PJSIP_INV_STATE_CONFIRMED:
if (call->hanging_up) {
/* This can happen if there is a crossover between
* our CANCEL request and the remote's 200 response.
* So we send BYE here.
*/
call_inv_end_session(call, 200, NULL, NULL);
return;
}
pj_gettimeofday(&call->conn_time);
if (call->trickle_ice.enabled) {

Loading…
Cancel
Save