From 8cc59036e6eaeaa9332081487e4a68ad2a8bdc44 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 14 Nov 2010 21:09:08 +0100 Subject: 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. --- openbsc/src/abis_rsl.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'openbsc/src/abis_rsl.c') 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) { -- cgit v1.2.3