Properly take into account the dialplan priority in case entry matches both string and regex rules