Browse Source

MT#55283 fix legacy protocols

Legacy protocols don't set sp->num_ports. Use a sensible default for
this case.

Probably a regression from 2d2d7665b

Change-Id: Idcbc477a68b6db70a91a5d082736ac642c50ab15
(cherry picked from commit 302f7d6457)
mr10.5.3
Richard Fuchs 3 years ago
parent
commit
880eb20623
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      daemon/call.c

+ 2
- 0
daemon/call.c View File

@ -2774,6 +2774,8 @@ static int __media_init_from_flags(struct call_media *other_media, struct call_m
unsigned int proto_num_ports(unsigned int sp_ports, struct call_media *media, struct sdp_ng_flags *flags,
bool allow_offer_split)
{
if (sp_ports == 0)
return 2;
if (sp_ports != 2)
return sp_ports;
if (!proto_is_rtp(media->protocol))


Loading…
Cancel
Save