SIMON Master Console Rebuild
True command center for SIMON + WEB360
This rebuild gives you a cleaner production spine: interactive tree, live viewer, guarded editor, dynamic graphics, architecture map, and note storage. It is designed to sit beside your existing
console.php
and become the stronger replacement path.
Dashboard
Tree
Viewer
System Map
File Registry
Notes
Files
15,551
Folders
418
Scanned Size
3.85 GB
PHP Files
915
Editable Text Files
12,812
File viewer
guarded to /htdocs
/old/phone/trusted-route.php
<?php declare(strict_types=1); require_once __DIR__ . '/bootstrap.php'; $caller = preg_replace('/\D+/', '', si_phone_post('From')) ?? ''; $recordingUrl = si_phone_post('RecordingUrl'); if (($_GET['recorded'] ?? '') === 'text' && $recordingUrl !== '') { si_phone_log('trusted_text_recorded', [ 'caller' => $caller, 'recording_url' => $recordingUrl, 'duration_seconds' => si_phone_post('RecordingDuration'), ]); si_phone_xml( '<?xml version="1.0" encoding="UTF-8"?>' . '<Response><Say voice="Polly.Matthew">Thank you. SI will transcribe your message and send it to Keith by text. Goodbye.</Say><Hangup /></Response>' ); } $digits = si_phone_post('Digits'); $speech = strtolower(si_phone_post('SpeechResult')); $choice = trim($digits . ' ' . $speech); $connect = $digits === '1' || preg_match('/\b(connect|call|speak|talk|keith)\b/', $choice) === 1; $text = $digits === '2' || preg_match('/\b(text|message|send)\b/', $choice) === 1; $voicemail = $digits === '3' || preg_match('/\b(voicemail|voice mail)\b/', $choice) === 1; if ($connect) { si_phone_log('trusted_caller_requested_connection', ['caller' => $caller]); si_phone_xml( '<?xml version="1.0" encoding="UTF-8"?>' . '<Response><Say voice="Polly.Matthew">Please hold while SI connects you to Keith.</Say>' . '<Redirect method="POST">' . si_phone_escape(si_phone_base_url() . '/transfer.php') . '</Redirect></Response>' ); } if ($text) { $selfUrl = si_phone_escape(si_phone_base_url() . '/trusted-route.php?recorded=text'); $transcriptionUrl = si_phone_escape( si_phone_base_url() . '/transcription.php?notify=sms&caller=' . rawurlencode($caller) ); si_phone_xml( '<?xml version="1.0" encoding="UTF-8"?>' . '<Response>' . '<Say voice="Polly.Matthew">After the tone, speak the message you want SI to text to Keith. Press the pound key when finished.</Say>' . '<Record action="' . $selfUrl . '" method="POST" maxLength="90" finishOnKey="#" playBeep="true" trim="trim-silence" transcribe="true" transcribeCallback="' . $transcriptionUrl . '" />' . '<Say voice="Polly.Matthew">No message was recorded. Goodbye.</Say><Hangup />' . '</Response>' ); } if ($voicemail) { si_phone_log('trusted_caller_requested_voicemail', ['caller' => $caller]); si_phone_xml( '<?xml version="1.0" encoding="UTF-8"?>' . '<Response><Redirect method="POST">' . si_phone_escape(si_phone_base_url() . '/voicemail.php') . '</Redirect></Response>' ); } si_phone_xml( '<?xml version="1.0" encoding="UTF-8"?>' . '<Response><Say voice="Polly.Matthew">I did not understand your choice.</Say>' . '<Redirect method="POST">' . si_phone_escape(si_phone_base_url() . '/incoming.php') . '</Redirect></Response>' );
Save file
Quick jump
open a path
Open