Skip to content
Snippets Groups Projects
Commit d3ae6952 authored by Tilghman Lesher's avatar Tilghman Lesher
Browse files

The chanvar= setting should inherit the entire list of variables, not just the first one.

(closes issue #16359)
 Reported by: raarts
 Patches: 
       dahdi-setvars.diff uploaded by raarts (license 937)
 Tested by: raarts


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@244505 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 36bbf8f9
Branches
Tags
No related merge requests found
...@@ -11623,7 +11623,13 @@ static struct dahdi_pvt *mkintf(int channel, const struct dahdi_chan_conf *conf, ...@@ -11623,7 +11623,13 @@ static struct dahdi_pvt *mkintf(int channel, const struct dahdi_chan_conf *conf,
tmp->callgroup = conf->chan.callgroup; tmp->callgroup = conf->chan.callgroup;
tmp->pickupgroup= conf->chan.pickupgroup; tmp->pickupgroup= conf->chan.pickupgroup;
if (conf->chan.vars) { if (conf->chan.vars) {
tmp->vars = ast_variable_new(conf->chan.vars->name, conf->chan.vars->value, ""); struct ast_variable *v, *tmpvar;
for (v = conf->chan.vars ; v ; v = v->next) {
if ((tmpvar = ast_variable_new(v->name, v->value, v->file))) {
tmpvar->next = tmp->vars;
tmp->vars = tmpvar;
}
}
} }
tmp->cid_rxgain = conf->chan.cid_rxgain; tmp->cid_rxgain = conf->chan.cid_rxgain;
tmp->rxgain = conf->chan.rxgain; tmp->rxgain = conf->chan.rxgain;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment