mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Meetme file is parsed with comma-delimiters, not vertical bars
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13733 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1830,28 +1830,20 @@ static struct ast_conference *find_conf(struct ast_channel *chan, char *confno,
|
|||||||
ast_log(LOG_WARNING, "No %s file :(\n", CONFIG_FILE_NAME);
|
ast_log(LOG_WARNING, "No %s file :(\n", CONFIG_FILE_NAME);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
var = ast_variable_browse(cfg, "rooms");
|
for (var = ast_variable_browse(cfg, "rooms"); var; var = var->next) {
|
||||||
for (; var; var = var->next) {
|
|
||||||
if (strcasecmp(var->name, "conf"))
|
if (strcasecmp(var->name, "conf"))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!(parse = ast_strdupa(var->value)))
|
if (!(parse = ast_strdupa(var->value)))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
AST_STANDARD_APP_ARGS(args, parse);
|
AST_NONSTANDARD_APP_ARGS(args, parse, ',');
|
||||||
if (!strcasecmp(args.confno, confno)) {
|
if (!strcasecmp(args.confno, confno)) {
|
||||||
/* Bingo it's a valid conference */
|
/* Bingo it's a valid conference */
|
||||||
if (args.pin) {
|
cnf = build_conf(args.confno,
|
||||||
if (args.pinadmin)
|
ast_strlen_zero(args.pin) ? "" : args.pin,
|
||||||
cnf = build_conf(args.confno, args.pin, args.pinadmin, make, dynamic, refcount);
|
ast_strlen_zero(args.pinadmin) ? "" : args.pinadmin,
|
||||||
else
|
make, dynamic, refcount);
|
||||||
cnf = build_conf(args.confno, args.pin, "", make, dynamic, refcount);
|
|
||||||
} else {
|
|
||||||
if (args.pinadmin)
|
|
||||||
cnf = build_conf(args.confno, "", args.pinadmin, make, dynamic, refcount);
|
|
||||||
else
|
|
||||||
cnf = build_conf(args.confno, "", "", make, dynamic, refcount);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2026,7 +2018,7 @@ static int conf_exec(struct ast_channel *chan, void *data)
|
|||||||
AST_LIST_UNLOCK(&confs);
|
AST_LIST_UNLOCK(&confs);
|
||||||
if (!found) {
|
if (!found) {
|
||||||
/* At this point, we have a confno_tmp (static conference) that is empty */
|
/* At this point, we have a confno_tmp (static conference) that is empty */
|
||||||
if ((empty_no_pin && ((!stringp) || (stringp && (stringp[0] == '\0')))) || (!empty_no_pin)) {
|
if ((empty_no_pin && ast_strlen_zero(stringp)) || (!empty_no_pin)) {
|
||||||
/* Case 1: empty_no_pin and pin is nonexistent (NULL)
|
/* Case 1: empty_no_pin and pin is nonexistent (NULL)
|
||||||
* Case 2: empty_no_pin and pin is blank (but not NULL)
|
* Case 2: empty_no_pin and pin is blank (but not NULL)
|
||||||
* Case 3: not empty_no_pin
|
* Case 3: not empty_no_pin
|
||||||
|
Reference in New Issue
Block a user