From a0236e6d9261197ca80097bdcd4af384bbb9e8a6 Mon Sep 17 00:00:00 2001 From: Florian Xaver Date: Tue, 2 Jan 2024 06:33:16 +0100 Subject: [PATCH] Fix answering a re-INVITE (#3770) Change-Id: I98500a12fd319c70d56a2a4fe49142e97fe49608 --- pjsip/src/pjsua-lib/pjsua_call.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pjsip/src/pjsua-lib/pjsua_call.c b/pjsip/src/pjsua-lib/pjsua_call.c index 1faf16e0d..96b24f7e6 100644 --- a/pjsip/src/pjsua-lib/pjsua_call.c +++ b/pjsip/src/pjsua-lib/pjsua_call.c @@ -2663,6 +2663,7 @@ PJ_DEF(pj_status_t) pjsua_call_answer2(pjsua_call_id call_id, goto on_return; if (!call->inv->invite_tsx || + call->inv->invite_tsx->role != PJSIP_ROLE_UAC || call->inv->invite_tsx->state >= PJSIP_TSX_STATE_COMPLETED) { PJ_LOG(3,(THIS_FILE, "Unable to answer call (no incoming INVITE or "