diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-07 10:52:48 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-07 10:52:48 +0200 |
commit | 5cdf42b1a4706b4aa3b6b0a98e3cb2b4eec46cd0 (patch) | |
tree | a7b565497b232d14054efc6d8a13a5644fbd10fe /openbsc | |
parent | 3a6b1a41fbd825b2e163f8b98621c981ee16a54b (diff) |
nat: Allow to realloc already allocated endpoints
E.g. when the MGCP on the BSS is not responding we could block
all of our endpoints. As we are mostly in the middle and forward
bits we will happily reallocate the endpoints.
Diffstat (limited to 'openbsc')
-rw-r--r-- | openbsc/src/nat/bsc_mgcp_utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/nat/bsc_mgcp_utils.c b/openbsc/src/nat/bsc_mgcp_utils.c index 435c8584b..81465cae9 100644 --- a/openbsc/src/nat/bsc_mgcp_utils.c +++ b/openbsc/src/nat/bsc_mgcp_utils.c @@ -457,6 +457,7 @@ int bsc_mgcp_init(struct bsc_nat *nat) nat->mgcp_cfg->audio_payload = -1; nat->mgcp_cfg->data = nat; nat->mgcp_cfg->policy_cb = bsc_mgcp_policy_cb; + nat->mgcp_cfg->force_realloc = 1; nat->bsc_endpoints = talloc_zero_array(nat, struct bsc_endpoint, nat->mgcp_cfg->number_endpoints + 1); |