diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-07-27 03:10:26 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-07-27 03:10:26 +0000 |
commit | da548606d31f8c000eecee94bfbdeb26fd32f6a3 (patch) | |
tree | 0ae3e79697670e47ef4f2f1a38e1d6001eedf1a5 /apps | |
parent | 95e8895aed14e10eb59592bdb5bc9335bc52465a (diff) |
Allow you to enter the pin again during th "invalid pin" message
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3521 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_meetme.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/app_meetme.c b/apps/app_meetme.c index 091a613be..2070490f1 100755 --- a/apps/app_meetme.c +++ b/apps/app_meetme.c @@ -1334,7 +1334,7 @@ static int conf_exec(struct ast_channel *chan, void *data) 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 @@ static int conf_exec(struct ast_channel *chan, void *data) /* 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'; |