aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-07-21 10:24:46 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-08-22 18:23:50 +0200
commited999b29bc5bdb17a3b8354bf12df19af82d1327 (patch)
tree647258957d9f3bd242ac6994ce050c9308dd6d7c /openbsc/src/libbsc
parent128892f55f23ac24e6eb786ca3cf0841fbc45fd2 (diff)
audio: From RTP point of view we can use one payload for HR/FR AMR
Remove the separation of half-rate and full-rate AMR. The used rate can be found inside the AMR payload. The signalling of what kind of traffic channel is used can be done with the GSM 08.08 Chosen Channel IE in the Assignment Complete message. This way I can use a fixed payload type in the MGCP GateWay but have a mixed TCH/F and TCH/H config. E.g. use TCH/F FR3 for some subscribers when connected to MSC A but use AMR5.9 on a TCH/F for MSC B when all TCH/Hs are gone.
Diffstat (limited to 'openbsc/src/libbsc')
-rw-r--r--openbsc/src/libbsc/abis_rsl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/openbsc/src/libbsc/abis_rsl.c b/openbsc/src/libbsc/abis_rsl.c
index 2ce900c51..c8bfbb6d6 100644
--- a/openbsc/src/libbsc/abis_rsl.c
+++ b/openbsc/src/libbsc/abis_rsl.c
@@ -1601,9 +1601,8 @@ static uint8_t ipa_rtp_pt_for_lchan(struct gsm_lchan *lchan)
case GSM48_CMODE_SPEECH_AMR:
switch (lchan->type) {
case GSM_LCHAN_TCH_F:
- return RTP_PT_AMR_FULL;
case GSM_LCHAN_TCH_H:
- return RTP_PT_AMR_HALF;
+ return RTP_PT_AMR;
default:
break;
}