During calling, you can lock your iPhone with CallLock. CallLock is a cydia tweak that locks iPhone screen when you are in call with someone. It prevents you from accidentally pressing any key on your iPhone. Accidentally pressing phone buttons can lead to hold, end a call by mistake. This tweak is especially useful for people having Proximity Sensor in their iPhone 4 as faulty.
