Skip to content

Commit 1e6c37b

Browse files
sauwmingtrengginas
authored andcommitted
Fixed bug in pjsua_call_answer() (#3818)
1 parent dda5b9d commit 1e6c37b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pjsip/src/pjsua-lib/pjsua_call.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2745,7 +2745,7 @@ PJ_DEF(pj_status_t) pjsua_call_answer2(pjsua_call_id call_id,
27452745
goto on_return;
27462746

27472747
if (!call->inv->invite_tsx ||
2748-
call->inv->invite_tsx->role != PJSIP_ROLE_UAC ||
2748+
call->inv->invite_tsx->role != PJSIP_ROLE_UAS ||
27492749
call->inv->invite_tsx->state >= PJSIP_TSX_STATE_COMPLETED)
27502750
{
27512751
PJ_LOG(3,(THIS_FILE, "Unable to answer call (no incoming INVITE or "

0 commit comments

Comments
 (0)