Display invalid extension when there is one, fix minor OSP typo, Don't send 200 OK...
[asterisk/asterisk.git] / pbx.c
diff --git a/pbx.c b/pbx.c
index 7344dd3..f96e7de 100755 (executable)
--- a/pbx.c
+++ b/pbx.c
@@ -1878,7 +1878,7 @@ int ast_pbx_run(struct ast_channel *c)
                                                strncpy(c->exten, "i", sizeof(c->exten)-1);
                                                c->priority = 1;
                                        } else {
-                                               ast_log(LOG_WARNING, "Invalid extension, but no rule 'i' in context '%s'\n", c->context);
+                                               ast_log(LOG_WARNING, "Invalid extension '%s', but no rule 'i' in context '%s'\n", exten, c->context);
                                                goto out;
                                        }
                                } else {