aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmsc/call_leg.c
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-05-09 17:54:08 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2019-05-21 18:32:38 +0200
commita3cdab448121c76a56ef547ffdc61e3f58a93dbc (patch)
treea5598e4591f10b89110e3be9fc35d373850b3de3 /src/libmsc/call_leg.c
parent643270f7179d31cc4d8b60733007f488aa9becdc (diff)
Request Osmux CID and forward it in Assign Req and Assign Compl
Diffstat (limited to 'src/libmsc/call_leg.c')
-rw-r--r--src/libmsc/call_leg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libmsc/call_leg.c b/src/libmsc/call_leg.c
index 46405bcaa..794eda286 100644
--- a/src/libmsc/call_leg.c
+++ b/src/libmsc/call_leg.c
@@ -321,6 +321,10 @@ int call_leg_ensure_ci(struct call_leg *cl, enum rtp_direction dir, uint32_t cal
if (call_leg_ensure_rtp_alloc(cl, dir, call_id, for_trans))
return -EIO;
cl->rtp[dir]->crcx_conn_mode = cl->crcx_conn_mode[dir];
+ if (dir == RTP_TO_RAN && cl->ran_peer_supports_osmux) {
+ cl->rtp[dir]->use_osmux = true;
+ cl->rtp[dir]->remote_osmux_cid = -1; /* wildcard */
+ }
if (codec_if_known)
rtp_stream_set_codec(cl->rtp[dir], *codec_if_known);
if (remote_addr_if_known && osmo_sockaddr_str_is_set(remote_addr_if_known))