diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-03-03 10:02:14 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-03-03 11:50:06 +0100 |
commit | d0444e53afa71c19cd222f6fdd9301ab60241335 (patch) | |
tree | b8444a57ea222a9516d949e8a96e7ab04781e5b6 | |
parent | 8941c1d422660d399c18b32af6617c6dd2ade059 (diff) |
mgcp: Fix the initialisation set trunk_type in the caller
-rw-r--r-- | src/mgcp/mgcp_protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |