MT#62272 moh: consider `moh-attr-name` as generic

To be able to keep on passing it through,
to let all other further rtpengine instances see it.

Change-Id: Ia0b6d90b9e54ab09a7a99bd95228b9bddd4e466b
pull/1923/head
Donat Zenichev 2 months ago
parent 9a3c54a523
commit 254dee8ae9

@ -1859,8 +1859,11 @@ int sdp_streams(const sdp_sessions_q *sessions, sdp_streams_q *streams, sdp_ng_f
if (rtpe_config.moh_prevent_double_hold) {
attr = attr_get_by_id(&session->attributes, ATTR_MOH_ATTR_NAME);
if (attr)
if (attr) {
flags->moh_double_hold = 1;
/* consider as generic, copy-paste into out SDP */
sdp_attr_append1(&flags->generic_attributes, attr);
}
}
for (__auto_type k = session->media_streams.head; k; k = k->next) {

Loading…
Cancel
Save