I think I figured this out - While on speakerphone or with headphones plugged in, the lock screen button should NOT end the call. However, after upgrading to ios 5 beta 2, my speakerphone will not work (even after it is lit up indicating that it has been activated). I'm assuming this also means that it does not recognize that headphones are plugged in.
Is anyone else having this problem?