/* Decoded by unphp.net */ //Check for config.. if(!file_exists("include/config.php")) { die("There is an error. Config file not found. Please re-install or contact support."); } session_start(); require_once('include/util.php'); $db = new DB(); //This is an admin-only page. //Pre-load Checks if(!isset($_SESSION['user_id'])) { header("Location: login.php"); exit; } if(@$_SESSION['permission']<1 && !$_SESSION['prems']['purchase_numbers']) { ?> request("/$ApiVersion/Accounts/$AccountSid/IncomingPhoneNumbers/" . $_REQUEST['sid'], "DELETE", $data); if($response->IsError) { ?> deleteNumber($db->format_phone_db($_REQUEST['num'])); else $db->deleteNumber($_REQUEST['num']); ?> $_REQUEST['friendly_name_static'], "VoiceUrl" => $_REQUEST['url'], "SmsUrl" => $_REQUEST['sms_url'] ); $response = $client->request("/$ApiVersion/Accounts/$AccountSid/IncomingPhoneNumbers/" . $_REQUEST['Sid'], "POST", $data); if($response->IsError) die(json_encode(array("result"=>"fail","reason"=>$response->ErrorMessage))); else{ if(isset($_SESSION['twilio_numbers'])){ $_SESSION['twilio_numbers'] = null; $_SESSION['twilio_numbers_last_upd'] = null; } die(json_encode(array("result"=>"success","number"=>$response->ResponseXml->IncomingPhoneNumber->PhoneNumber))); } } if (isset($_GET['action'])) { switch ($_GET['action']) { case 'forward_sms_ui': $phone_number_from = $_GET['phone_number']; $phone_number_to = $db->get_sms_forward($phone_number_from); ?>
Your account has not purchased any Twilio Incoming Numbers. You may purchase numbers using the form above.
Or, you can use your existing Twilio numbers by setting your
Voice URL to: