Added direction-based filter, requires exten_len variable set in config