Skip to content

Commit

Permalink
Fix answering a re-INVITE (#3770)
Browse files Browse the repository at this point in the history
Change-Id: I98500a12fd319c70d56a2a4fe49142e97fe49608
  • Loading branch information
wosrediinanatour authored and aberaud committed Jan 8, 2024
1 parent f38a5b3 commit 8d32e0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pjsip/src/pjsua-lib/pjsua_call.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit 8d32e0b

Please sign in to comment.