Comparing the ANI against a list really depends on how many numbers you are talking about.
If it is less than 10, I'd say you could handle that with an expression in a Decision action or use a Select action. If more than that, but under the limits for a data table (and you don't think it will grow past the size of a data table), go that route. Otherwise Id use a CRM integration or a Web Services Data Action to connect with a database and store the priority info there, and assign priority as appropriate.
------------------------------
George Ganahl GCP (PureCloud) ICCE
Principal Technology Consultant
Genesys
------------------------------