diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-10-09 04:28:44 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-10-09 04:28:44 +0000 |
commit | 3aa74a9dfe599f70699e28fdb81a6c84bcbd41bb (patch) | |
tree | eb7e18bb5b08a142a853a9419011a5004608d3f5 /apps | |
parent | 659f3ce52d4a14077884fee384c04dd806bf0fd8 (diff) |
fix voicemail account setup (bug #2077)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3961 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_voicemail.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 757130881..5f0b9b2cf 100755 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -2949,6 +2949,7 @@ static int vm_newuser(struct ast_channel *chan, struct ast_vm_user *vmu, struct return cmd; newpassword2[1] = '\0'; newpassword2[0] = cmd = ast_play_and_wait(chan,"vm-reenterpassword"); + if (cmd < 0 || cmd == 't' || cmd == '#') return cmd; cmd = ast_readstring(chan,newpassword2 + strlen(newpassword2),sizeof(newpassword2)-1,2000,10000,"#"); if (cmd < 0 || cmd == 't' || cmd == '#') |