Are both okay here:
I would have contacted you if you hadn't called me first.
I would have contacted you if you didn't call me first.
Only #1 is OK.
For me they both work. The word "first" establishes the order of the past acts. That makes the past perfect optional in my opinion.
Pope of the Dictionary.com Forum