mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 08:40:16 +00:00
Don't return -1 for successful conf in meetme. Bug #824
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2005 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -707,21 +707,25 @@ static int conf_exec(struct ast_channel *chan, void *data)
|
|||||||
/* Prompt user for pin if pin is required */
|
/* Prompt user for pin if pin is required */
|
||||||
res = ast_app_getdata(chan, "conf-getpin", pin, sizeof(pin) - 1, 0);
|
res = ast_app_getdata(chan, "conf-getpin", pin, sizeof(pin) - 1, 0);
|
||||||
}
|
}
|
||||||
if (res == 0) {
|
if (res >= 0) {
|
||||||
if (!strcasecmp(pin, cnf->pin)) {
|
if (!strcasecmp(pin, cnf->pin)) {
|
||||||
/* Pin correct */
|
/* Pin correct */
|
||||||
allowretry = 0;
|
allowretry = 0;
|
||||||
/* Run the conference */
|
/* Run the conference */
|
||||||
res = conf_run(chan, cnf, confflags);
|
res = conf_run(chan, cnf, confflags);
|
||||||
|
} else {
|
||||||
|
/* Pin invalid */
|
||||||
|
res = ast_streamfile(chan, "conf-invalidpin", chan->language);
|
||||||
|
if (!res)
|
||||||
|
ast_waitstream(chan, "");
|
||||||
|
res = -1;
|
||||||
|
if (allowretry)
|
||||||
|
strcpy(confno, "");
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
res = -1;
|
||||||
|
allowretry = 0;
|
||||||
}
|
}
|
||||||
/* Pin invalid or error */
|
|
||||||
res = ast_streamfile(chan, "conf-invalidpin", chan->language);
|
|
||||||
if (!res)
|
|
||||||
ast_waitstream(chan, "");
|
|
||||||
res = -1;
|
|
||||||
if (allowretry)
|
|
||||||
strcpy(confno, "");
|
|
||||||
} else {
|
} else {
|
||||||
/* No pin required */
|
/* No pin required */
|
||||||
allowretry = 0;
|
allowretry = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user