From d0444e53afa71c19cd222f6fdd9301ab60241335 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 3 Mar 2011 10:02:14 +0100 Subject: mgcp: Fix the initialisation set trunk_type in the caller --- src/mgcp/mgcp_protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/mgcp/mgcp_protocol.c b/src/mgcp/mgcp_protocol.c index 815a97c..a8b5ddf 100644 --- a/src/mgcp/mgcp_protocol.c +++ b/src/mgcp/mgcp_protocol.c @@ -871,7 +871,6 @@ static struct msgb *handle_noti_req(struct mgcp_config *cfg, struct msgb *msg) static void trunk_init(struct mgcp_trunk_config *trunk) { - trunk->trunk_type = MGCP_TRUNK_VIRTUAL; trunk->audio_name = talloc_strdup(trunk->cfg, "AMR/8000"); trunk->audio_payload = 126; @@ -912,6 +911,7 @@ struct mgcp_config *mgcp_config_alloc(void) /* default trunk handling */ cfg->trunk.cfg = cfg; cfg->trunk.trunk_nr = 0; + cfg->trunk.trunk_type = MGCP_TRUNK_VIRTUAL; trunk_init(&cfg->trunk); INIT_LLIST_HEAD(&cfg->trunks); -- cgit v1.2.3