Integrating VoIP phone systems with CRM tools?

Hello,
Has anyone successfully integrated their VoIP phone system with a CRM tool? I’m curious about the benefits and any potential pitfalls to be aware of.