Inbound CID area code routes randomly not working

I have a fresh installation of FreePBX 12.0.13 that’s generally working OK. The problem is that I added a series of new inbound routes trying to get all canadian area codes to go to their own IVR “Canada IVR”.

For example for area code 514:

I originally tried “_514” in the CID box.

(got complaints of many, many calls going to Canada IVR from US numbers)

Then I thought the problem was that the routes were matching numbers with 514 at any point, say a CID of 1-800-514-1234.

So I went to “_514NXXXXXX” in the CID box.

Still got complaints, though less of them.

Would “_514.” work better? What am I missing? Thanks!