From: Tilghman Lesher Date: Wed, 15 Nov 2006 21:56:55 +0000 (+0000) Subject: Fix ODBC_STORAGE for when context is NULL X-Git-Tag: 1.4.0-beta4~105 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=07c309c8b1d684f9de93cdf74bbaa631f819ed7f;p=thirdparty%2Fasterisk.git Fix ODBC_STORAGE for when context is NULL git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47709 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index e0a2881a78..df220c9c5b 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -4049,7 +4049,7 @@ static int forward_message(struct ast_channel *chan, char *context, struct vm_st long duration = 0; RETRIEVE(dir, curmsg); - cmd = vm_forwardoptions(chan, sender, dir, curmsg, vmfmts, context, record_gain, &duration, vms); + cmd = vm_forwardoptions(chan, sender, dir, curmsg, vmfmts, S_OR(context, "default"), record_gain, &duration, vms); if (!cmd) { AST_LIST_TRAVERSE_SAFE_BEGIN(&extensions, vmtmp, list) { #ifdef IMAP_STORAGE