From 10cbbc324ff5d92a20b316c91e7e46ecc3cdfe8d Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Tue, 23 Jul 2024 16:08:32 +0200 Subject: [PATCH] MT#60476 monologue_subscribe_request: update last orig While processing subscriptions in `monologue_subscribe_request()` update the `->session_last_sdp_orig` related to the dest monologue. This can be then later used in the `sdp_create()` the user of which is `call_subscribe_request_ng()`. Change-Id: Iee503ca94f82e0e5334fcd787f984f1ed3f7ca4d --- daemon/call.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/daemon/call.c b/daemon/call.c index 7db3e8f7b..2cb63c7f7 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -3450,6 +3450,10 @@ int monologue_subscribe_request(const subscription_q *srms, struct call_monologu if (ret) return -1; } + + /* update last used origin: copy from source to the dest monologue */ + if (src_ml && src_ml->session_last_sdp_orig && !dst_ml->session_last_sdp_orig) + dst_ml->session_last_sdp_orig = sdp_orig_dup(src_ml->session_last_sdp_orig); } return 0; }