[Asterisk-cvs] asterisk/apps app_meetme.c,1.51,1.52
markster at lists.digium.com
markster at lists.digium.com
Mon Jul 26 23:24:22 CDT 2004
Update of /usr/cvsroot/asterisk/apps
In directory localhost.localdomain:/tmp/cvs-serv8630/apps
Modified Files:
app_meetme.c
Log Message:
Allow you to enter the pin again during th "invalid pin" message
Index: app_meetme.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_meetme.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- app_meetme.c 27 Jul 2004 03:08:00 -0000 1.51
+++ app_meetme.c 27 Jul 2004 03:10:26 -0000 1.52
@@ -1334,7 +1334,7 @@
res = 0;
} else {
/* 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 + strlen(pin), sizeof(pin) - 1 - strlen(pin), 0);
}
if (res >= 0) {
if (!strcasecmp(pin, cnf->pin)) {
@@ -1347,7 +1347,11 @@
/* Pin invalid */
res = ast_streamfile(chan, "conf-invalidpin", chan->language);
if (!res)
- ast_waitstream(chan, "");
+ ast_waitstream(chan, AST_DIGIT_ANY);
+ if (res < 0)
+ break;
+ pin[0] = res;
+ pin[1] = '\0';
res = -1;
if (allowretry)
confno[0] = '\0';
More information about the svn-commits
mailing list