aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libtrau
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2014-05-18 18:32:05 +0200
committerHarald Welte <laforge@gnumonks.org>2014-05-18 22:23:15 +0200
commitec757986442e5be817caae4dacc57ec6617b98dd (patch)
treee4753e3ac3aa068ee66ca15d8938bbd635a36188 /openbsc/src/libtrau
parenta87f8f98918bc8f56f80ca7cc262b8edf5dcfadc (diff)
rtp_proxy.c: Correctly set msg_type to GSM_TCH_FRAME_AMR on AMR
When forwarding AMR from RTP towards the MNCC interface, we need to set the apropriate msg_type. Before this patch it was unitialized, resulting in improper/unknown msg_types of messages on the MNCC interface.
Diffstat (limited to 'openbsc/src/libtrau')
-rw-r--r--openbsc/src/libtrau/rtp_proxy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/libtrau/rtp_proxy.c b/openbsc/src/libtrau/rtp_proxy.c
index 9251dec97..122daf27b 100644
--- a/openbsc/src/libtrau/rtp_proxy.c
+++ b/openbsc/src/libtrau/rtp_proxy.c
@@ -196,6 +196,7 @@ static int rtp_decode(struct msgb *msg, uint32_t callref, struct msgb **data)
}
break;
case RTP_PT_AMR:
+ msg_type = GSM_TCH_FRAME_AMR;
break;
default:
DEBUGPC(DLMUX, "received RTP frame with unknown payload "