(Reuters) - Cisco Systems Inc will buy U.S. telecommunications software company BroadSoft Inc in a deal valued at $1.9 billion, as the world's largest networking gear producer shifts from its stagnating legacy business of switches and routers.