I think you're confused about the function of the sleep button on the iPhone. When an iPhone is ringing, pressing the sleep button one time silences the ringing and vibration, but does not "hang up" the call. Pressing again, however, will "hang up" the call.