aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmgcp/mgcp_network.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-07-02 21:54:14 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-07-22 14:31:28 +0200
commit1fc1ed23b25273688ef1f695e2f0135aaff97c73 (patch)
tree7593652c7344f982e6697b2e6e69da3c2d4872ca /openbsc/src/libmgcp/mgcp_network.c
parent77ceaaf7f58487614d6fe1fb481144cb405f56b5 (diff)
mgcp: Patch and Count _after_ the transcoding
When going from a ptime of 10 to 20 a lot of alignment errors are reported. In fact the alignment check should be done before and after the transcoding. As this is not possible right now only do it _after_ the patching.
Diffstat (limited to 'openbsc/src/libmgcp/mgcp_network.c')
-rw-r--r--openbsc/src/libmgcp/mgcp_network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/libmgcp/mgcp_network.c b/openbsc/src/libmgcp/mgcp_network.c
index 5629e84..7dcf3f3 100644
--- a/openbsc/src/libmgcp/mgcp_network.c
+++ b/openbsc/src/libmgcp/mgcp_network.c
@@ -582,13 +582,13 @@ int mgcp_send(struct mgcp_endpoint *endp, int dest, int is_rtp,
int cont;
int nbytes = 0;
int len = rc;
- mgcp_patch_and_count(endp, rtp_state, rtp_end, addr, buf, len);
do {
cont = endp->cfg->rtp_processing_cb(endp, rtp_end,
buf, &len, RTP_BUF_SIZE);
if (cont < 0)
break;
+ mgcp_patch_and_count(endp, rtp_state, rtp_end, addr, buf, len);
forward_data(rtp_end->rtp.fd, &endp->taps[tap_idx],
buf, len);
rc = mgcp_udp_send(rtp_end->rtp.fd,