]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
automerge commit
authorAutomerge script <automerge@asterisk.org>
Thu, 16 Feb 2006 19:03:22 +0000 (19:03 +0000)
committerAutomerge script <automerge@asterisk.org>
Thu, 16 Feb 2006 19:03:22 +0000 (19:03 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@10322 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 0e41da1b93356bfd9841862143fb359a8f848f96..4a3aa2a468858059db25c959422d3eb37c109614 100644 (file)
@@ -3407,7 +3407,7 @@ static int forward_message(struct ast_channel *chan, char *context, char *dir, i
                                break;
                }
                
-               if( use_directory ) {
+               if (use_directory) {
                        /* use app_directory */
                        
                        char old_context[sizeof(chan->context)];
@@ -3424,7 +3424,7 @@ static int forward_message(struct ast_channel *chan, char *context, char *dir, i
                                old_priority = chan->priority;
                                
                                /* call the the Directory, changes the channel */
-                               res = pbx_exec(chan, app, ((context)?context:chan->context), 1);
+                               res = pbx_exec(chan, app, context ? context : "default", 1);
                                
                                ast_copy_string(username, chan->exten, sizeof(username));