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
rfuchs/gh1842
Donat Zenichev 1 year ago
parent c2c802ac24
commit 10cbbc324f

@ -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;
}

Loading…
Cancel
Save