OB or primary?

If I think I might have an ear infection can I just call my primary doctor or do I need to go through my OB?