--- app_voicemail.c 2004-12-18 00:12:57.000000000 +0000 +++ app_voicemail.c.bak 2004-12-18 00:04:37.000000000 +0000 @@ -2084,7 +2084,6 @@ if (res == '0') { transfer: if (vmu->operator) { - res = record_vm(res, &chan, &ext, silent, busy, unavail); strncpy(chan->exten, "o", sizeof(chan->exten) - 1); if (!ast_strlen_zero(vmu->exit)) { strncpy(chan->context, vmu->exit, sizeof(chan->context) - 1); @@ -2104,18 +2103,6 @@ free_user(vmu); return -1; } - - else { - ast_log(LOG_WARNING, "No entry in voicemail config file for '%s'\n", ext); - /*Send the call to n+101 priority, where n is the current priority*/ - if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->cid.cid_num)) - chan->priority+=100; - } -} - -static int record_vm(int res, struct ast_channel *chan, char *ext, int silent, int busy, int unavail) -{ - /* The meat of recording the message... All the announcements and beeps have been played*/ strncpy(fmt, vmfmts, sizeof(fmt) - 1); if (!ast_strlen_zero(fmt)) { @@ -2217,8 +2204,14 @@ ast_log(LOG_WARNING, "No format for saving voicemail?\n"); leave_vm_out: free_user(vmu); - - return res; + } else { + ast_log(LOG_WARNING, "No entry in voicemail config file for '%s'\n", ext); + /*Send the call to n+101 priority, where n is the current priority*/ + if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->cid.cid_num)) + chan->priority+=100; + } + + return res; } #ifdef USE_ODBC_STORAGE