diff --git a/OpenVBX/controllers/twiml.php b/OpenVBX/controllers/twiml.php index e3a2261f..09d7358d 100644 --- a/OpenVBX/controllers/twiml.php +++ b/OpenVBX/controllers/twiml.php @@ -209,7 +209,11 @@ private function applet($flow_id, $inst_id, $type = 'voice') $applet->sms = $sms; if($sms) { - $_POST['Body'] = $_GET['Body'] = $_REQUEST['Body'] = $sms; + if (!isset($_REQUEST['Body'])) $_REQUEST['Body'] = $sms; +if (!isset($_POST['Body'])) $_POST['Body'] = $sms; +if (!isset($_GET['Body'])) $_GET['Body'] = $sms; + //If the instance is a forward the message get overwritten!!! + // $_POST['Body'] = $_GET['Body'] = $_REQUEST['Body'] = $sms; } $this->session->unset_userdata('sms-body');