--- old/asterisk-1.6.1.1/main/pbx.c Fri Apr 17 10:33:27 2009 +++ asterisk-1.6.1.1/main/pbx.c Thu Jun 25 16:31:23 2009 @@ -3143,6 +3143,9 @@ int matching_action = (action == E_MATCH || action == E_CANMATCH || action == E_MATCHMORE); + + context = context ? context : ""; /* Context should not be NULL */ + ast_rdlock_contexts(); if (found) *found = 0;