summaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmgcp/mgcp_network.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-09-07 18:34:37 +0200
committerHarald Welte <laforge@gnumonks.org>2011-09-07 21:40:00 +0200
commit4157bcb0671afb79eba093c1a500add008af4359 (patch)
treec72fd2ec3b6594200ae63eb750adb4752c3a17b8 /openbsc/src/libmgcp/mgcp_network.c
parent0a527c9ee7f3497b49c64d1ba60bc4e4198a1158 (diff)
uRTP: allow vty configuration of batching factorzecke/mgcp-experiments
there's a new "compression batching <1-15>"
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 c11f54d53..6483f982f 100644
--- a/openbsc/src/libmgcp/mgcp_network.c
+++ b/openbsc/src/libmgcp/mgcp_network.c
@@ -199,7 +199,7 @@ static int maybe_send_queue(struct mgcp_endpoint *endp,
int rc;
/* Queue up to four messages per endpoint */
- if (++endp->compr_queue_size != 4)
+ if (++endp->compr_queue_size < endp->tcfg->compress_batch)
return 0;
/* Allocate the outgoing data */