Thanks for the question, and welcome to Apple Support Communities.
From your description, it sounds like you are having issues with others hearing you while using speakerphone. For these symptoms, the following article provides the most relevant information. On the iPhone 4, it is commonly due to a third-party case blocking the top microphone:
Additionally, you can check out these articles: