Skip to content

Commit

Permalink
call: respect local media direction on incoming call
Browse files Browse the repository at this point in the history
  • Loading branch information
cspiel1 committed Sep 12, 2024
1 parent 2e42cba commit 06c86d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/call.c
Original file line number Diff line number Diff line change
Expand Up @@ -1186,6 +1186,11 @@ int call_progress(struct call *call)
vdir = m == ANSWERMODE_EARLY ? SDP_SENDRECV :
m == ANSWERMODE_EARLY_VIDEO ? SDP_RECVONLY :
SDP_INACTIVE;
enum sdp_dir ladir = SDP_SENDRECV;
enum sdp_dir lvdir = SDP_SENDRECV;
call_get_mdir(call, &ladir, &lvdir);
adir &= ladir;
vdir &= lvdir;

return call_progress_dir(call, adir, vdir);
}
Expand Down

0 comments on commit 06c86d4

Please sign in to comment.