If you’re a DIY type of person, then hack away using: Fun with AMI (node-red)
Also many hard phones have Action URL options (such as Sangoma S series) where you can config the phone itself to make URL calls when specific phone actions happen such as answer or hangup.