diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-02-28 00:56:17 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-02-28 19:40:53 +0100 |
commit | 88ad7723b44026e85ef322b86c48a07601b106f2 (patch) | |
tree | 329a41520211cdf0cff4846b49e4f132f3b36401 /openbsc/src/mgcp/mgcp_main.c | |
parent | dfdf8d929a77976e099e60869b509ad7fa88d79e (diff) |
mgcp: Introduce a mgcp_trunk_config enum for endpoint configs
We want to support real trunks in the MGCP code and we need to
have some better book keeping for those. Move the code around.
Diffstat (limited to 'openbsc/src/mgcp/mgcp_main.c')
-rw-r--r-- | openbsc/src/mgcp/mgcp_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openbsc/src/mgcp/mgcp_main.c b/openbsc/src/mgcp/mgcp_main.c index 091d7bdc9..c8d9a625e 100644 --- a/openbsc/src/mgcp/mgcp_main.c +++ b/openbsc/src/mgcp/mgcp_main.c @@ -126,7 +126,7 @@ static int mgcp_rsip_cb(struct mgcp_config *cfg) return 0; } -static int mgcp_change_cb(struct mgcp_config *cfg, int endpoint, int state) +static int mgcp_change_cb(struct mgcp_trunk_config *cfg, int endpoint, int state) { if (state != MGCP_ENDP_MDCX) return 0; @@ -172,8 +172,8 @@ static int read_call_agent(struct bsc_fd *fd, unsigned int what) reset_endpoints = 0; /* is checking in_addr.s_addr == INADDR_LOOPBACK making it more secure? */ - for (i = 1; i < cfg->number_endpoints; ++i) - mgcp_free_endp(&cfg->endpoints[i]); + for (i = 1; i < cfg->trunk.number_endpoints; ++i) + mgcp_free_endp(&cfg->trunk.endpoints[i]); } return 0; |