aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/abis_rsl.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-11-14 21:09:08 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-11-15 20:06:45 +0100
commit8cc59036e6eaeaa9332081487e4a68ad2a8bdc44 (patch)
tree782919713ac137d54dbf879d64cf077c53fee0ac /openbsc/src/abis_rsl.c
parentecd94a4b45924c3c65feabc87bbc7a075e951249 (diff)
rsl: Allow to hardcode the RTP Payload
In case of a inflexible network it is better to hardcode the rtp payload to a given type. E.g. when using AMR5.9 on a TCH/F and TCH/H having the same payload is helpful. For now this will be only used by the osmo-bsc.
Diffstat (limited to 'openbsc/src/abis_rsl.c')
-rw-r--r--openbsc/src/abis_rsl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/openbsc/src/abis_rsl.c b/openbsc/src/abis_rsl.c
index 047c76808..5b708aaa6 100644
--- a/openbsc/src/abis_rsl.c
+++ b/openbsc/src/abis_rsl.c
@@ -1505,6 +1505,12 @@ static u_int8_t ipa_smod_s_for_lchan(struct gsm_lchan *lchan)
static u_int8_t ipa_rtp_pt_for_lchan(struct gsm_lchan *lchan)
{
+ struct gsm_network *net = lchan->ts->trx->bts->network;
+
+ /* allow to hardcode the rtp payload */
+ if (net->hardcoded_rtp_payload != 0)
+ return net->hardcoded_rtp_payload;
+
switch (lchan->tch_mode) {
case GSM48_CMODE_SPEECH_V1:
switch (lchan->type) {