I think purpose of life is to feel fulfilled and satisfied. To be in peace with yourself - the way you feel when you know you are doing the right thing.
With those emotions happiness may come, but still it can be completely opposite. So no - happiness IMO is not purpose of life. Knowing you are on the right place in your life and knowing that you are in peace with yourself, that's what I consider to be purpose of life.