Index: main/pbx.c =================================================================== --- main/pbx.c (revision 338226) +++ main/pbx.c (working copy) @@ -2491,7 +2491,7 @@ prof_id = ast_add_profile("ext_match", 0); } ast_mark(prof_id, 1); - i = _extension_match_core(pattern, data, mode); + i = _extension_match_core(ast_strlen_zero(pattern) ? "" : pattern, ast_strlen_zero(data) ? "" : data, mode); ast_mark(prof_id, 0); return i; }