[sr-dev] direction check missing in record_route()