Services that are specifically designed to comply with Federal and state laws (and laws of other countries where it operates) perform call recording in strict compliance to those laws. This not only includes a mandatory verbal notification that the call is being recorded, but also includes encrypted storage of recordings, and an audit trail. In certain cases (such as in the insurance industry), the caller must be informed during the call, and asked to speak their understanding and agreement. There also must be a way to provide the data to a court or other law enforcement body, with a documented chain of custody.
That's not something that anyone should build on their own using bare-bones service providers.
This is specifically why I mentioned the new Google Voice for G Suite offering (not trying to be a salesman!). The new G Suite-based offering meets all of these requirements.