diff options
author | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2015-11-24 21:14:52 -0500 |
---|---|---|
committer | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2015-11-24 21:14:52 -0500 |
commit | f8caeb27a158082d9dd79bab976c11e53d117445 (patch) | |
tree | efe8c9b05aec0e7127eac8aaea5a89b1d85216e7 | |
parent | 945fb547dba1f562538de718bad69d5780b467ce (diff) |
rtp_proxy: Always pass RTP codec into rtp_decode().
We can't rely on payload type for decoding, so lets use actual codec type.
-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 12c76d8be..8353bb7d2 100644 --- a/openbsc/src/libtrau/rtp_proxy.c +++ b/openbsc/src/libtrau/rtp_proxy.c @@ -482,7 +482,7 @@ static int rtp_socket_read(struct rtp_socket *rs, struct rtp_sub_socket *rss) rc = -EINVAL; goto out_free; } - rc = rtp_decode(msg, rs->receive.callref, &new_msg, 0); + rc = rtp_decode(msg, rs->receive.callref, &new_msg, rs->receive.msg_type); if (rc < 0) goto out_free; msgb_free(msg); |