This is possible, but probably easier if you use a service like AWS Connect that will handle the connection to the device. You will need to create your own plugin. We currently use it for one of my client and it work great. We also use AWS sentiment analysis for call and transcript. Even for voicemail.