I have an iPhone 3g running iOS4.1 jailbroken with redsnow and the dock connector will not detect any third party accessories(speakers, docks, component cables)even though they are 3g compatible. But will still charge and sync with computer via USB.

Any help fixing this problem would be greatly appreciated.