Neels Hofmeyr
21f1bfb4a8
So far, querying the codec mapping returns one match. For example: const struct codec_mapping *m; m = codec_mapping_by_speech_ver(GSM48_BCAP_SV_FR); if (!m) return -ENOENT; But when supporting various AMR rates, we need to find multiple matches in some code paths. Also to support AMR OA vs BE modes, we need to combine multiple criteria in some places. With this patch, and as soon as an upcoming patch implements codec_mapping_matches_speech_ver(), above code example becomes: const struct codec_mapping *m; codec_mapping_foreach (m) { if (codec_mapping_matches_speech_ver(m, GSM48_BCAP_SV_FR)) break; } if (!m) return -ENOENT; This pattern supports collecting multiple matches in a list: const struct codec_mapping *m; codec_mapping_foreach (m) { if (codec_mapping_matches_speech_ver(m, GSM48_BCAP_SV_FR)) sdp_audio_codecs_add_copy(my_list, m); } And this pattern also supports combining criteria: const struct codec_mapping *m; codec_mapping_foreach (m) { // only allow AMR in OA mode if (!osmo_sdp_fmtp_amr_is_octet_aligned(m->sdp.fmtp)) continue; if (codec_mapping_matches_speech_ver(m, GSM48_BCAP_SV_AMR_F) || codec_mapping_matches_speech_ver(m, GSM48_BCAP_SV_AMR_H)) sdp_audio_codecs_add_copy(my_list, m); } Change-Id: Iaaa59d4bf5a6126a1bfe4ae282b82f6cb3ec6f99 |
||
---|---|---|
contrib | ||
debian | ||
doc | ||
include | ||
m4 | ||
src | ||
tests | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
AUTHORS | ||
COPYING | ||
Makefile.am | ||
README.md | ||
README.vty-tests | ||
TODO-RELEASE | ||
configure.ac | ||
git-version-gen | ||
osmoappdesc.py |
README.md
osmo-msc - Osmocom MSC Implementation
This repository contains a C-language implementation of a GSM Mobile Switching Centre (MSC) for 2G (GSM) and 3G (UMTS). It is part of the Osmocom Open Source Mobile Communications project.
OsmoMSC exposes
- A over IP towards BSCs (e.g. OsmoBSC): 3GPP AoIP or SCCPlite
- IuCS over IP towards RNCs / HNBGW (e.g. osmo-hnbgw)
- The Osmocom typical telnet VTY and CTRL interfaces.
- The Osmocom typical statsd exporter.
OsmoMSC implements
- mobility management
- call control (either via built-in MNCC handler or external osmo-sip-connector)
- USSD (exposed via GSUP)
- SMS (either via built-in SMSC or external via GSUP)
Homepage
You can find the OsmoMSC issue tracker and wiki online at https://osmocom.org/projects/osmomsc and https://osmocom.org/projects/osmomsc/wiki.
GIT Repository
You can clone from the official osmo-msc.git repository using
git clone https://gitea.osmocom.org/cellular-infrastructure/osmo-msc
There is a web interface at https://gitea.osmocom.org/cellular-infrastructure/osmo-msc
Documentation
User Manuals and VTY reference manuals are [optionally] built in PDF form as part of the build process.
Pre-rendered PDF version of the current "master" can be found at User Manual as well as the VTY Reference Manual
Mailing List
Discussions related to osmo-msc are happening on the openbsc@lists.osmocom.org mailing list, please see https://lists.osmocom.org/mailman/listinfo/openbsc for subscription options and the list archive.
Please observe the Osmocom Mailing List Rules when posting.
Contributing
Our coding standards are described at https://osmocom.org/projects/cellular-infrastructure/wiki/Coding_standards
We us a gerrit based patch submission/review process for managing contributions. Please see https://osmocom.org/projects/cellular-infrastructure/wiki/Gerrit for more details
The current patch queue for osmo-msc can be seen at https://gerrit.osmocom.org/#/q/project:osmo-msc+status:open
History
OsmoMSC originated from the OsmoNITB project, which started as a minimalistic all-in-one implementation of the GSM Network. In 2017, OsmoNITB had reached maturity and diversity (including M3UA SIGTRAN and 3G support in the form of IuCS and IuPS interfaces) that naturally lead to a separation of the all-in-one approach to fully independent separate programs as in typical GSM networks.
OsmoMSC was one of the parts split off from the old openbsc.git.