Skip to content

Commit

Permalink
[Fixed] RTP timeout for video slides stream
Browse files Browse the repository at this point in the history
  • Loading branch information
nicotyze committed Jun 29, 2023
1 parent 5a35c35 commit b33c2f1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/call.c
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,6 @@ int call_streams_alloc(struct call *call)
baresip_vidfiltl(),
!call->got_offer,
video_error_handler, call);
stream_enable_rtp_timeout(video_strm(call->slides), 0);

if (err)
return err;
Expand Down Expand Up @@ -2052,6 +2051,7 @@ static void set_established_mdir(void *arg)
static void sipsess_estab_handler(const struct sip_msg *msg, void *arg)
{
struct call *call = arg;
char * content = NULL;
(void)msg;

MAGIC_CHECK(call);
Expand All @@ -2069,7 +2069,9 @@ static void sipsess_estab_handler(const struct sip_msg *msg, void *arg)

FOREACH_STREAM {
struct stream *strm = le->data;
stream_enable_rtp_timeout(strm, call->rtp_timeout_ms);
content = sdp_media_rattr(stream_sdpmedia(strm), "content");
if(0!=str_cmp(content, "slides"))
stream_enable_rtp_timeout(strm, call->rtp_timeout_ms);
}
}

Expand Down

0 comments on commit b33c2f1

Please sign in to comment.