aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-02-25 17:09:07 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-02-26 10:35:33 +0100
commited500e3877375bde3c0ec33825d513f9fd69c757 (patch)
treed4fb179eb8a3befc63507876f0c363f48ebeaa7a /openbsc/include/openbsc
parent7e0cc50e44d89dd2b656521f693599a1f3dc7416 (diff)
nat: Allocate the endpoint status dynamically
Allocate the status for an endpoint dynamically. We will support BSCs with different amount of multiplexes and need to have this flexibility in the future. Add the proper null checks to the current users of this code.
Diffstat (limited to 'openbsc/include/openbsc')
-rw-r--r--openbsc/include/openbsc/bsc_nat.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/openbsc/include/openbsc/bsc_nat.h b/openbsc/include/openbsc/bsc_nat.h
index 62db17af8..13d1b09f2 100644
--- a/openbsc/include/openbsc/bsc_nat.h
+++ b/openbsc/include/openbsc/bsc_nat.h
@@ -78,7 +78,7 @@ struct bsc_connection {
struct timer_list pong_timeout;
/* mgcp related code */
- int endpoint_status[32];
+ char *_endpoint_status;
int last_endpoint;
/* a back pointer */
@@ -124,6 +124,9 @@ struct bsc_config {
int forbid_paging;
+ /* audio handling */
+ int number_multiplexes;
+
/* backpointer */
struct bsc_nat *nat;