diff options
author | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2015-11-24 21:16:40 -0500 |
---|---|---|
committer | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2015-11-24 21:16:40 -0500 |
commit | bbb158bb1091974f1ce2cab2e95cddd3eb9bfb28 (patch) | |
tree | a07ae6319eff21b0ef03f828fc69f6908243f3ba | |
parent | f8caeb27a158082d9dd79bab976c11e53d117445 (diff) |
rtp_proxy: Don't try to guess codec by payload type - it'll be wrong anyway.
We should use msg_type instead, which has information about the actual codec.
-rw-r--r-- | openbsc/src/libtrau/rtp_proxy.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/openbsc/src/libtrau/rtp_proxy.c b/openbsc/src/libtrau/rtp_proxy.c index 8353bb7d2..b4008e1ed 100644 --- a/openbsc/src/libtrau/rtp_proxy.c +++ b/openbsc/src/libtrau/rtp_proxy.c @@ -132,15 +132,6 @@ static int rtp_decode(struct msgb *msg, uint32_t callref, struct msgb **data, in case RTP_PT_GSM_FULL: msg_type = GSM_TCHF_FRAME; break; - case RTP_PT_GSM_EFR: - msg_type = GSM_TCHF_FRAME_EFR; - break; - case RTP_PT_GSM_HALF: - msg_type = GSM_TCHH_FRAME; - break; - case RTP_PT_AMR: - msg_type = GSM_TCH_FRAME_AMR; - break; default: DEBUGPC(DLMUX, "received RTP frame with unknown " "payload type %d\n", rtph->payload_type); |