aboutsummaryrefslogtreecommitdiffstats
path: root/include/mgcp
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-09-14 19:14:54 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-09-14 22:29:14 +0200
commitf574cec74543e6632a332d1b6995a8c827ca22f1 (patch)
tree242a8752bc6c1a9465b9cf6732c006cfc76bff88 /include/mgcp
parent96cc57af80d91054b4d23e6de83015bf93fefb18 (diff)
mgcp: Introduce multiple virtual trunks
A virtual trunk is identified by a virtual domain name.
Diffstat (limited to 'include/mgcp')
-rw-r--r--include/mgcp/mgcp.h3
-rw-r--r--include/mgcp/mgcp_internal.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/include/mgcp/mgcp.h b/include/mgcp/mgcp.h
index d5574ed..50b11cc 100644
--- a/include/mgcp/mgcp.h
+++ b/include/mgcp/mgcp.h
@@ -122,6 +122,7 @@ struct mgcp_trunk_config {
struct mgcp_endpoint *endpoints;
/* Special MGW handling */
+ char *virtual_domain;
int target_trunk_start;
int vad_enabled;
@@ -165,7 +166,7 @@ struct mgcp_config {
void *data;
/* trunk handling */
- struct mgcp_trunk_config trunk;
+ struct llist_head vtrunks;
struct llist_head trunks;
/* only used for start with a static configuration */
diff --git a/include/mgcp/mgcp_internal.h b/include/mgcp/mgcp_internal.h
index d499166..f0faf52 100644
--- a/include/mgcp/mgcp_internal.h
+++ b/include/mgcp/mgcp_internal.h
@@ -154,7 +154,9 @@ static inline int endp_back_channel(int endpoint)
}
struct mgcp_trunk_config *mgcp_trunk_alloc(struct mgcp_config *cfg, int index);
+struct mgcp_trunk_config *mgcp_vtrunk_alloc(struct mgcp_config *cfg, const char *);
struct mgcp_trunk_config *mgcp_trunk_num(struct mgcp_config *cfg, int index);
+struct mgcp_trunk_config *mgcp_trunk_domain(struct mgcp_config *cfg, const char *);
void mgcp_trunk_free(struct mgcp_trunk_config *cfg);