diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-02-28 12:11:02 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-02-28 19:40:53 +0100 |
commit | 0e939fec4237483df4c51fb58c87f35b3115db50 (patch) | |
tree | 2d1290ccced656d0e9a7248998bcf14f2897be5e /openbsc/include/openbsc | |
parent | ab3bb9d444dddcd3754e4cc3641c4ebfdcda5f38 (diff) |
mgcp: Introduce a trunk config for multiple trunks.
A trunk will always have 32 endpoints to be used and we allow
a sparse allocation of endpoints.
Diffstat (limited to 'openbsc/include/openbsc')
-rw-r--r-- | openbsc/include/openbsc/mgcp.h | 3 | ||||
-rw-r--r-- | openbsc/include/openbsc/mgcp_internal.h | 3 | ||||
-rw-r--r-- | openbsc/include/openbsc/vty.h | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/mgcp.h b/openbsc/include/openbsc/mgcp.h index df8497983..54a3a6ee2 100644 --- a/openbsc/include/openbsc/mgcp.h +++ b/openbsc/include/openbsc/mgcp.h @@ -103,6 +103,8 @@ struct mgcp_port_range { }; struct mgcp_trunk_config { + struct llist_head entry; + struct mgcp_config *cfg; int trunk_nr; @@ -150,6 +152,7 @@ struct mgcp_config { /* trunk handling */ struct mgcp_trunk_config trunk; + struct llist_head trunks; }; /* config management */ diff --git a/openbsc/include/openbsc/mgcp_internal.h b/openbsc/include/openbsc/mgcp_internal.h index cefbc3e36..7c6bb5425 100644 --- a/openbsc/include/openbsc/mgcp_internal.h +++ b/openbsc/include/openbsc/mgcp_internal.h @@ -147,5 +147,8 @@ static inline int endp_back_channel(int endpoint) return endpoint + 60; } +struct mgcp_trunk_config *mgcp_trunk_alloc(struct mgcp_config *cfg, int index); +struct mgcp_trunk_config *mgcp_trunk_num(struct mgcp_config *cfg, int index); + #endif diff --git a/openbsc/include/openbsc/vty.h b/openbsc/include/openbsc/vty.h index 6ed5f058a..516c8c2a0 100644 --- a/openbsc/include/openbsc/vty.h +++ b/openbsc/include/openbsc/vty.h @@ -34,6 +34,7 @@ enum bsc_vty_node { NAT_BSC_NODE, MSC_NODE, OM2K_NODE, + TRUNK_NODE, }; extern int bsc_vty_is_config_node(struct vty *vty, int node); |