aboutsummaryrefslogtreecommitdiffstats
path: root/src/mgcp/mgcp_protocol.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-09-14 00:23:22 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-09-14 00:23:22 +0200
commitc2bb077a489863cd6352298bff2eb510a4a22133 (patch)
tree15fd290f219817f94481b4c9ee17f15f266f7c53 /src/mgcp/mgcp_protocol.c
parente72139a6f3713869637d15dfd9858a500fbf0425 (diff)
mgcp: Split creation of endpoints and static port allocation
Create the endpoints as soon as possible, configure static ports after we are through with the parsing of the VTY config.
Diffstat (limited to 'src/mgcp/mgcp_protocol.c')
-rw-r--r--src/mgcp/mgcp_protocol.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mgcp/mgcp_protocol.c b/src/mgcp/mgcp_protocol.c
index 9d359cc..cae05da 100644
--- a/src/mgcp/mgcp_protocol.c
+++ b/src/mgcp/mgcp_protocol.c
@@ -937,6 +937,12 @@ struct mgcp_trunk_config *mgcp_trunk_alloc(struct mgcp_config *cfg, int nr)
return trunk;
}
+void mgcp_trunk_free(struct mgcp_trunk_config *cfg)
+{
+ llist_del(&cfg->entry);
+ talloc_free(cfg);
+}
+
struct mgcp_trunk_config *mgcp_trunk_num(struct mgcp_config *cfg, int index)
{
struct mgcp_trunk_config *trunk;