Fixed bug in pjsua_call_answer() (#3818)

This commit is contained in:
sauwming 2024-01-03 13:26:43 +08:00 committed by GitHub
parent 4dfbdf7b1f
commit c6fd43208d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2745,7 +2745,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->role != PJSIP_ROLE_UAS ||
call->inv->invite_tsx->state >= PJSIP_TSX_STATE_COMPLETED)
{
PJ_LOG(3,(THIS_FILE, "Unable to answer call (no incoming INVITE or "