diff options
author | Mark Spencer <markster@digium.com> | 2004-06-01 19:38:06 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-06-01 19:38:06 +0000 |
commit | 36b87b3b33c5db11591a2a6a0f8dcd9ab9d1829b (patch) | |
tree | 307a3af3f267bfd600d2a4e66d2e3d70afc94248 /app.c | |
parent | 8164972e34216ad266a9ecc55c97f178d9bc2c10 (diff) |
Voicemail fixes (bug #1758)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3124 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'app.c')
-rwxr-xr-x | app.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -459,7 +459,9 @@ int ast_control_streamfile(struct ast_channel *chan, char *file, char *fwd, char if (chan) ast_stopstream(chan); res = ast_waitfordigit(chan, 1000); - if (res == -1 || strchr(pause, res) || (stop && strchr(stop, res))) + if(res == 0) + continue; + else if(res == -1 || strchr(pause, res) || (stop && strchr(stop, res))) break; } if (res == *pause) { @@ -470,7 +472,7 @@ int ast_control_streamfile(struct ast_channel *chan, char *file, char *fwd, char if (res == -1) break; - if (stop != NULL && res == *stop) { + if (stop && strchr(stop, res)) { res = 0; break; } |