Indian equities had a volatile trading session but managed to eke out gains as banking stocks staged a rebound in the second half.