From 29b60da2d4dc113dd49d64dc53fe3256ade7cbe6 Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Wed, 18 Sep 2024 17:09:26 +0200 Subject: [PATCH] MT#60476 sdp_out_add_other: refactor to use attr manipulations Refactor the `sdp_out_add_other()` function to be compatible with the sdp attribute manipulations. Change-Id: I134b58c5126ff34804ebf9458faf8509250e097a --- daemon/sdp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/daemon/sdp.c b/daemon/sdp.c index 600a98602f..a55b4bb56e 100644 --- a/daemon/sdp.c +++ b/daemon/sdp.c @@ -3629,15 +3629,15 @@ static void sdp_out_add_other(GString *out, struct call_monologue *monologue, /* add loop protectio if required */ if (flags->loop_protect) - g_string_append_printf(out, "a=rtpengine:"STR_FORMAT"\r\n", STR_FMT(&rtpe_instance_id)); + append_attr_to_gstring(out, "rtpengine", &rtpe_instance_id, flags, media->type_id); /* ice-lite */ if (media_has_ice && media_has_ice_lite_self) - g_string_append_printf(out, "a=ice-lite\r\n"); + append_attr_to_gstring(out, "ice-lite", NULL, flags, media->type_id); /* group */ if (ms && ms->monologue && ms->monologue->sdp_session_group && flags->ice_option == ICE_FORCE_RELAY) - g_string_append_printf(out, "a=group:%s\r\n", ms->monologue->sdp_session_group); + append_attr_to_gstring(out, "group", &STR(ms->monologue->sdp_session_group), flags, media->type_id); /* carry other session level a= attributes to the outgoing SDP */ monologue->sdp_attr_print(out, monologue, flags);