Generating a warning would be slightly complicated, because both versions could be correct:

phone:ES for a number available only in Spain
phone:es for a dedicated number with a Spanish speaking contact