mgcp: Fix the initialisation set trunk_type in the caller
This commit is contained in:
parent
8941c1d422
commit
d0444e53af
|
@ -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);
|
||||
|
|
Reference in New Issue