diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-02-27 11:04:27 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-02-27 11:05:18 +0100 |
commit | 9ec030d32da5426e184179c4867b01b910885dec (patch) | |
tree | 8590afb1a90b87274fd0224606f6a6ac1d3353e9 /openbsc/include | |
parent | a9e9331285bccb97e3e9b8aeb5659b1fe119597b (diff) |
nat: Change number of multiplexes to the max-endpoints
Diffstat (limited to 'openbsc/include')
-rw-r--r-- | openbsc/include/openbsc/bsc_nat.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openbsc/include/openbsc/bsc_nat.h b/openbsc/include/openbsc/bsc_nat.h index 2fc8e40cf..ad46aaa06 100644 --- a/openbsc/include/openbsc/bsc_nat.h +++ b/openbsc/include/openbsc/bsc_nat.h @@ -80,6 +80,7 @@ struct bsc_connection { /* mgcp related code */ char *_endpoint_status; int number_multiplexes; + int max_endpoints; int last_endpoint; /* a back pointer */ @@ -126,7 +127,7 @@ struct bsc_config { int forbid_paging; /* audio handling */ - int number_multiplexes; + int max_endpoints; /* backpointer */ struct bsc_nat *nat; @@ -306,6 +307,7 @@ struct sccp_connections *bsc_nat_find_con_by_bsc(struct bsc_nat *, struct sccp_s /** * MGCP/Audio handling */ +int bsc_mgcp_nr_multiplexes(int max_endpoints); int bsc_write_mgcp(struct bsc_connection *bsc, const uint8_t *data, unsigned int length); int bsc_mgcp_assign_patch(struct sccp_connections *, struct msgb *msg); void bsc_mgcp_init(struct sccp_connections *); |