Browse Source

MT#63317 track extensions by known ID

Change-Id: I17f20bc8be60d779d1a3d18616bb518062f74e6b
rfuchs/dtls-ice
Richard Fuchs 3 months ago
parent
commit
3ef034a675
2 changed files with 9 additions and 1 deletions
  1. +8
    -1
      daemon/call.c
  2. +1
    -0
      include/call.h

+ 8
- 1
daemon/call.c View File

@ -2884,8 +2884,9 @@ __attribute__((nonnull(1)))
static void media_reset_extmap(struct call_media *media,
bool (*exclude)(struct rtp_extension *))
{
// reset basic table
// reset basic tables
memset(media->extmap_a, 0, sizeof(media->extmap_a));
memset(media->extmap_id, 0, sizeof(media->extmap_id));
media->extmap_ops = &extmap_ops_short;
if (!exclude) {
@ -2910,6 +2911,9 @@ static void media_reset_extmap(struct call_media *media,
else
media->extmap_ops = &extmap_ops_long;
if (ext->handler.id < RTP_EXT_NUM)
media->extmap_id[ext->handler.id] = ext;
ele = ele->next;
continue;
}
@ -2943,6 +2947,9 @@ static void media_init_extmap(struct call_media *media, struct rtp_extension *ex
media->extmap_a[ext->id - 1] = ext;
else
media->extmap_ops = &extmap_ops_long;
if (ext->handler.id < RTP_EXT_NUM)
media->extmap_id[ext->handler.id] = ext;
}
__attribute__((nonnull(1, 2)))


+ 1
- 0
include/call.h View File

@ -503,6 +503,7 @@ struct call_media {
extmap_q extmap; // container
struct rtp_extension *extmap_a[14]; // 1-14 -> [0..13]
struct rtp_extension *extmap_id[RTP_EXT_NUM];
extmap_ht extmap_ht;
const struct extmap_ops *extmap_ops;
ext_name_ht ext_name_ht;


Loading…
Cancel
Save