Skip to content

Commit

Permalink
MT#60476 sdp_create: add sdp_manipulations_add() support
Browse files Browse the repository at this point in the history
Support addition SDP manipulations for sdp_create approach.

Change-Id: I181ec451068c9163fdfb875ace7bec1356fcbba6
  • Loading branch information
zenichev committed Sep 30, 2024
1 parent 3d97bd8 commit 9f09680
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions daemon/sdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -3635,6 +3635,10 @@ static void sdp_out_add_other(GString *out, struct call_monologue *monologue,

/* carry other session level a= attributes to the outgoing SDP */
monologue->sdp_attr_print(out, monologue, flags);

/* ADD arbitrary SDP manipulations for a session sessions */
struct sdp_manipulations *sdp_manipulations = sdp_manipulations_get_by_id(flags, MT_UNKNOWN);
sdp_manipulations_add(out, sdp_manipulations);
}

static void sdp_out_add_bandwidth(GString *out, struct call_monologue *monologue,
Expand Down Expand Up @@ -3986,6 +3990,10 @@ int sdp_create(str *out, struct call_monologue *monologue, sdp_ng_flags *flags)

/* handle second OSRTP part */
sdp_out_handle_osrtp2(s, media, prtp);

/* ADD arbitrary SDP manipulations for audio/video media sessions */
struct sdp_manipulations *sdp_manipulations = sdp_manipulations_get_by_id(flags, media->type_id);
sdp_manipulations_add(s, sdp_manipulations);
}

/* The SDP version gets increased in case:
Expand Down

0 comments on commit 9f09680

Please sign in to comment.