This is a trick everyone should know.
When creating a contact, instead of this:
Jenny
866-5309 x1982
Do this:
Jenny
866-5309;1982
The semicolon is secret code to your iPhone to wait once the call connects and gives you the option to dial the extension when you tap it at the bottom of the screen.