aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-08-05 05:29:50 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-08-05 06:10:10 +0800
commit7f8aec2b2b527f2c994349dd2eda76eb745a7658 (patch)
treecf6ea5b86eaa8f256b8154b0a32d0e11bb7436ba
parente66cac359e15c16455fe279e388e74ce5223cdd5 (diff)
mgcp: Fix the payload_type... it broke in 7cdc62c01223570441e60ec6d0dd7a92e622677b
-rw-r--r--openbsc/src/mgcp/mgcp_network.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/mgcp/mgcp_network.c b/openbsc/src/mgcp/mgcp_network.c
index a86e5fc8..43de91b0 100644
--- a/openbsc/src/mgcp/mgcp_network.c
+++ b/openbsc/src/mgcp/mgcp_network.c
@@ -238,7 +238,7 @@ static int rtp_data_cb(struct bsc_fd *fd, unsigned int what)
if (dest == DEST_NETWORK) {
if (proto == PROTO_RTP)
patch_and_count(endp, &endp->bts_state,
- endp->bts_payload_type,
+ endp->net_payload_type,
&addr, buf, rc);
return udp_send(fd->fd, &endp->remote,
proto == PROTO_RTP ? endp->net_rtp : endp->net_rtcp,
@@ -246,7 +246,7 @@ static int rtp_data_cb(struct bsc_fd *fd, unsigned int what)
} else {
if (proto == PROTO_RTP)
patch_and_count(endp, &endp->net_state,
- endp->net_payload_type,
+ endp->bts_payload_type,
&addr, buf, rc);
return udp_send(fd->fd, &endp->bts,
proto == PROTO_RTP ? endp->bts_rtp : endp->bts_rtcp,