mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Warn the user when a temporary greeting exists
(Closes issue #11409) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@106635 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -6125,6 +6125,10 @@ static int vm_options(struct ast_channel *chan, struct ast_vm_user *vmu, struct
|
|||||||
cmd = 't';
|
cmd = 't';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
snprintf(prefile, sizeof(prefile), "%s%s/%s/temp", VM_SPOOL_DIR, vmu->context, vms->username);
|
||||||
|
if (ast_fileexists(prefile, NULL, NULL))
|
||||||
|
cmd = ast_play_and_wait(chan, "vm-tmpexists");
|
||||||
|
if (!cmd)
|
||||||
cmd = ast_play_and_wait(chan, "vm-options");
|
cmd = ast_play_and_wait(chan, "vm-options");
|
||||||
if (!cmd)
|
if (!cmd)
|
||||||
cmd = ast_waitfordigit(chan,6000);
|
cmd = ast_waitfordigit(chan,6000);
|
||||||
|
Reference in New Issue
Block a user