Twilio retrieve call on hold back
In my application, I need to do Twilio holding and retrieving back a call. I researched and got this link : https://www.twilio.com/docs/api/rest/change-call-state . javascript function holdCall() { // hold a call var callSid = connection.parameters.CallSid; $.ajax({ url: "http://www.domain.com/phone/phone_ajax.php", type: 'POST', data: { callSid: callSid }, success: function(data) { console.log(data); }, error: function() { }, complete: function() { } }); } The ajax call will go to this page. phone_ajax.php require_once ( "http://www.domain.com/phone/phone_api/vendor/autoload.php"); use Twilio