Mobile telecoms equipment maker Ericsson (ERICb.ST) said on Monday it had agreed to buy cloud communications firm Vonage for $6.2 billion.