Play prompt if dir is empty.

agranig/ro-empty-dir
Andreas Granig 11 years ago
parent 53e4a905f4
commit d26ac24256

@ -7840,6 +7840,15 @@ static int vm_execmain(struct ast_channel *chan, void *data)
break;
default: /* Nothing */
ast_log(LOG_NOTICE, "+++++ default action, play instructions\n");
if (!vms.oldmessages && !vms.newmessages) {
if(!strcasecmp(chan->language, "ro")) {
ast_play_and_wait(chan, "vm-dir-empty");
} else {
res = ast_play_and_wait(chan, "vm-no");
if (!res)
res = ast_play_and_wait(chan, "vm-messages");
}
}
cmd = vm_instructions(chan, &vms, 0);
break;
}

Loading…
Cancel
Save