mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-07 15:19:24 -07:00
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
This commit is contained in:
committed by
Kevin Harwell
parent
397aa391b7
commit
10bc2d40e5
@@ -18147,8 +18147,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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user