aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2023-05-24 10:40:19 +0200
committerOliver Smith <osmith@sysmocom.de>2023-06-15 15:06:46 +0200
commit593cd88535489f3b7e5ee127d7ebd12491163f41 (patch)
tree7f2e181654e8e6760ab08c66c39f8e5dc2884ce1 /include
parentceca8e6d2d057c49b98a3cb4d8565c1220ca0f95 (diff)
transaction: move cc.codecs.remote -> cc.remote
Move remote out of codecs, as it will be used by CSD code as well. Otherwise we would need to store it twice (in cc.codecs.remote and cc.csd.remote). Related: OS#4394 Change-Id: I5d2e078db3b3437cb6feae40d8955912d7a297e4
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/msc/codec_filter.h13
-rw-r--r--include/osmocom/msc/transaction.h2
2 files changed, 7 insertions, 8 deletions
diff --git a/include/osmocom/msc/codec_filter.h b/include/osmocom/msc/codec_filter.h
index ca32e3c5d..c0d8f329c 100644
--- a/include/osmocom/msc/codec_filter.h
+++ b/include/osmocom/msc/codec_filter.h
@@ -40,9 +40,6 @@ struct codec_filter {
* Should be ignored if empty. */
struct sdp_audio_codecs bss;
- /* SDP as last received from the remote call leg. */
- struct sdp_msg remote;
-
/* After a channel was assigned, this reflects the chosen codec. */
struct sdp_audio_codec assignment;
@@ -55,10 +52,10 @@ struct codec_filter {
void codec_filter_set_ran(struct codec_filter *codec_filter, enum osmo_rat_type ran_type);
void codec_filter_set_bss(struct codec_filter *codec_filter,
const struct gsm0808_speech_codec_list *codec_list_bss_supported);
-int codec_filter_set_remote(struct codec_filter *codec_filter, const char *remote_sdp);
void codec_filter_set_local_rtp(struct codec_filter *codec_filter, const struct osmo_sockaddr_str *rtp);
-int codec_filter_run(struct codec_filter *codec_filter);
+int codec_filter_run(struct codec_filter *codec_filter, const struct sdp_msg *remote);
-int codec_filter_to_str_buf(char *buf, size_t buflen, const struct codec_filter *codec_filter);
-char *codec_filter_to_str_c(void *ctx, const struct codec_filter *codec_filter);
-const char *codec_filter_to_str(const struct codec_filter *codec_filter);
+int codec_filter_to_str_buf(char *buf, size_t buflen, const struct codec_filter *codec_filter,
+ const struct sdp_msg *remote);
+char *codec_filter_to_str_c(void *ctx, const struct codec_filter *codec_filter, const struct sdp_msg *remote);
+const char *codec_filter_to_str(const struct codec_filter *codec_filter, const struct sdp_msg *remote);
diff --git a/include/osmocom/msc/transaction.h b/include/osmocom/msc/transaction.h
index d886f2a5e..bfb32ad4f 100644
--- a/include/osmocom/msc/transaction.h
+++ b/include/osmocom/msc/transaction.h
@@ -105,6 +105,8 @@ struct gsm_trans {
struct gsm_mncc msg; /* stores setup/disconnect/release message */
bool mncc_initiated; /* Whether an MNCC Release is necessary on failure */
struct osmo_lcls *lcls;
+ /* SDP as last received from the remote call leg. */
+ struct sdp_msg remote;
/* Track codec choices from BSS and remote call leg */
struct codec_filter codecs;
} cc;