diff options
author | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2015-11-24 21:18:01 -0500 |
---|---|---|
committer | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2015-11-24 21:18:01 -0500 |
commit | b8e04d4041c1805e161bd17dbf846293457dccea (patch) | |
tree | 0511e76f2ef9d48e647c79c1edd117cf0198c146 /openbsc/src | |
parent | bbb158bb1091974f1ce2cab2e95cddd3eb9bfb28 (diff) |
rtp_proxy: Use actual codec type instead of payload type.
Diffstat (limited to 'openbsc/src')
-rw-r--r-- | openbsc/src/libtrau/rtp_proxy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/libtrau/rtp_proxy.c b/openbsc/src/libtrau/rtp_proxy.c index b4008e1ed..eea70bca6 100644 --- a/openbsc/src/libtrau/rtp_proxy.c +++ b/openbsc/src/libtrau/rtp_proxy.c @@ -187,7 +187,7 @@ static int rtp_decode(struct msgb *msg, uint32_t callref, struct msgb **data, in frame = (struct gsm_data_frame *) msgb_put(new_msg, sizeof(struct gsm_data_frame)); frame->msg_type = msg_type; frame->callref = callref; - if (rtph->payload_type == RTP_PT_AMR) { + if (msg_type == GSM_TCH_FRAME_AMR) { /* for FR/HR/EFR the length is implicit. In AMR, we * need to make it explicit by using the first byte of * the data[] buffer as length byte */ |