diff --git a/apps/app_directory.c b/apps/app_directory.c
index 6d417444e82e612e86b40e17733112fdc77c7db6..e0a962f70b8fcbbe10a53bc57e339b32c8a1e790 100755
--- a/apps/app_directory.c
+++ b/apps/app_directory.c
@@ -184,7 +184,7 @@ static int play_mailbox_owner(struct ast_channel *chan, char *context, char *dia
 						ast_log(LOG_WARNING,
 							"Can't find extension '%s' in context '%s'.  "
 							"Did you pass the wrong context to Directory?\n",
-							ext, context);
+							ext, dialcontext);
 						res = -1;
 					}
 					break;