For some reason, I'm having a very tough time understanding how the Twilio model works; as a result, I'm trying to code a solution by guessing (something I hate doing.) I hope someone can help with the confusion.
I've already set up a forwarder so that when someone sends a text to my Twilio number, I receive it on my phone. The problem is, when I reply to that text, it goes to Twilio instead of back to the original sender.
I've tried passing my number as a 'from' string in the tag, but this gets rejected by Twilio as not being a valid Twilio number.
<?php header('Content-Type: text/html'); ?>
<Response>
<!-- ****** This gets rejected: ****** -->
<!-- Message to="<?=$_REQUEST['PhoneNumber']?>" from="<?=$_REQUEST['From']?>" -->
<Message to="<?=$_REQUEST['PhoneNumber']?>">
<?=htmlspecialchars(substr($_REQUEST['From'] . $_REQUEST['Body'], 0, 1600))?>
</Message>
</Response>