Collision response without velocity change

In certain situations I would to override the default box2D collision response behavior between a static and a non-static body. I still need the bodies to collide and not overlap each other but I don't want the collision response to change the objects velocity.

For example if I had a body moving upwards that collides with a static body above it I don't want it to immediately deflect downwards, instead I would like to keep "pushing" against the body above until gravity causes it to fall back down.

Can anyone give me suggestions on how to implement this?

Thanks.
Try setting the restitution of the static and dynamic bodies to 0.
I gave that a try but I believe the impulse being applied to keep the shapes from overlapping was still altering the velocity of the body. It seems that I can do it by recording the velocity before the physics step then reapplying it afterwords. Although if anybody has a better implementation I would love to here it.

Original thread: https://box2d.org/forum/viewtopic.php?t=6812