Skip to content

Commit

Permalink
Fix assertion in sending BYE for a timeout transaction.
Browse files Browse the repository at this point in the history
  • Loading branch information
nanangizz committed Oct 17, 2024
1 parent e8eab5e commit d783020
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pjsip/src/pjsip-ua/sip_inv.c
Original file line number Diff line number Diff line change
Expand Up @@ -4664,7 +4664,11 @@ static pj_bool_t handle_uac_tsx_response(pjsip_inv_session *inv,
pj_status_t status;

inv_set_cause(inv, tsx->status_code, &tsx->status_text);
inv_set_state(inv, PJSIP_INV_STATE_DISCONNECTED, e);

/* Do not shift state to DISCONNECTED here, as it will destroy the
* invite session and the BYE sending below will raise an assertion.
*/
//inv_set_state(inv, PJSIP_INV_STATE_DISCONNECTED, e);

/* Send BYE */
status = pjsip_dlg_create_request(inv->dlg, pjsip_get_bye_method(),
Expand Down

0 comments on commit d783020

Please sign in to comment.