mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 11:32:25 +00: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:
@@ -18140,11 +18140,13 @@ 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, ""))) {
|
||||
if (ast_variable_list_replace(&confp->chan.vars, tmpvar)) {
|
||||
tmpvar->next = confp->chan.vars;
|
||||
confp->chan.vars = tmpvar;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (!strcasecmp(v->name, "immediate")) {
|
||||
confp->chan.immediate = ast_true(v->value);
|
||||
} else if (!strcasecmp(v->name, "transfertobusy")) {
|
||||
|
||||
Reference in New Issue
Block a user