I have an iPhone 4 which has a minor hardware fault with the dock connector which causes the phone to think that it is always docked to speakers when it is not,

My phone will play music normally with headphone connected, however not at all without,

Is there a way I can override the docking mode and choose to play through internal speakers instead? Internal speakers will work for ring tone but not for music. (more than happy to modify any system files or install any JB addon if needed)

Running 5.0.1 JB

Many thanks