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) {
if (res == -1)
break;
- if (stop != NULL && res == *stop) {
+ if (stop && strchr(stop, res)) {
res = 0;
break;
}
static int wait_file(struct ast_channel *chan, struct vm_state *vms, char *file)
{
- return ast_control_streamfile(chan, file, "#", "*", "1", "0", skipms);
+ return ast_control_streamfile(chan, file, "#", "*", "14679", "0", skipms);
}
static int play_message_datetime(struct ast_channel *chan, struct ast_vm_user *vmu, char *origtime, char *filename)