I am using the REST API to send SMS via Twilio.
The file is loaded via my browser which instantiates the client and does the SMS SEND.
$sms_send = $client->account->sms_messages->create($from, $to, $body);
$sid = $sms_send->sid;
//creating session for the SMS ID to pass to SMSUrl
$_SESSION['sid'] = $sid;
In the body of this text, I have a string phone number that is clickable in the Text Message. It starts a phone call to one of my Twilio numbers.
I see that Twilio suggests cookies to be used, but how exactly can I do this or something else to make sure that the SMS ID follows the SMS text all the way to the call for the Twilio?
My goal is to have something to tie the phone call back to the SMS text message.
Thank you!