diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-11-21 05:50:21 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-11-21 05:50:21 +0000 |
commit | b49cd7e0535b293fba928b2a26a98c31f3a3013d (patch) | |
tree | 43b59706516ef7a32046089ca66bc9d4751cbe9b /apps | |
parent | b808afc39afb5b8778a8cd8033c3b9faa5ad3e33 (diff) |
Ask for mailbox number if omitted (bug #552)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1772 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_voicemail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 6bef7bb92..364d205e5 100755 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -2641,7 +2641,7 @@ static int vm_exec(struct ast_channel *chan, void *data) LOCAL_USER_ADD(u); if (chan->_state != AST_STATE_UP) ast_answer(chan); - if (data) + if (data && strlen(data)) strncpy(tmp, data, sizeof(tmp) - 1); else { res = ast_app_getdata(chan, "vm-whichbox", tmp, sizeof(tmp) - 1, 0); |