/* 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); ?>

Remember to enter the phone number with the country code. Example: 15554421121

Enter phone number:
account->incoming_phone_numbers->getIterator(0, 1000, array('PageSize'=>1000))); $page="adminpage"; ?> <?php echo $title; ?>

Purchase a number

At LEAST one field required.









To search for area code, enter: 772******* (replace '772' with your area code)


account->incoming_phone_numbers->getIterator(0, 1000, array('PageSize'=>1000)) as $number){ if ($_SESSION['permission'] == 0) { if (!$db->companyHasNum($_SESSION['sel_co'], $number->phone_number)) { continue; } } $valid_numbers[] = $number; } ?>

Your twilio numbers ()     Manage Exceptions     Reset All Numbers

0){ ?>
sid; $FriendlyName = Util::escapeString($number->friendly_name); $PhoneNumber = $number->phone_number; $VoiceUrl = $number->voice_url; $SmsUrl = $number->sms_url; if(!Util::isNumberIntl($PhoneNumber)) { $phone_number = Util::format_phone_us($PhoneNumber); $company_name = $db->getCompanyName($db->getCompanyOfNumber($db->format_phone_db($PhoneNumber))); }else{ $phone_number = format_phone($db->format_phone_db($PhoneNumber)); $company_name = $db->getCompanyName($db->getCompanyOfNumber(substr($PhoneNumber,1,(strlen($PhoneNumber)-1)))); } $number_details = $db->getOutgoingNumberDetails($db->format_phone_db($PhoneNumber)); if ($number_details['pool_id'] == 0 || empty($number_details['pool_id'])) { ?>
Number Campaign URL Action

Call:
SMS:

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: