aboutsummaryrefslogtreecommitdiffstats
path: root/config/freeswitch_dev
diff options
context:
space:
mode:
authormcrane <mctch@yahoo.com>2009-08-05 01:41:43 -0600
committermcrane <mctch@yahoo.com>2009-08-05 02:09:14 -0600
commit0e992b220cbcf8dbf0ed29b50c222d1147600111 (patch)
tree433a3e4f8fffe10f61ff7e8e2acaddc4cd9749bf /config/freeswitch_dev
parent1dbce842191c362f6dba0d1434ec5521c478dd1b (diff)
downloadpfsense-packages-0e992b220cbcf8dbf0ed29b50c222d1147600111.tar.gz
pfsense-packages-0e992b220cbcf8dbf0ed29b50c222d1147600111.tar.bz2
pfsense-packages-0e992b220cbcf8dbf0ed29b50c222d1147600111.zip
FreeSWITCH dev package rebuild the modules page add additional languages, cidlookup, least cost routing, voicemail beep dete4ction, easyroute, spidermonkey tools, and amrwb codec.
Diffstat (limited to 'config/freeswitch_dev')
-rw-r--r--config/freeswitch_dev/freeswitch.xml2
-rw-r--r--config/freeswitch_dev/v_config.inc324
-rw-r--r--config/freeswitch_dev/v_features.tmp57
-rw-r--r--config/freeswitch_dev/v_modules.tmp2378
4 files changed, 2578 insertions, 183 deletions
diff --git a/config/freeswitch_dev/freeswitch.xml b/config/freeswitch_dev/freeswitch.xml
index 9fe0e780..8385bc03 100644
--- a/config/freeswitch_dev/freeswitch.xml
+++ b/config/freeswitch_dev/freeswitch.xml
@@ -44,7 +44,7 @@
<requirements>Describe your package requirements here</requirements>
<faq>Currently there are no FAQ items provided.</faq>
<name>Settings</name>
- <version>0.9.6</version>
+ <version>0.9.7</version>
<title>Settings</title>
<include_file>/usr/local/pkg/v_config.inc</include_file>
<menu>
diff --git a/config/freeswitch_dev/v_config.inc b/config/freeswitch_dev/v_config.inc
index ef436f91..dadd8ec5 100644
--- a/config/freeswitch_dev/v_config.inc
+++ b/config/freeswitch_dev/v_config.inc
@@ -64,15 +64,16 @@ function build_menu() {
if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/v_features.php") { $menu_selected = true; }
if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/v_fax.php") { $menu_selected = true; }
if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/v_fax_edit.php") { $menu_selected = true; }
+ if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/v_hunt_group.php") { $menu_selected = true; }
+ if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/v_hunt_group_edit.php") { $menu_selected = true; }
+ if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/v_hunt_group_destinations.php") { $menu_selected = true; }
+ if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/v_hunt_group_destinations_edit.php") { $menu_selected = true; }
if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/v_ivr.php") { $menu_selected = true; }
if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/v_ivr_edit.php") { $menu_selected = true; }
if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/v_ivr_options_edit.php") { $menu_selected = true; }
+ if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/v_modules.php") { $menu_selected = true; }
if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/v_recordings.php") { $menu_selected = true; }
if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/v_recordings_edit.php") { $menu_selected = true; }
- if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/v_hunt_group.php") { $menu_selected = true; }
- if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/v_hunt_group_edit.php") { $menu_selected = true; }
- if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/v_hunt_group_destinations.php") { $menu_selected = true; }
- if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/v_hunt_group_destinations_edit.php") { $menu_selected = true; }
$tab_array[] = array(gettext("Features"), $menu_selected, "/packages/freeswitch/v_features.php");
unset($menu_selected);
@@ -159,33 +160,33 @@ function event_socket_create($host, $port, $password)
//get the interface ip addresses and try to connect to them
foreach ($ifdescrs as $ifdescr => $ifname){
- $ifinfo = get_interface_info($ifdescr);
- $interface_ip_address = $ifinfo['ipaddr'];
-
- if (strlen($interface_ip_address) > 0) {
-
- $fp = fsockopen($interface_ip_address, $port, $errno, $errdesc, 3);
- socket_set_blocking($fp,false);
-
- if (!$fp) {
- //connection failed continue through the loop testing other addresses
- //invalid handle
- }
- else {
- //connected to the socket return the handle
-
- while (!feof($fp)) {
- $buffer = fgets($fp, 1024);
- usleep(100); //allow time for reponse
- if (trim($buffer) == "Content-Type: auth/request") {
- fputs($fp, "auth $password\n\n");
- break;
- }
- }
- return $fp;
- }
+ $ifinfo = get_interface_info($ifdescr);
+ $interface_ip_address = $ifinfo['ipaddr'];
+
+ if (strlen($interface_ip_address) > 0) {
+
+ $fp = fsockopen($interface_ip_address, $port, $errno, $errdesc, 3);
+ socket_set_blocking($fp,false);
+
+ if (!$fp) {
+ //connection failed continue through the loop testing other addresses
+ //invalid handle
+ }
+ else {
+ //connected to the socket return the handle
+
+ while (!feof($fp)) {
+ $buffer = fgets($fp, 1024);
+ usleep(100); //allow time for reponse
+ if (trim($buffer) == "Content-Type: auth/request") {
+ fputs($fp, "auth $password\n\n");
+ break;
+ }
+ }
+ return $fp;
+ }
- } //end if interface_ip_address
+ } //end if interface_ip_address
} //end foreach
} //end function
@@ -734,128 +735,140 @@ function sync_package_v_gateways()
function sync_package_v_modules()
{
- global $config;
+ global $config;
- foreach($config['installedpackages']['freeswitchmodules']['config'] as $rowhelper) {
- $fout = fopen("/usr/local/freeswitch/conf/autoload_configs/modules.conf.xml","w");
-
- $tmpxml ="";
- $tmpxml .= "<configuration name=\"modules.conf\" description=\"Modules\">\n";
- $tmpxml .= " <modules>\n";
- $tmpxml .= "\n";
- $tmpxml .= " <!-- Loggers (I'd load these first) -->\n";
- if ($rowhelper['mod_console'] == "enable"){ $tmpxml .= " <load module=\"mod_console\"/>\n"; }
- if ($rowhelper['mod_logfile'] == "enable"){ $tmpxml .= " <load module=\"mod_logfile\"/>\n"; }
- if ($rowhelper['mod_syslog'] == "enable"){ $tmpxml .= " <load module=\"mod_syslog\"/>\n"; }
- $tmpxml .= "\n";
- if ($rowhelper['mod_yaml'] == "enable"){ $tmpxml .= " <load module=\"mod_yaml\"/>\n"; }
- $tmpxml .= "\n";
- $tmpxml .= " <!-- Multi-Faceted -->\n";
- $tmpxml .= " <!-- mod_enum is a dialplan interface, an application interface and an api command interface -->\n";
- if ($rowhelper['mod_enum'] == "enable"){ $tmpxml .= " <load module=\"mod_enum\"/>\n"; }
- $tmpxml .= "\n";
- $tmpxml .= " <!-- XML Interfaces -->\n";
- if ($rowhelper['mod_xml_rpc'] == "enable"){ $tmpxml .= " <load module=\"mod_xml_rpc\"/>\n"; }
- if ($rowhelper['mod_xml_curl'] == "enable"){ $tmpxml .= " <load module=\"mod_xml_curl\"/>\n"; }
- if ($rowhelper['mod_xml_cdr'] == "enable"){ $tmpxml .= " <load module=\"mod_xml_cdr\"/>\n"; }
- $tmpxml .= "\n";
- $tmpxml .= " <!-- Event Handlers -->\n";
- if ($rowhelper['mod_cdr_csv'] == "enable"){ $tmpxml .= " <load module=\"mod_cdr_csv\"/>\n"; }
- if ($rowhelper['mod_event_multicast'] == "enable"){ $tmpxml .= " <load module=\"mod_event_multicast\"/>\n"; }
- if ($rowhelper['mod_event_socket'] == "enable"){ $tmpxml .= " <load module=\"mod_event_socket\"/>\n"; }
- if ($rowhelper['mod_zeroconf'] == "enable"){ $tmpxml .= " <load module=\"mod_zeroconf\"/>\n"; }
- $tmpxml .= "\n";
- $tmpxml .= " <!-- Directory Interfaces -->\n";
- if ($rowhelper['mod_ldap'] == "enable"){ $tmpxml .= " <load module=\"mod_ldap\"/>\n"; }
- $tmpxml .= "\n";
- $tmpxml .= " <!-- Endpoints -->\n";
- if ($rowhelper['mod_dingaling'] == "enable"){ $tmpxml .= " <load module=\"mod_dingaling\"/>\n"; }
- if ($rowhelper['mod_iax'] == "enable"){ $tmpxml .= " <load module=\"mod_iax\"/>\n"; }
- if ($rowhelper['mod_portaudio'] == "enable"){ $tmpxml .= " <load module=\"mod_portaudio\"/>\n"; }
- if ($rowhelper['mod_alsa'] == "enable"){ $tmpxml .= " <load module=\"mod_alsa\"/>\n"; }
- if ($rowhelper['mod_sofia'] == "enable"){ $tmpxml .= " <load module=\"mod_sofia\"/>\n"; }
- if ($rowhelper['mod_loopback'] == "enable"){ $tmpxml .= " <load module=\"mod_loopback\"/>\n"; }
- if ($rowhelper['mod_wanpipe'] == "enable"){ $tmpxml .= " <load module=\"mod_wanpipe\"/>\n"; }
- if ($rowhelper['mod_woomera'] == "enable"){ $tmpxml .= " <load module=\"mod_woomera\"/>\n"; }
- if ($rowhelper['mod_openzap'] == "enable"){ $tmpxml .= " <load module=\"mod_openzap\"/>\n"; }
- $tmpxml .= "\n";
- $tmpxml .= " <!-- Applications -->\n";
- if ($rowhelper['mod_commands'] == "enable"){ $tmpxml .= " <load module=\"mod_commands\"/>\n"; }
- if ($rowhelper['mod_conference'] == "enable"){ $tmpxml .= " <load module=\"mod_conference\"/>\n"; }
- if ($rowhelper['mod_dptools'] == "enable"){ $tmpxml .= " <load module=\"mod_dptools\"/>\n"; }
- if ($rowhelper['mod_expr'] == "enable"){ $tmpxml .= " <load module=\"mod_expr\"/>\n"; }
- if ($rowhelper['mod_fax'] == "enable"){ $tmpxml .= " <load module=\"mod_fax\"/>\n"; }
- if ($rowhelper['mod_fifo'] == "enable"){ $tmpxml .= " <load module=\"mod_fifo\"/>\n"; }
- if ($rowhelper['mod_voicemail'] == "enable"){ $tmpxml .= " <load module=\"mod_voicemail\"/>\n"; }
- if ($rowhelper['mod_limit'] == "enable"){ $tmpxml .= " <load module=\"mod_limit\"/>\n"; }
- if ($rowhelper['mod_esf'] == "enable"){ $tmpxml .= " <load module=\"mod_esf\"/>\n"; }
- if ($rowhelper['mod_fsv'] == "enable"){ $tmpxml .= " <load module=\"mod_fsv\"/>\n"; }
- $tmpxml .= "\n";
- $tmpxml .= " <!-- SNOM Module -->\n";
- if ($rowhelper['mod_snom'] == "enable"){ $tmpxml .= " <load module=\"mod_snom\"/>\n"; }
- $tmpxml .= "\n";
- $tmpxml .= " <!-- Dialplan Interfaces -->\n";
- if ($rowhelper['mod_dialplan_directory'] == "enable"){ $tmpxml .= " <load module=\"mod_dialplan_directory\"/>\n"; }
- if ($rowhelper['mod_dialplan_xml'] == "enable"){ $tmpxml .= " <load module=\"mod_dialplan_xml\"/>\n"; }
- if ($rowhelper['mod_dialplan_asterisk'] == "enable"){ $tmpxml .= " <load module=\"mod_dialplan_asterisk\"/>\n"; }
- $tmpxml .= "\n";
- $tmpxml .= " <!-- Codec Interfaces -->\n";
- if ($rowhelper['mod_voipcodecs'] == "enable"){ $tmpxml .= " <load module=\"mod_voipcodecs\"/>\n"; }
- if ($rowhelper['mod_g723_1'] == "enable"){ $tmpxml .= " <load module=\"mod_g723_1\"/>\n"; }
- if ($rowhelper['mod_g729'] == "enable"){ $tmpxml .= " <load module=\"mod_g729\"/>\n"; }
- if ($rowhelper['mod_amr'] == "enable"){ $tmpxml .= " <load module=\"mod_amr\"/>\n"; }
- if ($rowhelper['mod_ilbc'] == "enable"){ $tmpxml .= " <load module=\"mod_ilbc\"/>\n"; }
- if ($rowhelper['mod_speex'] == "enable"){ $tmpxml .= " <load module=\"mod_speex\"/>\n"; }
- if ($rowhelper['mod_siren'] == "enable"){ $tmpxml .= " <load module=\"mod_siren\"/>\n"; }
- if ($rowhelper['mod_celt'] == "enable"){ $tmpxml .= " <load module=\"mod_celt\"/>\n"; }
- if ($rowhelper['mod_h26x'] == "enable"){ $tmpxml .= " <load module=\"mod_h26x\"/>\n"; }
- $tmpxml .= "\n";
- $tmpxml .= " <!-- File Format Interfaces -->\n";
- if ($rowhelper['mod_sndfile'] == "enable"){ $tmpxml .= " <load module=\"mod_sndfile\"/>\n"; }
- if ($rowhelper['mod_native_file'] == "enable"){ $tmpxml .= " <load module=\"mod_native_file\"/>\n"; }
- $tmpxml .= " <!--For icecast/mp3 streams/files-->\n";
- if ($rowhelper['mod_shout'] == "enable"){ $tmpxml .= " <load module=\"mod_shout\"/>\n"; }
- $tmpxml .= " <!--For local streams (play all the files in a directory)-->\n";
- if ($rowhelper['mod_local_stream'] == "enable"){ $tmpxml .= " <load module=\"mod_local_stream\"/>\n"; }
- if ($rowhelper['mod_tone_stream'] == "enable"){ $tmpxml .= " <load module=\"mod_tone_stream\"/>\n"; }
- $tmpxml .= "\n";
- $tmpxml .= " <!-- Timers -->\n";
- $tmpxml .= "\n";
- $tmpxml .= " <!-- Languages -->\n";
- if ($rowhelper['mod_spidermonkey'] == "enable"){ $tmpxml .= " <load module=\"mod_spidermonkey\"/>\n"; }
- if ($rowhelper['mod_spidermonkey_odbc'] == "enable"){ $tmpxml .= " <load module=\"mod_spidermonkey_odbc\"/>\n"; }
- if ($rowhelper['mod_perl'] == "enable"){ $tmpxml .= " <load module=\"mod_perl\"/>\n"; }
- if ($rowhelper['mod_python'] == "enable"){ $tmpxml .= " <load module=\"mod_python\"/>\n"; }
- if ($rowhelper['mod_java'] == "enable"){ $tmpxml .= " <load module=\"mod_java\"/>\n"; }
- if ($rowhelper['mod_lua'] == "enable"){ $tmpxml .= " <load module=\"mod_lua\"/>\n"; }
- $tmpxml .= "\n";
- $tmpxml .= " <!-- ASR /TTS -->\n";
- if ($rowhelper['mod_flite'] == "enable"){ $tmpxml .= " <load module=\"mod_flite\"/>\n"; }
- if ($rowhelper['mod_pocketsphinx'] == "enable"){ $tmpxml .= " <load module=\"mod_pocketsphinx\"/>\n"; }
- if ($rowhelper['mod_cepstral'] == "enable"){ $tmpxml .= " <load module=\"mod_cepstral\"/>\n"; }
- if ($rowhelper['mod_openmrcp'] == "enable"){ $tmpxml .= " <load module=\"mod_openmrcp\"/>\n"; }
- if ($rowhelper['mod_rss'] == "enable"){ $tmpxml .= " <load module=\"mod_rss\"/>\n"; }
- $tmpxml .= "\n";
- $tmpxml .= " <!-- Say -->\n";
- if ($rowhelper['mod_say_en'] == "enable"){ $tmpxml .= " <load module=\"mod_say_en\"/>\n"; }
- if ($rowhelper['mod_say_de'] == "enable"){ $tmpxml .= " <load module=\"mod_say_de\"/>\n"; }
- if ($rowhelper['mod_say_es'] == "enable"){ $tmpxml .= " <load module=\"mod_say_es\"/>\n"; }
- if ($rowhelper['mod_say_fr'] == "enable"){ $tmpxml .= " <load module=\"mod_say_fr\"/>\n"; }
- if ($rowhelper['mod_say_it'] == "enable"){ $tmpxml .= " <load module=\"mod_say_it\"/>\n"; }
- if ($rowhelper['mod_say_nl'] == "enable"){ $tmpxml .= " <load module=\"mod_say_nl\"/>\n"; }
- if ($rowhelper['mod_say_ru'] == "enable"){ $tmpxml .= " <load module=\"mod_say_ru\"/>\n"; }
- if ($rowhelper['mod_say_zh'] == "enable"){ $tmpxml .= " <load module=\"mod_say_zh\"/>\n"; }
- $tmpxml .= " </modules>\n";
- $tmpxml .= "</configuration>";
-
- fwrite($fout, $tmpxml);
- unset($tmpxml);
- fclose($fout);
- }
+ foreach($config['installedpackages']['freeswitchmodules']['config'] as $rowhelper) {
+ $fout = fopen("/usr/local/freeswitch/conf/autoload_configs/modules.conf.xml","w");
+
+ $tmpxml ="";
+ $tmpxml .= "<configuration name=\"modules.conf\" description=\"Modules\">\n";
+ $tmpxml .= " <modules>\n";
+ $tmpxml .= "\n";
+ $tmpxml .= " <!-- Loggers (I'd load these first) -->\n";
+ if ($rowhelper['mod_console'] == "enable"){ $tmpxml .= " <load module=\"mod_console\"/>\n"; }
+ if ($rowhelper['mod_logfile'] == "enable"){ $tmpxml .= " <load module=\"mod_logfile\"/>\n"; }
+ if ($rowhelper['mod_syslog'] == "enable"){ $tmpxml .= " <load module=\"mod_syslog\"/>\n"; }
+ $tmpxml .= "\n";
+ if ($rowhelper['mod_yaml'] == "enable"){ $tmpxml .= " <load module=\"mod_yaml\"/>\n"; }
+ $tmpxml .= "\n";
+ $tmpxml .= " <!-- Multi-Faceted -->\n";
+ $tmpxml .= " <!-- mod_enum is a dialplan interface, an application interface and an api command interface -->\n";
+ if ($rowhelper['mod_enum'] == "enable"){ $tmpxml .= " <load module=\"mod_enum\"/>\n"; }
+ $tmpxml .= "\n";
+ $tmpxml .= " <!-- XML Interfaces -->\n";
+ if ($rowhelper['mod_xml_rpc'] == "enable"){ $tmpxml .= " <load module=\"mod_xml_rpc\"/>\n"; }
+ if ($rowhelper['mod_xml_curl'] == "enable"){ $tmpxml .= " <load module=\"mod_xml_curl\"/>\n"; }
+ if ($rowhelper['mod_xml_cdr'] == "enable"){ $tmpxml .= " <load module=\"mod_xml_cdr\"/>\n"; }
+ $tmpxml .= "\n";
+ $tmpxml .= " <!-- Event Handlers -->\n";
+ if ($rowhelper['mod_cdr_csv'] == "enable"){ $tmpxml .= " <load module=\"mod_cdr_csv\"/>\n"; }
+ if ($rowhelper['mod_event_multicast'] == "enable"){ $tmpxml .= " <load module=\"mod_event_multicast\"/>\n"; }
+ if ($rowhelper['mod_event_socket'] == "enable"){ $tmpxml .= " <load module=\"mod_event_socket\"/>\n"; }
+ if ($rowhelper['mod_zeroconf'] == "enable"){ $tmpxml .= " <load module=\"mod_zeroconf\"/>\n"; }
+ $tmpxml .= "\n";
+ $tmpxml .= " <!-- Directory Interfaces -->\n";
+ if ($rowhelper['mod_ldap'] == "enable"){ $tmpxml .= " <load module=\"mod_ldap\"/>\n"; }
+ $tmpxml .= "\n";
+ $tmpxml .= " <!-- Endpoints -->\n";
+ if ($rowhelper['mod_dingaling'] == "enable"){ $tmpxml .= " <load module=\"mod_dingaling\"/>\n"; }
+ if ($rowhelper['mod_iax'] == "enable"){ $tmpxml .= " <load module=\"mod_iax\"/>\n"; }
+ if ($rowhelper['mod_portaudio'] == "enable"){ $tmpxml .= " <load module=\"mod_portaudio\"/>\n"; }
+ if ($rowhelper['mod_alsa'] == "enable"){ $tmpxml .= " <load module=\"mod_alsa\"/>\n"; }
+ if ($rowhelper['mod_sofia'] == "enable"){ $tmpxml .= " <load module=\"mod_sofia\"/>\n"; }
+ if ($rowhelper['mod_loopback'] == "enable"){ $tmpxml .= " <load module=\"mod_loopback\"/>\n"; }
+ if ($rowhelper['mod_wanpipe'] == "enable"){ $tmpxml .= " <load module=\"mod_wanpipe\"/>\n"; }
+ if ($rowhelper['mod_woomera'] == "enable"){ $tmpxml .= " <load module=\"mod_woomera\"/>\n"; }
+ if ($rowhelper['mod_openzap'] == "enable"){ $tmpxml .= " <load module=\"mod_openzap\"/>\n"; }
+ $tmpxml .= "\n";
+ $tmpxml .= " <!-- Applications -->\n";
+ if ($rowhelper['mod_cidlookup'] == "enable"){ $tmpxml .= " <load module=\"mod_cidlookup\"/>\n"; }
+ if ($rowhelper['mod_dptools'] == "enable"){ $tmpxml .= " <load module=\"mod_dptools\"/>\n"; }
+ if ($rowhelper['mod_commands'] == "enable"){ $tmpxml .= " <load module=\"mod_commands\"/>\n"; }
+ if ($rowhelper['mod_conference'] == "enable"){ $tmpxml .= " <load module=\"mod_conference\"/>\n"; }
+ if ($rowhelper['mod_easyroute'] == "enable"){ $tmpxml .= " <load module=\"mod_easyroute\"/>\n"; }
+ if ($rowhelper['mod_esf'] == "enable"){ $tmpxml .= " <load module=\"mod_esf\"/>\n"; }
+ if ($rowhelper['mod_expr'] == "enable"){ $tmpxml .= " <load module=\"mod_expr\"/>\n"; }
+ if ($rowhelper['mod_fax'] == "enable"){ $tmpxml .= " <load module=\"mod_fax\"/>\n"; }
+ if ($rowhelper['mod_fifo'] == "enable"){ $tmpxml .= " <load module=\"mod_fifo\"/>\n"; }
+ if ($rowhelper['mod_file_string'] == "enable"){ $tmpxml .= " <load module=\"mod_file_string\"/>\n"; }
+ if ($rowhelper['mod_fsv'] == "enable"){ $tmpxml .= " <load module=\"mod_fsv\"/>\n"; }
+ if ($rowhelper['mod_lcr'] == "enable"){ $tmpxml .= " <load module=\"mod_lcr\"/>\n"; }
+ if ($rowhelper['mod_limit'] == "enable"){ $tmpxml .= " <load module=\"mod_limit\"/>\n"; }
+ if ($rowhelper['mod_soundtouch'] == "enable"){ $tmpxml .= " <load module=\"mod_soundtouch\"/>\n"; }
+ if ($rowhelper['mod_spy'] == "enable"){ $tmpxml .= " <load module=\"mod_spy\"/>\n"; }
+ if ($rowhelper['mod_vmd'] == "enable"){ $tmpxml .= " <load module=\"mod_vmd\"/>\n"; }
+ if ($rowhelper['mod_voicemail'] == "enable"){ $tmpxml .= " <load module=\"mod_voicemail\"/>\n"; }
+ $tmpxml .= "\n";
+ $tmpxml .= " <!-- SNOM Module -->\n";
+ if ($rowhelper['mod_snom'] == "enable"){ $tmpxml .= " <load module=\"mod_snom\"/>\n"; }
+ $tmpxml .= "\n";
+ $tmpxml .= " <!-- Dialplan Interfaces -->\n";
+ if ($rowhelper['mod_dialplan_directory'] == "enable"){ $tmpxml .= " <load module=\"mod_dialplan_directory\"/>\n"; }
+ if ($rowhelper['mod_dialplan_xml'] == "enable"){ $tmpxml .= " <load module=\"mod_dialplan_xml\"/>\n"; }
+ if ($rowhelper['mod_dialplan_asterisk'] == "enable"){ $tmpxml .= " <load module=\"mod_dialplan_asterisk\"/>\n"; }
+ $tmpxml .= "\n";
+ $tmpxml .= " <!-- Codec Interfaces -->\n";
+ if ($rowhelper['mod_voipcodecs'] == "enable"){ $tmpxml .= " <load module=\"mod_voipcodecs\"/>\n"; }
+ if ($rowhelper['mod_g723_1'] == "enable"){ $tmpxml .= " <load module=\"mod_g723_1\"/>\n"; }
+ if ($rowhelper['mod_g729'] == "enable"){ $tmpxml .= " <load module=\"mod_g729\"/>\n"; }
+ if ($rowhelper['mod_amr'] == "enable"){ $tmpxml .= " <load module=\"mod_amr\"/>\n"; }
+ if ($rowhelper['mod_amrwb'] == "enable"){ $tmpxml .= " <load module=\"mod_amrwb\"/>\n"; }
+ if ($rowhelper['mod_ilbc'] == "enable"){ $tmpxml .= " <load module=\"mod_ilbc\"/>\n"; }
+ if ($rowhelper['mod_speex'] == "enable"){ $tmpxml .= " <load module=\"mod_speex\"/>\n"; }
+ if ($rowhelper['mod_siren'] == "enable"){ $tmpxml .= " <load module=\"mod_siren\"/>\n"; }
+ if ($rowhelper['mod_celt'] == "enable"){ $tmpxml .= " <load module=\"mod_celt\"/>\n"; }
+ if ($rowhelper['mod_h26x'] == "enable"){ $tmpxml .= " <load module=\"mod_h26x\"/>\n"; }
+ $tmpxml .= "\n";
+ $tmpxml .= " <!-- File Format Interfaces -->\n";
+ if ($rowhelper['mod_sndfile'] == "enable"){ $tmpxml .= " <load module=\"mod_sndfile\"/>\n"; }
+ if ($rowhelper['mod_native_file'] == "enable"){ $tmpxml .= " <load module=\"mod_native_file\"/>\n"; }
+ $tmpxml .= " <!--For icecast/mp3 streams/files-->\n";
+ if ($rowhelper['mod_shout'] == "enable"){ $tmpxml .= " <load module=\"mod_shout\"/>\n"; }
+ $tmpxml .= " <!--For local streams (play all the files in a directory)-->\n";
+ if ($rowhelper['mod_local_stream'] == "enable"){ $tmpxml .= " <load module=\"mod_local_stream\"/>\n"; }
+ if ($rowhelper['mod_tone_stream'] == "enable"){ $tmpxml .= " <load module=\"mod_tone_stream\"/>\n"; }
+ $tmpxml .= "\n";
+ $tmpxml .= " <!-- Timers -->\n";
+ $tmpxml .= "\n";
+ $tmpxml .= " <!-- Languages -->\n";
+ if ($rowhelper['mod_spidermonkey'] == "enable"){ $tmpxml .= " <load module=\"mod_spidermonkey\"/>\n"; }
+ if ($rowhelper['mod_spidermonkey_core_db'] == "enable"){ $tmpxml .= " <load module=\"mod_spidermonkey_core_db\"/>\n"; }
+ if ($rowhelper['mod_spidermonkey_curl'] == "enable"){ $tmpxml .= " <load module=\"mod_spidermonkey_curl\"/>\n"; }
+ if ($rowhelper['mod_spidermonkey_odbc'] == "enable"){ $tmpxml .= " <load module=\"mod_spidermonkey_odbc\"/>\n"; }
+ if ($rowhelper['mod_spidermonkey_socket'] == "enable"){ $tmpxml .= " <load module=\"mod_spidermonkey_socket\"/>\n"; }
+ if ($rowhelper['mod_spidermonkey_teletone'] == "enable"){ $tmpxml .= " <load module=\"mod_spidermonkey_teletone\"/>\n"; }
+ if ($rowhelper['mod_perl'] == "enable"){ $tmpxml .= " <load module=\"mod_perl\"/>\n"; }
+ if ($rowhelper['mod_python'] == "enable"){ $tmpxml .= " <load module=\"mod_python\"/>\n"; }
+ if ($rowhelper['mod_java'] == "enable"){ $tmpxml .= " <load module=\"mod_java\"/>\n"; }
+ if ($rowhelper['mod_lua'] == "enable"){ $tmpxml .= " <load module=\"mod_lua\"/>\n"; }
+ $tmpxml .= "\n";
+ $tmpxml .= " <!-- ASR /TTS -->\n";
+ if ($rowhelper['mod_flite'] == "enable"){ $tmpxml .= " <load module=\"mod_flite\"/>\n"; }
+ if ($rowhelper['mod_pocketsphinx'] == "enable"){ $tmpxml .= " <load module=\"mod_pocketsphinx\"/>\n"; }
+ if ($rowhelper['mod_cepstral'] == "enable"){ $tmpxml .= " <load module=\"mod_cepstral\"/>\n"; }
+ if ($rowhelper['mod_openmrcp'] == "enable"){ $tmpxml .= " <load module=\"mod_openmrcp\"/>\n"; }
+ if ($rowhelper['mod_rss'] == "enable"){ $tmpxml .= " <load module=\"mod_rss\"/>\n"; }
+ $tmpxml .= "\n";
+ $tmpxml .= " <!-- Say -->\n";
+ if ($rowhelper['mod_say_de'] == "enable"){ $tmpxml .= " <load module=\"mod_say_de\"/>\n"; }
+ if ($rowhelper['mod_say_en'] == "enable"){ $tmpxml .= " <load module=\"mod_say_en\"/>\n"; }
+ if ($rowhelper['mod_say_es'] == "enable"){ $tmpxml .= " <load module=\"mod_say_es\"/>\n"; }
+ if ($rowhelper['mod_say_fr'] == "enable"){ $tmpxml .= " <load module=\"mod_say_fr\"/>\n"; }
+ if ($rowhelper['mod_say_it'] == "enable"){ $tmpxml .= " <load module=\"mod_say_it\"/>\n"; }
+ if ($rowhelper['mod_say_nl'] == "enable"){ $tmpxml .= " <load module=\"mod_say_nl\"/>\n"; }
+ if ($rowhelper['mod_say_ru'] == "enable"){ $tmpxml .= " <load module=\"mod_say_ru\"/>\n"; }
+ if ($rowhelper['mod_say_zh'] == "enable"){ $tmpxml .= " <load module=\"mod_say_zh\"/>\n"; }
+ $tmpxml .= " </modules>\n";
+ $tmpxml .= "</configuration>";
- $cmd = "api reloadxml";
- //event_socket_request_cmd($cmd);
- unset($cmd);
+ fwrite($fout, $tmpxml);
+ unset($tmpxml);
+ fclose($fout);
+ }
+
+ $cmd = "api reloadxml";
+ //event_socket_request_cmd($cmd);
+ unset($cmd);
}
@@ -2979,7 +2992,7 @@ function v_php_install_command()
global $config;
- $v_package_version = "0.9.6";
+ $v_package_version = "0.9.7";
$v_build_version = "1.0.4 pre 10";
$v_build_revision = "14306";
@@ -3102,9 +3115,6 @@ function v_php_install_command()
exec("cd /usr/local/freeswitch/sounds/custom/8000/;fetch ".$download_path."your_pin_number_is_incorect_goodbye.wav");
exec("cd /usr/local/freeswitch/sounds/custom/8000/;fetch ".$download_path."please_say_your_name_and_reason_for_calling.wav");
exec("cd /usr/local/freeswitch/sounds/custom/8000/;fetch ".$download_path."press_1_to_accept_2_to_reject_or_3_for_voicemail.wav");
-
- $static_output = 'Downloading Lib Files';
- update_output_window($static_output);
//mod_fax
//chdir('/usr/local/freeswitch/mod/');
@@ -3127,6 +3137,8 @@ function v_php_install_command()
//download xml package files
exec("cd /usr/local/pkg/;fetch ".$download_path."v_modules.xml");
+ $static_output = 'Downloading Package Files';
+ update_output_window($static_output);
//misc files
if (!is_dir('/usr/local/www/edit_area/')) {
@@ -3271,6 +3283,10 @@ function v_php_install_command()
exec("cp /tmp/v_mailto.tmp /usr/local/www/packages/freeswitch/v_mailto.php");
unlink_if_exists("/tmp/v_mailto.tmp");
+ exec("cd /tmp/;fetch ".$download_path."v_modules.tmp");
+ exec("cp /tmp/v_modules.tmp /usr/local/www/packages/freeswitch/v_modules.php");
+ unlink_if_exists("/tmp/v_modules.tmp");
+
exec("cd /tmp/;fetch ".$download_path."v_recordings.tmp");
exec("cp /tmp/v_recordings.tmp /usr/local/www/packages/freeswitch/v_recordings.php");
unlink_if_exists("/tmp/v_recordings.tmp");
diff --git a/config/freeswitch_dev/v_features.tmp b/config/freeswitch_dev/v_features.tmp
index 448d69fe..ae4dee7e 100644
--- a/config/freeswitch_dev/v_features.tmp
+++ b/config/freeswitch_dev/v_features.tmp
@@ -1,7 +1,7 @@
<?php
/* $Id$ */
/*
- v_extensions.php
+ v_features.php
Copyright (C) 2008 Mark J Crane
All rights reserved.
@@ -30,19 +30,20 @@
require("guiconfig.inc");
require("/usr/local/pkg/v_config.inc");
-$a_extensions = &$config['installedpackages']['freeswitchextensions']['config'];
+//$a_extensions = &$config['installedpackages']['freeswitchextensions']['config'];
-if ($_GET['act'] == "del") {
- if ($_GET['type'] == 'extensions') {
- if ($a_extensions[$_GET['id']]) {
- unset($a_extensions[$_GET['id']]);
- write_config();
- header("Location: v_extensions.php");
- exit;
- }
- }
-}
+//if ($_GET['act'] == "del") {
+// if ($_GET['type'] == 'extensions') {
+// if ($a_extensions[$_GET['id']]) {
+// unset($a_extensions[$_GET['id']]);
+// write_config();
+// header("Location: v_extensions.php");
+// exit;
+// }
+// }
+//}
+
include("head.inc");
@@ -63,7 +64,7 @@ echo "<p class=\"pgtitle\">$v_project_label: Features</p>\n";
<?php
display_top_tabs(build_menu());
-
+
?>
</td></tr>
</table>
@@ -81,10 +82,10 @@ display_top_tabs(build_menu());
</tr>
</table>
<br />-->
-
+
<br />
<br />
-
+
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
<td class="listtopic" colspan='2'>Auto Attendant</td>
@@ -99,10 +100,10 @@ display_top_tabs(build_menu());
</td>
</tr>
</table>
-
+
<br />
<br />
-
+
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
<td class="listtopic" colspan='2'>Direct Inward System Access</td>
@@ -117,7 +118,7 @@ display_top_tabs(build_menu());
</td>
</tr>
</table>
-
+
<br />
<br />
@@ -132,10 +133,10 @@ display_top_tabs(build_menu());
</td>
</tr>
</table>
-
+
<br />
<br />
-
+
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
<td class="listtopic" colspan='2'>Hunt Group</td>
@@ -147,25 +148,25 @@ display_top_tabs(build_menu());
</td>
</tr>
</table>
-
+
+ <br />
<br />
- <br />
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
<td class="listtopic" colspan='2'>Modules</td>
</tr>
<tr>
- <td width='10%' class="vncell"><a href='/pkg_edit.php?xml=v_modules.xml&amp;id=0'>Open</a></td>
+ <td width='10%' class="vncell"><a href='v_modules.php'>Open</a></td>
<td class="vtable">
Modules add additional features and can be enabled or disabled to provide the desired features.
</td>
</tr>
</table>
-
+
<br />
<br />
-
+
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
<td class="listtopic" colspan='2'>Music on Hold</td>
@@ -178,10 +179,10 @@ display_top_tabs(build_menu());
</td>
</tr>
</table>
-
+
<br />
<br />
-
+
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
<td class="listtopic" colspan='2'>Recordings</td>
@@ -195,7 +196,7 @@ display_top_tabs(build_menu());
</td>
</tr>
</table>
-
+
<br />
<br />
<br />
diff --git a/config/freeswitch_dev/v_modules.tmp b/config/freeswitch_dev/v_modules.tmp
new file mode 100644
index 00000000..2ecdf9bd
--- /dev/null
+++ b/config/freeswitch_dev/v_modules.tmp
@@ -0,0 +1,2378 @@
+<?php
+/* $Id$ */
+/*
+ v_modules.php
+ Copyright (C) 2008 Mark J Crane
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ 1. Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
+ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
+ AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
+ OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+*/
+
+require("guiconfig.inc");
+require("/usr/local/pkg/v_config.inc");
+$config['installedpackages']['freeswitchmodules']['config'][$id]['mod_console'];
+
+$a_modules = &$config['installedpackages']['freeswitchmodules']['config'];
+
+//$id = $_GET['id'];
+//if (isset($_POST['id'])) {
+// $id = $_POST['id'];
+//}
+$id = 0;
+
+
+if (isset($id) && $a_modules[$id]) {
+
+ //Loggers
+ $pconfig['mod_console'] = $a_modules[$id]['mod_console'];
+ $pconfig['mod_logfile'] = $a_modules[$id]['mod_logfile'];
+ $pconfig['mod_syslog'] = $a_modules[$id]['mod_syslog'];
+
+ //Multi-Faceted
+ $pconfig['mod_enum'] = $a_modules[$id]['mod_enum'];
+
+ //XML Interfaces
+ $pconfig['mod_xml_rpc'] = $a_modules[$id]['mod_xml_rpc'];
+ $pconfig['mod_xml_curl'] = $a_modules[$id]['mod_xml_curl'];
+ $pconfig['mod_xml_cdr'] = $a_modules[$id]['mod_xml_cdr'];
+
+ //Event Handlers
+ $pconfig['mod_cdr_csv'] = $a_modules[$id]['mod_cdr_csv'];
+ $pconfig['mod_event_multicast'] = $a_modules[$id]['mod_event_multicast'];
+ $pconfig['mod_event_socket'] = $a_modules[$id]['mod_event_socket'];
+ $pconfig['mod_zeroconf'] = $a_modules[$id]['mod_zeroconf'];
+
+ //Directory Interfaces
+ $pconfig['mod_ldap'] = $a_modules[$id]['mod_ldap'];
+
+ //Endpoints
+ //$pconfig['mod_dingaling'] = $a_modules[$id]['mod_dingaling'];
+ $pconfig['mod_iax'] = $a_modules[$id]['mod_iax'];
+ $pconfig['mod_portaudio'] = $a_modules[$id]['mod_portaudio'];
+ $pconfig['mod_alsa'] = $a_modules[$id]['mod_alsa'];
+ $pconfig['mod_sofia'] = $a_modules[$id]['mod_sofia'];
+ $pconfig['mod_loopback'] = $a_modules[$id]['mod_loopback'];
+ $pconfig['mod_wanpipe'] = $a_modules[$id]['mod_wanpipe'];
+ $pconfig['mod_woomera'] = $a_modules[$id]['mod_woomera'];
+ $pconfig['mod_openzap'] = $a_modules[$id]['mod_openzap'];
+
+ //Applications
+ $pconfig['mod_cidlookup'] = $a_modules[$id]['mod_cidlookup'];
+ $pconfig['mod_commands'] = $a_modules[$id]['mod_commands'];
+ $pconfig['mod_conference'] = $a_modules[$id]['mod_conference'];
+ $pconfig['mod_dptools'] = $a_modules[$id]['mod_dptools'];
+ $pconfig['mod_easyroute'] = $a_modules[$id]['mod_easyroute'];
+ $pconfig['mod_esf'] = $a_modules[$id]['mod_esf'];
+ $pconfig['mod_expr'] = $a_modules[$id]['mod_expr'];
+ $pconfig['mod_fax'] = $a_modules[$id]['mod_fax'];
+ $pconfig['mod_fifo'] = $a_modules[$id]['mod_fifo'];
+ $pconfig['mod_file_string'] = $a_modules[$id]['mod_file_string'];
+ $pconfig['mod_fsv'] = $a_modules[$id]['mod_fsv'];
+ $pconfig['mod_voicemail'] = $a_modules[$id]['mod_voicemail'];
+ $pconfig['mod_lcr'] = $a_modules[$id]['mod_lcr'];
+ $pconfig['mod_limit'] = $a_modules[$id]['mod_limit'];
+ $pconfig['mod_soundtouch'] = $a_modules[$id]['mod_soundtouch'];
+ $pconfig['mod_spy'] = $a_modules[$id]['mod_spy'];
+ $pconfig['mod_vmd'] = $a_modules[$id]['mod_vmd'];
+
+ //Snom
+ $pconfig['mod_snom'] = $a_modules[$id]['mod_snom'];
+
+ //Dialplan Interfaces
+ $pconfig['mod_dialplan_directory'] = $a_modules[$id]['mod_dialplan_directory'];
+ $pconfig['mod_dialplan_xml'] = $a_modules[$id]['mod_dialplan_xml'];
+ $pconfig['mod_dialplan_asterisk'] = $a_modules[$id]['mod_dialplan_asterisk'];
+ $pconfig['mod_yaml'] = $a_modules[$id]['mod_yaml'];
+
+ //Codec Interfaces
+ $pconfig['mod_voipcodecs'] = $a_modules[$id]['mod_voipcodecs'];
+ $pconfig['mod_g723_1'] = $a_modules[$id]['mod_g723_1'];
+ $pconfig['mod_g729'] = $a_modules[$id]['mod_g729'];
+ $pconfig['mod_amr'] = $a_modules[$id]['mod_amr'];
+ $pconfig['mod_amrwb'] = $a_modules[$id]['mod_amrwb'];
+ $pconfig['mod_ilbc'] = $a_modules[$id]['mod_ilbc'];
+ $pconfig['mod_speex'] = $a_modules[$id]['mod_speex'];
+ $pconfig['mod_siren'] = $a_modules[$id]['mod_siren'];
+ $pconfig['mod_celt'] = $a_modules[$id]['mod_celt'];
+ $pconfig['mod_h26x'] = $a_modules[$id]['mod_h26x'];
+
+ //File Format Interfaces
+ $pconfig['mod_sndfile'] = $a_modules[$id]['mod_sndfile'];
+ $pconfig['mod_native_file'] = $a_modules[$id]['mod_native_file'];
+
+ //Streams / Files
+ $pconfig['mod_shout'] = $a_modules[$id]['mod_shout'];
+ $pconfig['mod_local_stream'] = $a_modules[$id]['mod_local_stream'];
+ $pconfig['mod_tone_stream'] = $a_modules[$id]['mod_tone_stream'];
+
+ //Languages
+ $pconfig['mod_spidermonkey'] = $a_modules[$id]['mod_spidermonkey'];
+ $pconfig['mod_spidermonkey_core_db'] = $a_modules[$id]['mod_spidermonkey_core_db'];
+ $pconfig['mod_spidermonkey_curl'] = $a_modules[$id]['mod_spidermonkey_curl'];
+ $pconfig['mod_spidermonkey_odbc'] = $a_modules[$id]['mod_spidermonkey_odbc'];
+ $pconfig['mod_spidermonkey_socket'] = $a_modules[$id]['mod_spidermonkey_socket'];
+ $pconfig['mod_spidermonkey_teletone'] = $a_modules[$id]['mod_spidermonkey_teletone'];
+ $pconfig['mod_perl'] = $a_modules[$id]['mod_perl'];
+ $pconfig['mod_python'] = $a_modules[$id]['mod_python'];
+ $pconfig['mod_java'] = $a_modules[$id]['mod_java'];
+ $pconfig['mod_lua'] = $a_modules[$id]['mod_lua'];
+
+ //ASR / TTS
+ $pconfig['mod_flite'] = $a_modules[$id]['mod_flite'];
+ $pconfig['mod_pocketsphinx'] = $a_modules[$id]['mod_pocketsphinx'];
+ $pconfig['mod_cepstral'] = $a_modules[$id]['mod_cepstral'];
+ $pconfig['mod_openmrcp'] = $a_modules[$id]['mod_openmrcp'];
+ $pconfig['mod_rss'] = $a_modules[$id]['mod_rss'];
+
+ //Say
+ $pconfig['mod_say_de'] = $a_modules[$id]['mod_say_de'];
+ $pconfig['mod_say_en'] = $a_modules[$id]['mod_say_en'];
+ $pconfig['mod_say_es'] = $a_modules[$id]['mod_say_es'];
+ $pconfig['mod_say_fr'] = $a_modules[$id]['mod_say_fr'];
+ $pconfig['mod_say_it'] = $a_modules[$id]['mod_say_it'];
+ $pconfig['mod_say_nl'] = $a_modules[$id]['mod_say_nl'];
+ $pconfig['mod_say_ru'] = $a_modules[$id]['mod_say_ru'];
+ $pconfig['mod_say_zh'] = $a_modules[$id]['mod_say_zh'];
+
+}
+
+if ($_POST) {
+
+ unset($input_errors);
+ $pconfig = $_POST;
+
+ if (!$input_errors) {
+
+ $ent = array();
+ //$ent['zzz'] = $_POST['zzz'];
+
+ //Loggers
+ $ent['mod_console'] = $_POST['mod_console'];
+ $ent['mod_logfile'] = $_POST['mod_logfile'];
+ $ent['mod_syslog'] = $_POST['mod_syslog'];
+
+ //Multi-Faceted
+ $ent['mod_enum'] = $_POST['mod_enum'];
+
+ //XML Interfaces
+ $ent['mod_xml_rpc'] = $_POST['mod_xml_rpc'];
+ $ent['mod_xml_curl'] = $_POST['mod_xml_curl'];
+ $ent['mod_xml_cdr'] = $_POST['mod_xml_cdr'];
+ $ent['mod_cdr_csv'] = $_POST['mod_cdr_csv'];
+
+ //Event Handlers
+ $ent['mod_event_multicast'] = $_POST['mod_event_multicast'];
+ $ent['mod_event_socket'] = $_POST['mod_event_socket'];
+ $ent['mod_zeroconf'] = $_POST['mod_zeroconf'];
+
+ //Directory Interfaces
+ $ent['mod_ldap'] = $_POST['mod_ldap'];
+
+ //Endpoints
+ $ent['mod_dingaling'] = $_POST['mod_dingaling'];
+ $ent['mod_iax'] = $_POST['mod_iax'];
+ $ent['mod_portaudio'] = $_POST['mod_portaudio'];
+ $ent['mod_alsa'] = $_POST['mod_alsa'];
+ $ent['mod_sofia'] = $_POST['mod_sofia'];
+ $ent['mod_loopback'] = $_POST['mod_loopback'];
+ $ent['mod_wanpipe'] = $_POST['mod_wanpipe'];
+ $ent['mod_woomera'] = $_POST['mod_woomera'];
+ $ent['mod_openzap'] = $_POST['mod_openzap'];
+
+ //Applications
+ $ent['mod_cidlookup'] = $_POST['mod_cidlookup'];
+ $ent['mod_commands'] = $_POST['mod_commands'];
+ $ent['mod_conference'] = $_POST['mod_conference'];
+ $ent['mod_dptools'] = $_POST['mod_dptools'];
+ $ent['mod_esf'] = $_POST['mod_esf'];
+ $ent['mod_easyroute'] = $_POST['mod_easyroute'];
+ $ent['mod_expr'] = $_POST['mod_expr'];
+ $ent['mod_fax'] = $_POST['mod_fax'];
+ $ent['mod_fsv'] = $_POST['mod_fsv'];
+ $ent['mod_fifo'] = $_POST['mod_fifo'];
+ $ent['mod_file_string'] = $_POST['mod_file_string'];
+ $ent['mod_lcr'] = $_POST['mod_lcr'];
+ $ent['mod_limit'] = $_POST['mod_limit'];
+ $ent['mod_soundtouch'] = $_POST['mod_soundtouch'];
+ $ent['mod_spy'] = $_POST['mod_spy'];
+ $ent['mod_vmd'] = $_POST['mod_vmd'];
+ $ent['mod_voicemail'] = $_POST['mod_voicemail'];
+
+ //SNOM
+ $ent['mod_snom'] = $_POST['mod_snom'];
+
+ //Dialplan Interfaces
+ $ent['mod_dialplan_directory'] = $_POST['mod_dialplan_directory'];
+ $ent['mod_dialplan_xml'] = $_POST['mod_dialplan_xml'];
+ $ent['mod_dialplan_asterisk'] = $_POST['mod_dialplan_asterisk'];
+ $ent['mod_yaml'] = $_POST['mod_yaml'];
+
+ //Codec Interfaces
+ $ent['mod_voipcodecs'] = $_POST['mod_voipcodecs'];
+ $ent['mod_g723_1'] = $_POST['mod_g723_1'];
+ $ent['mod_g729'] = $_POST['mod_g729'];
+ $ent['mod_amr'] = $_POST['mod_amr'];
+ $ent['mod_amrwb'] = $_POST['mod_amrwb'];
+ $ent['mod_ilbc'] = $_POST['mod_ilbc'];
+ $ent['mod_speex'] = $_POST['mod_speex'];
+ $ent['mod_siren'] = $_POST['mod_siren'];
+ $ent['mod_celt'] = $_POST['mod_celt'];
+ $ent['mod_h26x'] = $_POST['mod_h26x'];
+
+ //File Format Interfaces
+ $ent['mod_sndfile'] = $_POST['mod_sndfile'];
+ $ent['mod_native_file'] = $_POST['mod_native_file'];
+
+ //Streams / Files
+ $ent['mod_shout'] = $_POST['mod_shout'];
+ $ent['mod_local_stream'] = $_POST['mod_local_stream'];
+ $ent['mod_tone_stream'] = $_POST['mod_tone_stream'];
+
+ //Languages
+ $ent['mod_spidermonkey'] = $_POST['mod_spidermonkey'];
+ $ent['mod_spidermonkey_core_db'] = $_POST['mod_spidermonkey_core_db'];
+ $ent['mod_spidermonkey_curl'] = $_POST['mod_spidermonkey_curl'];
+ $ent['mod_spidermonkey_odbc'] = $_POST['mod_spidermonkey_odbc'];
+ $ent['mod_spidermonkey_socket'] = $_POST['mod_spidermonkey_socket'];
+ $ent['mod_spidermonkey_teletone'] = $_POST['mod_spidermonkey_teletone'];
+ $ent['mod_perl'] = $_POST['mod_perl'];
+ $ent['mod_python'] = $_POST['mod_python'];
+ $ent['mod_java'] = $_POST['mod_java'];
+ $ent['mod_lua'] = $_POST['mod_lua'];
+
+ //ASR / TTS
+ $ent['mod_flite'] = $_POST['mod_flite'];
+ $ent['mod_pocketsphinx'] = $_POST['mod_pocketsphinx'];
+ $ent['mod_cepstral'] = $_POST['mod_cepstral'];
+ $ent['mod_openmrcp'] = $_POST['mod_openmrcp'];
+ $ent['mod_rss'] = $_POST['mod_rss'];
+
+ //Say
+ $ent['mod_say_de'] = $_POST['mod_say_de'];
+ $ent['mod_say_en'] = $_POST['mod_say_en'];
+ $ent['mod_say_es'] = $_POST['mod_say_es'];
+ $ent['mod_say_fr'] = $_POST['mod_say_fr'];
+ $ent['mod_say_it'] = $_POST['mod_say_it'];
+ $ent['mod_say_nl'] = $_POST['mod_say_nl'];
+ $ent['mod_say_ru'] = $_POST['mod_say_ru'];
+ $ent['mod_say_zh'] = $_POST['mod_say_zh'];
+
+ if (isset($id) && $a_modules[$id]) {
+ //update
+ $a_modules[$id] = $ent;
+ }
+ else {
+ //add
+ $a_modules[] = $ent;
+ }
+
+ write_config();
+ sync_package_v_modules();
+
+ //header("Location: v_zzz.php");
+ //exit;
+ }
+}
+
+include("head.inc");
+
+?>
+
+<script type="text/javascript" language="JavaScript">
+
+function show_advanced_config() {
+ document.getElementById("showadvancedbox").innerHTML='';
+ aodiv = document.getElementById('showadvanced');
+ aodiv.style.display = "block";
+}
+
+</script>
+
+<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
+<?php
+include("fbegin.inc");
+echo "<p class=\"pgtitle\">$v_project_label: Modules</p>\n";
+?>
+<?php if ($input_errors) print_input_errors($input_errors); ?>
+
+
+<div id="mainlevel">
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+<tr><td class="tabnavtbl">
+<?php
+
+display_top_tabs(build_menu());
+
+?>
+</td></tr>
+</table>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td class="tabcont" >
+
+ <!--
+ <table width="100%" border="0" cellpadding="6" cellspacing="0">
+ <tr>
+ <td><p><span class="vexpl"><span class="red"><strong>Modules<br />
+ </strong></span>
+ /usr/local/freeswitch/mod/
+ </p></td>
+ </tr>
+ </table>
+ -->
+ <br />
+
+ <form action="v_modules.php" method="post" name="iform" id="iform">
+ <table width="100%" border="0" cellpadding="6" cellspacing="0">
+
+<?php
+ echo " <tr><td>&nbsp;</td></tr><tr><td class='listtopic' colspan='2'>Loggers</td></tr>\n";
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>console</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_console' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_console'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Send logs to the console. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>logfile</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_logfile' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_logfile'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Send logs to the local file system. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>syslog</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_syslog' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_syslog'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Send logs to a remote syslog server. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+ echo " <tr><td>&nbsp;</td></tr><tr><td class='listtopic' colspan='2'>Multi-Faceted</td></tr>\n";
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>enum</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_enum' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_enum'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Route PSTN numbers over internet according to ENUM servers, such as e164.org. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+ echo " <tr><td>&nbsp;</td></tr><tr><td class='listtopic' colspan='2'>XML Interfaces</td></tr>\n";
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>xml rpc</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_xml_rpc' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_xml_rpc'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "XML Remote Procedure Calls. Issue commands from your web application. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>xml curl</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_xml_curl' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_xml_curl'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "XML Gateway Code. Configure FreeSWITCH from a web server on boot and on the fly. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>xml cdr</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_xml_cdr' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_xml_cdr'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "XML based call detail record handler. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+ echo " <tr><td>&nbsp;</td></tr><tr><td class='listtopic' colspan='2'>Event Handlers</td></tr>\n";
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>cdr csv</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_cdr_csv' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_cdr_csv'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "CSV call detail record handler. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>event multicast</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_event_multicast' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_event_multicast'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Broadcasts events to netmask. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>event socket</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_event_socket' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_event_socket'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Sends events via a single socket. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>zeroconf</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_zeroconf' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_zeroconf'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Support for zeroconf. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+ echo " <tr><td>&nbsp;</td></tr><tr><td class='listtopic' colspan='2'>Directory Interfaces</td></tr>\n";
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>ldap</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_ldap' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_ldap'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "LDAP module made to obtain dialplans, user accounts, etc. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+ echo " <tr><td>&nbsp;</td></tr><tr><td class='listtopic' colspan='2'>Endpoints</td></tr>\n";
+
+ /*
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>dingaling</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_dingaling' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_dingaling'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Jabber/GoogleTalk Talk integration module. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+ */
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>iax</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_iax' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_iax'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "IAX2. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>portaudio</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_portaudio' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_portaudio'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Voice through a local soundcard. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>alsa</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_alsa' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_alsa'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "<br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>sofia</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_sofia' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_sofia'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "SIP module. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>loopback</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_loopback' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_loopback'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "A loopback channel driver to make an outbound call as an inbound call. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+ /*
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>wanpipe</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_wanpipe' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_wanpipe'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "T1/E1 Sangoma Card module. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+ */
+
+ /*
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>woomera</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_woomera' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_woomera'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "H.323/Woomera module. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+ */
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>openzap</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_openzap' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_openzap'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Interface to Zaptel hardware. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr><td>&nbsp;</td></tr><tr><td class='listtopic' colspan='2'>Applications</td></tr>\n";
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>cid lookup</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_cidlookup' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_cidlookup'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Lookup Caller ID. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>commands</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_commands' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_commands'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "A plethora of API interface commands. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>conference</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_conference' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_conference'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Conference room module. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>dptools</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_dptools' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_dptools'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Provides a number of apps and utilities for the dialplan. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>easyroute</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_easyroute' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_easyroute'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "DID routing engine that uses a database lookup to determine how to route an incoming call. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>esf</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_esf' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_esf'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Holds the multi cast paging application for SIP. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>exp</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_expr' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_expr'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Brian Allen Vanderburgs expression evaluation library. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>fax</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_fax' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_fax'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "FAX provides fax send and receive. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>fifo</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_fifo' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_fifo'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "FIFO provides custom call queues including call park. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>file string</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_file_string' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_file_string'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "<br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>fsv</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_fsv' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_fsv'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "FreeSWITCH Video application (Recording and playback). <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>lcr</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_lcr' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_lcr'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Least Cost Routing. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>limit</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_limit' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_limit'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Resource limitation module. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>soundtouch</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_soundtouch' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_soundtouch'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "modify pitch and other sound effects. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>spy</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_spy' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_spy'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "<br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>vmd</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_vmd' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_vmd'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Voicemail Beep Detection. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>voicemail</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_voicemail' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_voicemail'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Full featured voicemail module. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr><td>&nbsp;</td></tr><tr><td class='listtopic' colspan='2'>SNOM Module</td></tr>\n";
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>snom</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_snom' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_snom'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "<br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+ echo " <tr><td>&nbsp;</td></tr><tr><td class='listtopic' colspan='2'>Dialplan Interfaces</td></tr>\n";
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>dialplan directory</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_dialplan_directory' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_dialplan_directory'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Allows you to obtain a dialplan from a directory resource. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>dialplan xml</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_dialplan_xml' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_dialplan_xml'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Allows you to program dialplans in XML format. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>dialplan asterisk</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_dialplan_asterisk' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_dialplan_asterisk'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Allows you to create dialplans the old-fashioned way. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+ /*
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>yaml</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_yaml' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_yaml'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Allows you to program dialplans in YAML format. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+ */
+
+ echo " <tr><td>&nbsp;</td></tr><tr><td class='listtopic' colspan='2'>Codec Interfaces</td></tr>\n";
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>voipcodecs</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_voipcodecs' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_voipcodecs'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "<br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>g723_1</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_g723_1' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_g723_1'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "G.723.1 codec. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>g729</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_g729' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_g729'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "G729 codec is only supported in passthrough mode. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>amr</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_amr' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_amr'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "amr codec. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>amrwb</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_amrwb' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_amrwb'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "amrwb codec. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>ilbc</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_ilbc' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_ilbc'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "ILBC codec. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>speex</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_speex' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_speex'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Speex codec. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>siren</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_siren' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_siren'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Siren codec.<br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>celt</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_celt' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_celt'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Celt codec. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>h26x</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_h26x' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_h26x'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "H26X signed linear codec. Video Pass-thru. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+ echo " <tr><td>&nbsp;</td></tr><tr><td class='listtopic' colspan='2'>File Format Interfaces</td></tr>\n";
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>sndfile</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_sndfile' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_sndfile'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Multi-format file format transcoder (WAV, etc). <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>native file</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_native_file' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_native_file'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "File interface for codec specific file formats. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+ echo " <tr><td>&nbsp;</td></tr><tr><td class='listtopic' colspan='2'>Streams / Files</td></tr>\n";
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>shout</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_shout' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_shout'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "mp3 files and shoutcast streams. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>local stream</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_local_stream' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_local_stream'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "For local streams (play all the files in a directory). <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>tone stream</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_tone_stream' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_tone_stream'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Generate tone streams. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+ echo " <tr><td>&nbsp;</td></tr><tr><td class='listtopic' colspan='2'>Languages</td></tr>\n";
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>spidermonkey</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_spidermonkey' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_spidermonkey'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "JavaScript support. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>spidermonkey core db</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_spidermonkey_core_db' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_spidermonkey_core_db'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "JavaScript SQLite support. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>spidermonkey curl</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_spidermonkey_curl' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_spidermonkey_curl'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "JavaScript CURL support. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>spidermonkey odbc</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_spidermonkey_odbc' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_spidermonkey_odbc'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "JavaScript ODBC support. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>spidermonkey socket</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_spidermonkey_socket' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_spidermonkey_socket'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "JavaScript SOCKET support. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>spidermonkey teletone</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_spidermonkey_teletone' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_spidermonkey_teletone'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "JavaScript Teletone support. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ /*
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>perl</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_perl' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_perl'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Perl support. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+ */
+
+ /*
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>python</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_python' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_python'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Python support. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+ */
+
+ /*
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>java</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_java' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_java'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Java support. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+ */
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>lua</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_lua' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_lua'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Lua support. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+ echo " <tr><td>&nbsp;</td></tr><tr><td class='listtopic' colspan='2'>ASR / TTS</td></tr>\n";
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>flite</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_flite' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_flite'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Free open source Text to Speech. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>pocketsphinx</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_pocketsphinx' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_pocketsphinx'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Free open source Speech Recognition. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+ /*
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>cepstral</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_cepstral' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_cepstral'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Links into Cepstral for dynamic sound output. Not available on this build. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+ */
+
+ /*
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>openmrcp</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_openmrcp' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_openmrcp'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Module for an open MRCP implementation. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+ */
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>rss</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_rss' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_rss'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "Reads RSS feeds via a TTS engine. <br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+ echo " <tr><td>&nbsp;</td></tr><tr><td class='listtopic' colspan='2'>Say</td></tr>\n";
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>say de</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_say_de' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_say_de'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "<br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>say en</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_say_en' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_say_en'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "<br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>say es</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_say_es' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_say_es'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "<br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>say fr</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_say_fr' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_say_fr'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "<br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>say it</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_say_it' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_say_it'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "<br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>say nl</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_say_nl' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_say_nl'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "<br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>say ru</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_say_ru' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_say_ru'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "<br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+
+ echo " <tr>\n";
+ echo " <td width='22%' valign='top' class='vncell'>say zh</td>\n";
+ echo " <td width='78%' class='vtable'>\n";
+ echo " <select name='mod_say_zh' class='formfld'>\n";
+ echo " <option></option>\n";
+ switch (htmlspecialchars($pconfig['mod_say_zh'])) {
+ case "enable":
+ echo " <option value='enable' selected='yes'>enable</option>\n";
+ echo " <option value='disable'>disable</option>\n";
+ break;
+ case "disable":
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ break;
+ default:
+ echo " <option value='enable'>enable</option>\n";
+ echo " <option value='disable' selected='yes'>disable</option>\n";
+ }
+ echo " </select><br />\n";
+ echo "<br />\n";
+ echo " </td>\n";
+ echo " </tr>\n";
+
+?>
+
+ </table>
+ <!--
+ <div id="showadvancedbox">
+ <table width="100%" border="0" cellpadding="6" cellspacing="0">
+ <tr>
+ <td width="25%" valign="top" class="vncell">Show Advanced</td>
+ <td width="75%" class="vtable">
+ <input type="button" onClick="show_advanced_config()" value="Advanced"></input></a>
+ </td>
+ </tr>
+ </table>
+ </div>
+ <div id="showadvanced" style="display:none">
+ <table width="100%" border="0" cellpadding="6" cellspacing="0">
+ <tr>
+ <td width="25%" valign="top" class="vncell">zzz</td>
+ <td width="75%" class="vtable">
+ <input name="zzz" type="text" class="formfld" id="zzz" size="40" value="<?=htmlspecialchars($pconfig['zzz']);?>">
+ <br /> <span class="vexpl">zzz<br /></span>
+ </td>
+ </tr>
+ </table>
+ </div>
+ -->
+ <br /><br />
+ <table width="100%" border="0" cellpadding="6" cellspacing="0">
+ <tr>
+ <td width="25%" valign="top">&nbsp;</td>
+ <td>
+ <input name="Submit" type="submit" class="formbtn" value="Save"> <input class="formbtn" type="button" value="Cancel" onclick="history.back()">
+ <?php
+ $id = 0;
+ if (isset($id) && $a_modules[$id]) {
+ echo "<input name=\"id\" type=\"hidden\" value=\"".$id."\">\n";
+ }
+ ?>
+ </td>
+ </tr>
+ </table>
+ </form>
+
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+
+ </td>
+ </tr>
+</table>
+
+</div>
+
+<?php include("fend.inc"); ?>
+</body>
+</html>