function uribook_uribook($c) { global $ext; global $asterisk_conf; $date = uribookoptions_getconfig(); $ttsengine = $date[0]; $id = "app-uribook"; // The context to be included $ext->addInclude('from-internal-additional', $id); // Add the include from from-internal $ext->add($id, $c, '', new ext_goto('1', 's', $ttsengine)); }
//This program is distributed in the hope that it will be useful, //but WITHOUT ANY WARRANTY; without even the implied warranty of //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //GNU General Public License for more details. // check to see if user has automatic updates enabled $cm =& cronmanager::create($db); $online_updates = $cm->updates_enabled() ? true : false; // check if new version of module is available if ($online_updates && ($foo = uribook_vercheck())) { print "<br>A <b>new version</b> of this module is available from the <a target='_blank' href='http://github.com/reconwireless/FreePBX-URI-Phonebook/downloads'>Reconnaissance Communications</a><br>"; } //tts_findengines() if (count($_POST)) { uribookoptions_saveconfig(); } $date = uribookoptions_getconfig(); $selected = $date[0]; // Get current featurecode from FreePBX registry $fcc = new featurecode('uribook', 'uribook'); $featurecode = $fcc->getCodeActive(); ?> <form method="POST" action=""> <br><h2><?php echo _("URI Book"); ?> <hr></h5></td></tr> Allows you to easily add SIP URI extensions, temporarily limited to vuc.me sip uri <b><?php print $featurecode; ?> </b>. This value can be changed in Feature Codes. <br>