diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-09-19 18:30:57 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-09-19 20:16:22 +0200 |
commit | 0944a4ce911103dd0405bd41767ec30d444e2d03 (patch) | |
tree | 0f1a394d18410d71d645db67c2e3f30b1546d399 /include | |
parent | 79701ebd25bcfbafe719be906f943bd9bc2c63ae (diff) |
mgcp: Set up Osmux only when AMR codec is selected
Until now Osmux was selected unconditionally in bss-side CRCX, without
checking if the codec was AMR or not. If Osmux use policy is "on", we
only want to request Osmux use if AMR codec is selected.
Change-Id: I3f53555dd9608f1337365e4f82b492bdf1da05bb
Diffstat (limited to 'include')
-rw-r--r-- | include/osmocom/bsc/lchan_rtp_fsm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocom/bsc/lchan_rtp_fsm.h b/include/osmocom/bsc/lchan_rtp_fsm.h index 5dbdb0a68..397b5e177 100644 --- a/include/osmocom/bsc/lchan_rtp_fsm.h +++ b/include/osmocom/bsc/lchan_rtp_fsm.h @@ -13,6 +13,7 @@ struct gsm_lchan; struct mgcp_conn_peer; +enum mgcp_codecs; enum lchan_rtp_fsm_state { LCHAN_RTP_ST_WAIT_MGW_ENDPOINT_AVAILABLE, @@ -48,3 +49,4 @@ bool lchan_rtp_established(struct gsm_lchan *lchan); void lchan_forget_mgw_endpoint(struct gsm_lchan *lchan); void mgcp_pick_codec(struct mgcp_conn_peer *verb_info, const struct gsm_lchan *lchan, bool bss_side); +bool mgcp_codec_is_picked(const struct mgcp_conn_peer *verb_info, enum mgcp_codecs codec); |