From 254dee8ae92154c3ce68ccbb8a710cb1cba20ab5 Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Tue, 25 Mar 2025 16:54:01 +0100 Subject: [PATCH] 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 --- daemon/sdp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/daemon/sdp.c b/daemon/sdp.c index ab5ad57ef..d37bc93a0 100644 --- a/daemon/sdp.c +++ b/daemon/sdp.c @@ -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) {