Browse Source

TT#91151 save raw protocol string

Change-Id: I21bee5b28522ef01fa5902c0b1fc69e2cade8434
pull/1295/head
Richard Fuchs 5 years ago
parent
commit
ffaed806c3
3 changed files with 5 additions and 0 deletions
  1. +2
    -0
      daemon/call.c
  2. +1
    -0
      daemon/sdp.c
  3. +2
    -0
      include/call.h

+ 2
- 0
daemon/call.c View File

@ -2076,6 +2076,8 @@ static void __update_media_protocol(struct call_media *media, struct call_media
}
/* deduct protocol from stream parameters received */
call_str_cpy(other_media->call, &other_media->protocol_str, &sp->protocol_str);
if (other_media->protocol != sp->protocol) {
other_media->protocol = sp->protocol;
/* If the endpoint changes the protocol, we reset the other side's


+ 1
- 0
daemon/sdp.c View File

@ -1530,6 +1530,7 @@ int sdp_streams(const GQueue *sessions, GQueue *streams, struct sdp_ng_flags *fl
sp->consecutive_ports = media->port_count;
sp->num_ports = sp->consecutive_ports * 2; // only do *=2 for RTP streams?
sp->protocol_str = media->transport;
sp->protocol = transport_protocol(&media->transport);
sp->type = media->media_type_str;
sp->type_id = media->media_type_id;


+ 2
- 0
include/call.h View File

@ -244,6 +244,7 @@ struct stream_params {
struct endpoint rtcp_endpoint;
unsigned int consecutive_ports;
unsigned int num_ports;
str protocol_str;
const struct transport_protocol *protocol;
str format_str;
GQueue sdes_params; // slice-alloc'd
@ -333,6 +334,7 @@ struct call_media {
unsigned int unique_id; /* RO */
str type;
enum media_type type_id;
str protocol_str;
const struct transport_protocol *protocol;
str format_str;
sockfamily_t *desired_family;


Loading…
Cancel
Save