jolly has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc/+/33602 )
Change subject: ASCI: Make function to add OSMUX IE public ......................................................................
ASCI: Make function to add OSMUX IE public
Rename _gsm0808_ass_compl_extend_osmux() to gsm0808_extend_osmux().
This IE is also used for VGCS/VBS assignment command that is located in a different file.
Change-Id: I1452cabb142f9e7a169f4ddfeac85908abaf8dfc Related: OS#4852 --- M include/osmocom/bsc/assignment_fsm.h M src/osmo-bsc/assignment_fsm.c 2 files changed, 19 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/02/33602/1
diff --git a/include/osmocom/bsc/assignment_fsm.h b/include/osmocom/bsc/assignment_fsm.h index 70cb88c..88a2753 100644 --- a/include/osmocom/bsc/assignment_fsm.h +++ b/include/osmocom/bsc/assignment_fsm.h @@ -40,6 +40,8 @@ ASSIGNMENT_EV_CONN_RELEASING, };
+void gsm0808_extend_osmux(struct msgb *msg, uint8_t cid); + int reassignment_request_to_lchan(enum assign_for assign_for, struct gsm_lchan *lchan, struct gsm_lchan *to_lchan, int tsc_set, int tsc); int reassignment_request_to_chan_type(enum assign_for assign_for, struct gsm_lchan *lchan, diff --git a/src/osmo-bsc/assignment_fsm.c b/src/osmo-bsc/assignment_fsm.c index 02ca29c..27180ef 100644 --- a/src/osmo-bsc/assignment_fsm.c +++ b/src/osmo-bsc/assignment_fsm.c @@ -164,7 +164,7 @@ } }
-static void _gsm0808_ass_compl_extend_osmux(struct msgb *msg, uint8_t cid) +void gsm0808_extend_osmux(struct msgb *msg, uint8_t cid) { OSMO_ASSERT(msg->l3h[1] == msgb_l3len(msg) - 2); /*TL not in len */ msgb_tv_put(msg, GSM0808_IE_OSMO_OSMUX_CID, cid); @@ -245,7 +245,7 @@
if (gscon_is_aoip(conn) && bsc_chan_ind_requires_rtp_stream(conn->assignment.ch_indctr) && conn->assignment.req.use_osmux) - _gsm0808_ass_compl_extend_osmux(resp, osmux_cid); + gsm0808_extend_osmux(resp, osmux_cid);
rate_ctr_inc(rate_ctr_group_get_ctr(conn->sccp.msc->msc_ctrs, MSC_CTR_BSSMAP_TX_DT1_ASSIGMENT_COMPLETE)); rc = gscon_sigtran_send(conn, resp);