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,338
Folders
408
Scanned Size
3.84 GB
PHP Files
890
Editable Text Files
12,599
File viewer
guarded to /htdocs
/SI/phone/route.php
<?php declare(strict_types=1); require_once __DIR__ . '/bootstrap.php'; require_once dirname(__DIR__) . '/_core/knowledge.php'; $speech = strtolower(si_phone_post('SpeechResult')); $digits = si_phone_post('Digits'); $confidence = si_phone_post('Confidence'); $combined = trim($digits . ' ' . $speech); $caller = si_phone_post('From'); if ($speech !== '') si_memory_remember('phone', $caller, 'caller', $speech, ['digits' => $digits, 'confidence' => $confidence]); si_phone_log('route_request', [ 'speech' => $speech, 'digits' => $digits, 'confidence' => $confidence, ]); $isMessage = $digits === '0' || $digits === '4' || preg_match('/\b(keith|message|voicemail|call me back|callback|transfer|representative|person|human|operator|speak to someone|talk to someone)\b/', $combined) === 1; $isUrgent = preg_match('/\b(urgent|emergency|immediately|right away|critical)\b/', $combined) === 1; if ($isUrgent) { si_phone_log('urgent_transfer_requested', ['caller'=>$caller,'speech'=>$speech]); si_phone_xml('<?xml version="1.0" encoding="UTF-8"?><Response><Say voice="Polly.Matthew">I understand this is urgent. Please hold while SIMON connects you directly to Keith Ballard.</Say><Redirect method="POST">'.si_phone_escape(si_phone_base_url().'/transfer.php').'</Redirect></Response>'); } if ($isMessage) { $messageUrl = si_phone_escape(si_phone_base_url() . '/voicemail.php'); si_phone_xml( '<?xml version="1.0" encoding="UTF-8"?>' . '<Response>' . '<Say voice="Polly.Matthew">Please leave your name, telephone number, and message after the tone. Press the pound key when finished.</Say>' . '<Record action="' . $messageUrl . '" method="POST" maxLength="120" finishOnKey="#" playBeep="true" trim="trim-silence" transcribe="true" transcribeCallback="' . si_phone_escape(si_phone_base_url() . '/transcription.php?notify=corporate_vm') . '" />' . '<Redirect method="POST">' . $messageUrl . '</Redirect>' . '</Response>' ); } $incomingUrl = si_phone_escape(si_phone_base_url() . '/incoming.php'); $plainAnswer = si_knowledge_answer($speech, $caller); si_memory_remember('phone', $caller, 'si', $plainAnswer); $answer = si_phone_escape($plainAnswer); si_phone_xml( '<?xml version="1.0" encoding="UTF-8"?>' . '<Response>' . '<Say voice="Polly.Matthew">' . $answer . '</Say>' . '<Say voice="Polly.Matthew">You may ask SIMON another question, or say leave a message for Keith.</Say>' . '<Redirect method="POST">' . $incomingUrl . '</Redirect>' . '</Response>' );
Save file
Quick jump
open a path
Open