Birmingham were denied a goal against Ipswich after the linesman deemed the ball had gone out of play in the build-up.