Phone thinks headphones are in - can't convince it otherwise

My iphone seems to believe that the headphones are perpetually in the jack.

If I reboot the phone it still thinks my headphones are in. If I put headphones into the jack then take them out then it STILL thinks they are still in.

Restore didn't help either.

Anyone know what might be wrong? I'm afraid I will just have to use the speaker phone forever.
Nevermind. Just fixed it - it was some crap that got stuck in the headphones jack.
Glad to see you're problem is fixed. Yeah this happened with my Palm Pre, it was stuck in HeadPhone mode. next time just take a qtip and clean the jack.
I wouldn't actually recommend using a q-tip. Use an esd safe brush and/or compressed air. With the air though don't get too close, you don't want to damage components.

Original thread: https://forums.imore.com/threads/phone-thinks-headphones-are-in-cant-convince-it-otherwise.218337/