Well for a while now my iPhone 3GS thinks it's plugged into the dock when it isn't, and therefore there is no sound. When it's taken out of sleep mode, it will work for a few seconds before going back into dock mode. I had the genius clean it with no success. So I thought a script to force the audio out of the speaker, like Voice Memos can do. I had a thought of removing tty.iap from /dev/ but I don't know if this would stop my iPhone connecting to itunes as well?
Tried - no success Thanks anyway Luckily, upgrading to iOS 5 got rid of the 'This accessory is not optimized for this phone' message, but it's still in dock mode
Mines been going in and out for the past week and now after like a year it's finally working again, but I'm sure it will break again at some point. There doesn't seem to be any real fix other than getting it or the dock replaced, however if you want a short term fix, if your gf's phone is jailbroken (from experience I doubt it ), you can download MobileTerminal and enter the following touch /dev/tty.iap And you will get your sound back, however next time you sleep your phone it will most likely revert