dect
/
asterisk
Archived
13
0
Fork 0

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: http://svn.digium.com/svn/asterisk/trunk@244505 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
tilghman 2010-02-03 18:34:29 +00:00
parent 58fe88b0cc
commit 78d06b3e35
1 changed files with 7 additions and 1 deletions

View File

@ -11623,7 +11623,13 @@ static struct dahdi_pvt *mkintf(int channel, const struct dahdi_chan_conf *conf,
tmp->callgroup = conf->chan.callgroup;
tmp->pickupgroup= conf->chan.pickupgroup;
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->rxgain = conf->chan.rxgain;