mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 00:00:09 +00:00
Ask for mailbox number if omitted (bug #552)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1772 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2641,7 +2641,7 @@ static int vm_exec(struct ast_channel *chan, void *data)
|
|||||||
LOCAL_USER_ADD(u);
|
LOCAL_USER_ADD(u);
|
||||||
if (chan->_state != AST_STATE_UP)
|
if (chan->_state != AST_STATE_UP)
|
||||||
ast_answer(chan);
|
ast_answer(chan);
|
||||||
if (data)
|
if (data && strlen(data))
|
||||||
strncpy(tmp, data, sizeof(tmp) - 1);
|
strncpy(tmp, data, sizeof(tmp) - 1);
|
||||||
else {
|
else {
|
||||||
res = ast_app_getdata(chan, "vm-whichbox", tmp, sizeof(tmp) - 1, 0);
|
res = ast_app_getdata(chan, "vm-whichbox", tmp, sizeof(tmp) - 1, 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user