dect
/
asterisk
Archived
13
0
Fork 0

Make sure usedistinctivering gets set to the right value

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2393 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
citats 2004-03-11 05:10:23 +00:00
parent c71eea9cdd
commit feef0af2bf
1 changed files with 4 additions and 2 deletions

View File

@ -7409,7 +7409,8 @@ static int setup_zap(void)
chan = strsep(&c, ",");
}
} else if (!strcasecmp(v->name, "usedistinctiveringdetection")) {
usedistinctiveringdetection = ast_true(v->value);
if (ast_true(v->value))
usedistinctiveringdetection = 1;
} else if (!strcasecmp(v->name, "dring1context")) {
strncpy(drings.ringContext[0].contextData,v->value,sizeof(drings.ringContext[0].contextData)-1);
} else if (!strcasecmp(v->name, "dring2context")) {
@ -7972,7 +7973,8 @@ static int reload_zt(void)
chan = strsep(&stringp, ",");
}
} else if (!strcasecmp(v->name, "usedistinctiveringdetection")) {
usedistinctiveringdetection = ast_true(v->value);
if (ast_true(v->value))
usedistinctiveringdetection = 1;
} else if (!strcasecmp(v->name, "dring1context")) {
strncpy(drings.ringContext[0].contextData,v->value,sizeof(drings.ringContext[0].contextData)-1);
} else if (!strcasecmp(v->name, "dring2context")) {