Skip to content
Snippets Groups Projects
Commit d88e2300 authored by Guido Falsi's avatar Guido Falsi Committed by Joshua Colp
Browse files

chan_dadhi: Fix setvar in dahdi channels

The change to how setvar works for various channels performed in
ASTERISK~23756 missed some required change in the dahdi channel,
where the variables are actually set while reading configuration.
This change should fix the issue.

ASTERISK-28955

Change-Id: Ibfeb7f8cbdd735346dc4028de6a265f24f9df274
parent ee8ea927
No related branches found
No related tags found
No related merge requests found
......@@ -18140,8 +18140,10 @@ static int process_dahdi(struct dahdi_chan_conf *confp, const char *cat, struct
if ((varval = strchr(varname, '='))) {
*varval++ = '\0';
if ((tmpvar = ast_variable_new(varname, varval, ""))) {
tmpvar->next = confp->chan.vars;
confp->chan.vars = tmpvar;
if (ast_variable_list_replace(&confp->chan.vars, tmpvar)) {
tmpvar->next = confp->chan.vars;
confp->chan.vars = tmpvar;
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment