diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-08-05 08:08:17 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-08-05 08:08:17 +0800 |
commit | f138f917ec7b535e0d71b8e70c71be7816e572da (patch) | |
tree | 0eeb40a4776413600697b0fef3114761a752ed46 /openbsc/src/mgcp/mgcp_vty.c | |
parent | 1be9f2fddcfd9ba02f9f3a8203fa79b3b4e9b3e2 (diff) |
mgcp: Allow to dynamically allocate ports from a range..
Allow to switch to a dynamic port allocator and not reuse
the ports for a long time... This should help with a crazy
network sending two streams at the same time.
Diffstat (limited to 'openbsc/src/mgcp/mgcp_vty.c')
-rw-r--r-- | openbsc/src/mgcp/mgcp_vty.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/src/mgcp/mgcp_vty.c b/openbsc/src/mgcp/mgcp_vty.c index d8f611961..f3b5f458a 100644 --- a/openbsc/src/mgcp/mgcp_vty.c +++ b/openbsc/src/mgcp/mgcp_vty.c @@ -377,6 +377,7 @@ int mgcp_parse_config(const char *config_file, struct mgcp_config *cfg) LOGP(DMGCP, LOGL_FATAL, "Failed to bind: %d\n", rtp_port); return -1; } + endp->bts_end.local_alloc = PORT_ALLOC_STATIC; } if (g_cfg->net_ports.mode == PORT_ALLOC_STATIC) { @@ -386,6 +387,7 @@ int mgcp_parse_config(const char *config_file, struct mgcp_config *cfg) LOGP(DMGCP, LOGL_FATAL, "Failed to bind: %d\n", rtp_port); return -1; } + endp->net_end.local_alloc = PORT_ALLOC_STATIC; } } |