aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@soleta.eu>2014-08-29 15:31:55 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-08-30 07:59:41 +0200
commit08726e283754720aa97670a33366cf82de220b93 (patch)
treed694fa8bfc99a3c7bb0cac87ee0480ea059ee503 /openbsc
parent03ab79abace6ce19ae13f0ad5a817938c496b791 (diff)
osmux: initialize osmux_batch_size in mgcp config
The library allows to indicate zero as batch size if you want to use the default size, however openbsc saves 'osmux batch-size 0' which is not good as input. Use OSMUX_BATCH_DEFAULT_MAX to explicitly initialize the batch size from mgcp_parse_config().
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/libmgcp/mgcp_vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/libmgcp/mgcp_vty.c b/openbsc/src/libmgcp/mgcp_vty.c
index 4dd89b7ae..e8d6bde70 100644
--- a/openbsc/src/libmgcp/mgcp_vty.c
+++ b/openbsc/src/libmgcp/mgcp_vty.c
@@ -1307,8 +1307,8 @@ int mgcp_parse_config(const char *config_file, struct mgcp_config *cfg,
struct mgcp_trunk_config *trunk;
cfg->osmux_port = OSMUX_PORT;
- /* Default to 4 messages */
cfg->osmux_batch = 4;
+ cfg->osmux_batch_size = OSMUX_BATCH_DEFAULT_MAX;
g_cfg = cfg;
rc = vty_read_config_file(config_file, NULL);