From ec757986442e5be817caae4dacc57ec6617b98dd Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 18 May 2014 18:32:05 +0200 Subject: 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. --- openbsc/src/libtrau/rtp_proxy.c | 1 + 1 file changed, 1 insertion(+) (limited to 'openbsc/src/libtrau') 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 " -- cgit v1.2.3