Freeswitch-trunk
Threads by month
- ----- 2026 -----
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
February 2009
- 17 participants
- 681 discussions
Author: shaneb
Date: Mon Feb 16 01:11:19 2009
New Revision: 12042
Log:
apr cmake files
Added:
freeswitch/trunk/libs/apr/CMakeLists.txt
Added: freeswitch/trunk/libs/apr/CMakeLists.txt
==============================================================================
--- (empty file)
+++ freeswitch/trunk/libs/apr/CMakeLists.txt Mon Feb 16 01:11:19 2009
@@ -0,0 +1,110 @@
+cmake_minimum_required(VERSION 2.6)
+
+INCLUDE_DIRECTORIES(include/)
+
+add_definitions(-DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK)
+INCLUDE_DIRECTORIES(BEFORE ${CMAKE_SOURCE_DIR}/libs/apr/include/arch/unix/ ./include)
+
+SET (apr_SRCS
+ passwd/apr_getpass.c
+ strings/apr_cpystrn.c
+ strings/apr_strnatcmp.c
+ strings/apr_strings.c
+ strings/apr_strtok.c
+ strings/apr_fnmatch.c
+ strings/apr_snprintf.c
+ tables/apr_tables.c
+ tables/apr_hash.c
+ atomic/unix/apr_atomic.c
+ dso/unix/dso.c
+ file_io/unix/flock.c
+ file_io/unix/readwrite.c
+ file_io/unix/filepath_util.c
+ file_io/unix/seek.c
+ file_io/unix/dir.c
+ file_io/unix/mktemp.c
+ file_io/unix/filedup.c
+ file_io/unix/tempdir.c
+ file_io/unix/filepath.c
+ file_io/unix/pipe.c
+ file_io/unix/open.c
+ file_io/unix/filestat.c
+ file_io/unix/copy.c
+ file_io/unix/fileacc.c
+ file_io/unix/fullrw.c
+ locks/unix/thread_rwlock.c
+ locks/unix/thread_mutex.c
+ locks/unix/thread_cond.c
+ locks/unix/proc_mutex.c
+ locks/unix/global_mutex.c
+ memory/unix/apr_pools.c
+ misc/unix/charset.c
+ misc/unix/env.c
+ misc/unix/version.c
+ misc/unix/rand.c
+ misc/unix/start.c
+ misc/unix/errorcodes.c
+ misc/unix/getopt.c
+ misc/unix/otherchild.c
+ mmap/unix/mmap.c
+ mmap/unix/common.c
+ network_io/unix/sockaddr.c
+ network_io/unix/sockopt.c
+ network_io/unix/sendrecv.c
+ network_io/unix/multicast.c
+ network_io/unix/sockets.c
+ network_io/unix/inet_ntop.c
+ network_io/unix/inet_pton.c
+ poll/unix/epoll.c
+ poll/unix/select.c
+ poll/unix/poll.c
+ poll/unix/port.c
+ poll/unix/kqueue.c
+ random/unix/sha2.c
+ random/unix/apr_random.c
+ random/unix/sha2_glue.c
+ shmem/unix/shm.c
+ support/unix/waitio.c
+ threadproc/unix/procsup.c
+ threadproc/unix/thread.c
+ threadproc/unix/signals.c
+ threadproc/unix/proc.c
+ threadproc/unix/threadpriv.c
+ time/unix/time.c
+ time/unix/timestr.c
+ user/unix/userinfo.c
+ user/unix/groupinfo.c)
+
+
+ADD_LIBRARY(apr STATIC ${apr_SRCS})
+
+
+#/bin/sh /Users/shaneburrell/freeswitch-svn-real/libs/apr/libtool --silent --mode=link gcc -g -O2 -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -I./include -I/Users/shaneburrell/freeswitch-svn-real/arch/unix -I./include/arch/unix -I/Users/shaneburrell/freeswitch-svn-real -version-info 2:8:2 -o libapr-1.la -rpath /usr/local/freeswitch/lib passwd/apr_getpass.lo strings/apr_cpystrn.lo strings/apr_strnatcmp.lo strings/apr_strings.lo strings/apr_strtok.lo strings/apr_fnmatch.lo strings/apr_snprintf.lo tables/apr_tables.lo tables/apr_hash.lo atomic/unix/apr_atomic.lo dso/unix/dso.lo file_io/unix/flock.lo file_io/unix/readwrite.lo file_io/unix/filepath_util.lo file_io/unix/seek.lo file_io/unix/dir.lo file_io/unix/mktemp.lo file_io/unix/filedup.lo file_io/unix/tempdir.lo file_io/unix/filepath.lo file_io/unix/pipe.lo file_io/unix/open.lo file_io/unix/filestat.lo file_io/unix/copy.lo file_io/unix/fileacc.lo file_io/unix/fullrw.lo locks/unix/thread_rwlock.lo locks/unix/thread_mutex.lo locks/unix/thread_cond.lo locks/unix/proc_mutex.lo locks/unix/global_mutex.lo memory/unix/apr_pools.lo misc/unix/charset.lo misc/unix/env.lo misc/unix/version.lo misc/unix/rand.lo misc/unix/start.lo misc/unix/errorcodes.lo misc/unix/getopt.lo misc/unix/otherchild.lo mmap/unix/mmap.lo mmap/unix/common.lo network_io/unix/sockaddr.lo network_io/unix/sockopt.lo network_io/unix/sendrecv.lo network_io/unix/multicast.lo network_io/unix/sockets.lo network_io/unix/inet_ntop.lo network_io/unix/inet_pton.lo poll/unix/epoll.lo poll/unix/select.lo poll/unix/poll.lo poll/unix/port.lo poll/unix/kqueue.lo random/unix/sha2.lo random/unix/apr_random.lo random/unix/sha2_glue.lo shmem/unix/shm.lo support/unix/waitio.lo threadproc/unix/procsup.lo threadproc/unix/thread.lo threadproc/unix/signals.lo threadproc/unix/proc.lo threadproc/unix/threadpriv.lo time/unix/time.lo time/unix/timestr.lo user/unix/userinfo.lo user/unix/groupinfo.lo -ldl -lpthread
+
+#awk -f /Users/shaneburrell/freeswitch-svn-real/libs/apr/build/make_var_export.awk /Users/shaneburrell/freeswitch-svn-real/apr_thread_mutex.h /Users/shaneburrell/freeswitch-svn-real/apr_env.h /Users/shaneburrell/freeswitch-svn-real/apr_poll.h /Users/shaneburrell/freeswitch-svn-real/apr_fnmatch.h /Users/shaneburrell/freeswitch-svn-real/apr_global_mutex.h /Users/shaneburrell/freeswitch-svn-real/apr_pools.h /Users/shaneburrell/freeswitch-svn-real/apr_want.h /Users/shaneburrell/freeswitch-svn-real/apr_file_io.h /Users/shaneburrell/freeswitch-svn-real/apr_version.h /Users/shaneburrell/freeswitch-svn-real/apr_mmap.h /Users/shaneburrell/freeswitch-svn-real/apr_dso.h /Users/shaneburrell/freeswitch-svn-real/apr_thread_proc.h /Users/shaneburrell/freeswitch-svn-real/apr_errno.h /Users/shaneburrell/freeswitch-svn-real/apr_shm.h /Users/shaneburrell/freeswitch-svn-real/apr_network_io.h /Users/shaneburrell/freeswitch-svn-real/apr_signal.h /Users/shaneburrell/freeswitch-svn-real/apr_user.h /Users/shaneburrell/freeswitch-svn-real/apr_support.h /Users/shaneburrell/freeswitch-svn-real/apr_atomic.h /Users/shaneburrell/freeswitch-svn-real/apr_random.h /Users/shaneburrell/freeswitch-svn-real/apr_thread_cond.h /Users/shaneburrell/freeswitch-svn-real/apr_thread_rwlock.h /Users/shaneburrell/freeswitch-svn-real/apr_getopt.h /Users/shaneburrell/freeswitch-svn-real/apr_inherit.h /Users/shaneburrell/freeswitch-svn-real/apr_strings.h /Users/shaneburrell/freeswitch-svn-real/apr_general.h /Users/shaneburrell/freeswitch-svn-real/apr_proc_mutex.h /Users/shaneburrell/freeswitch-svn-real/apr_tables.h /Users/shaneburrell/freeswitch-svn-real/apr_ring.h /Users/shaneburrell/freeswitch-svn-real/apr_file_info.h /Users/shaneburrell/freeswitch-svn-real/apr_allocator.h /Users/shaneburrell/freeswitch-svn-real/apr_portable.h /Users/shaneburrell/freeswitch-svn-real/apr_hash.h /Users/shaneburrell/freeswitch-svn-real/apr_time.h /Users/shaneburrell/freeswitch-svn-real/apr_lib.h > export_vars.c
+
+#awk -f /Users/shaneburrell/freeswitch-svn-real/libs/apr/build/make_exports.awk /Users/shaneburrell/freeswitch-svn-real/apr_thread_mutex.h /Users/shaneburrell/freeswitch-svn-real/apr_env.h /Users/shaneburrell/freeswitch-svn-real/apr_poll.h /Users/shaneburrell/freeswitch-svn-real/apr_fnmatch.h /Users/shaneburrell/freeswitch-svn-real/apr_global_mutex.h /Users/shaneburrell/freeswitch-svn-real/apr_pools.h /Users/shaneburrell/freeswitch-svn-real/apr_want.h /Users/shaneburrell/freeswitch-svn-real/apr_file_io.h /Users/shaneburrell/freeswitch-svn-real/apr_version.h /Users/shaneburrell/freeswitch-svn-real/apr_mmap.h /Users/shaneburrell/freeswitch-svn-real/apr_dso.h /Users/shaneburrell/freeswitch-svn-real/apr_thread_proc.h /Users/shaneburrell/freeswitch-svn-real/apr_errno.h /Users/shaneburrell/freeswitch-svn-real/apr_shm.h /Users/shaneburrell/freeswitch-svn-real/apr_network_io.h /Users/shaneburrell/freeswitch-svn-real/apr_signal.h /Users/shaneburrell/freeswitch-svn-real/apr_user.h /Users/shaneburrell/freeswitch-svn-real/apr_support.h /Users/shaneburrell/freeswitch-svn-real/apr_atomic.h /Users/shaneburrell/freeswitch-svn-real/apr_random.h /Users/shaneburrell/freeswitch-svn-real/apr_thread_cond.h /Users/shaneburrell/freeswitch-svn-real/apr_thread_rwlock.h /Users/shaneburrell/freeswitch-svn-real/apr_getopt.h /Users/shaneburrell/freeswitch-svn-real/apr_inherit.h /Users/shaneburrell/freeswitch-svn-real/apr_strings.h /Users/shaneburrell/freeswitch-svn-real/apr_general.h /Users/shaneburrell/freeswitch-svn-real/apr_proc_mutex.h /Users/shaneburrell/freeswitch-svn-real/apr_tables.h /Users/shaneburrell/freeswitch-svn-real/apr_ring.h /Users/shaneburrell/freeswitch-svn-real/apr_file_info.h /Users/shaneburrell/freeswitch-svn-real/apr_allocator.h /Users/shaneburrell/freeswitch-svn-real/apr_portable.h /Users/shaneburrell/freeswitch-svn-real/apr_hash.h /Users/shaneburrell/freeswitch-svn-real/apr_time.h /Users/shaneburrell/freeswitch-svn-real/apr_lib.h > exports.c
+#gcc -E -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -I./include -I/Users/shaneburrell/freeswitch-svn-real/arch/unix -I./include/arch/unix -I/Users/shaneburrell/freeswitch-svn-real exports.c | grep "ap_hack_" | sed -e 's/^.*[)]\(.*\);$/\1/' >> apr.exp
+#gcc -E -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -I./include -I/Users/shaneburrell/freeswitch-svn-real/arch/unix -I./include/arch/unix -I/Users/shaneburrell/freeswitch-svn-real export_vars.c | sed -e 's/^\#[^!]*//' | sed -e '/^$/d' >> apr.exp
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
1
0
Author: shaneb
Date: Mon Feb 16 01:11:09 2009
New Revision: 12041
Log:
apr cmake files
Added:
freeswitch/trunk/libs/apr-util/CMakeLists.txt
Added: freeswitch/trunk/libs/apr-util/CMakeLists.txt
==============================================================================
--- (empty file)
+++ freeswitch/trunk/libs/apr-util/CMakeLists.txt Mon Feb 16 01:11:09 2009
@@ -0,0 +1,34 @@
+cmake_minimum_required(VERSION 2.6)
+
+INCLUDE_DIRECTORIES(include/)
+
+add_definitions(-DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK)
+INCLUDE_DIRECTORIES(BEFORE ${CMAKE_SOURCE_DIR}/libs/apr-util/include ${CMAKE_SOURCE_DIR}/libs/apr-util/include/private ${CMAKE_SOURCE_DIR}/libs/apr/include)
+
+
+SET (apr-util_SRCS
+crypto/apr_md5.c
+crypto/uuid.c
+crypto/apr_sha1.c
+crypto/getuuid.c
+crypto/apr_md4.c
+encoding/apr_base64.c
+hooks/apr_hooks.c
+misc/apr_reslist.c
+misc/apr_rmm.c
+misc/apr_date.c
+misc/apu_version.c
+misc/apr_queue.c
+uri/apr_uri.c
+strmatch/apr_strmatch.c
+xlate/xlate.c
+)
+
+ADD_LIBRARY(apr-util STATIC ${apr-util_SRCS})
+
+
+
+
+
+
+
1
0
[commit] r12040 - freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl
by FreeSWITCH SVN 16 Feb '09
by FreeSWITCH SVN 16 Feb '09
16 Feb '09
Author: mphill
Date: Sun Feb 15 22:56:14 2009
New Revision: 12040
Log:
Some more sane defaults
Modified:
freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/global_defines.php
Modified: freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/global_defines.php
==============================================================================
--- freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/global_defines.php (original)
+++ freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/global_defines.php Sun Feb 15 22:56:14 2009
@@ -17,11 +17,11 @@
/**
* Defines the default dsn login for the PDO class
*/
-define('DEFAULT_DSN_LOGIN', 'root');
+define('DEFAULT_DSN_LOGIN', 'freeswitch');
/**
* Defines the default dsn password for the PDOclass
*/
-define('DEFAULT_DSN_PASSWORD', 'aasml2009');
+define('DEFAULT_DSN_PASSWORD', 'fr33sw1tch');
/**
* Generic return success
*/
1
0
[commit] r12039 - in freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl: . libs
by FreeSWITCH SVN 16 Feb '09
by FreeSWITCH SVN 16 Feb '09
16 Feb '09
Author: mphill
Date: Sun Feb 15 21:40:38 2009
New Revision: 12039
Log:
New dialplan importer uses new schema. Now uses PDO instead of MDB2.
fs_dialpan.php now uses the new schema.
Modified:
freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/dialplan_importer.php
freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/fs_dialplan.php
freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/global_defines.php
freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/libs/fs_pdo.php
Modified: freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/dialplan_importer.php
==============================================================================
--- freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/dialplan_importer.php (original)
+++ freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/dialplan_importer.php Sun Feb 15 21:40:38 2009
@@ -8,9 +8,12 @@
*/
/**
- * include MDB2 PEAR Extension
+ * Switched to simple xml, pdo and new schemea. Added several new supporint functions
+ * @author Michael Phillips
*/
-require_once('MDB2.php');
+
+require_once('libs/fs_pdo.php');
+
/**
* require global definitions for FS_CURL
*/
@@ -23,10 +26,11 @@
*/
function upload_form() {
echo '<html>';
- echo '<h1>Select A File To Import</h1>';
+ echo '<h2>Select A File To Import</h2>';
echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '" enctype="multipart/form-data">';
echo '<input type="file" name="file">';
echo '<input type="submit" name="confirmed">';
+ echo '<p><input type="checkbox" name="clear_dialplan" value="true"> Clear all dialplan data before insert?</p>';
echo '</form>';
echo '</html>';
}
@@ -41,7 +45,7 @@
function run_query($db, $query) {
syslog(LOG_INFO, $query);
$affected = $db -> exec($query);
- if (MDB2::isError($affected)) {
+ if (FS_PDO::isError($affected)) {
if (!defined('UNSUCCESSFUL_QUERY')) {
define('UNSUCCESSFUL_QUERY', true);
}
@@ -95,52 +99,109 @@
// no need to do anything till we check that the file's ok
if (check_uploaded_file($_FILES['file'])) {
$xml_file = $_FILES['file']['tmp_name'];
- move_uploaded_file($tmp_file, $xml_file);
+ //move_uploaded_file($tmp_file, $xml_file);
+ //is_uploaded_file
+ //echo filesize($xml_file);
//echo $xml_file . "\n<br>";
- $xml_str = sprintf('%s', file_get_contents($xml_file));
- //echo $xml_str;
+ $xml_str = file_get_contents($xml_file);
}
-$db = MDB2::connect(DEFAULT_DSN);
-if (MDB2::isError($db)) {
- echo $db -> getMessage() . "\n";
-}
-
-$xml_obj = new SimpleXMLElement($xml_str);
-foreach ($xml_obj -> context as $context) {
- $cn = $context['name'];
- $global_weight = 100;
- foreach ($context -> extension as $extension) {
- $en = $extension['name'];
- //printf("<pre>%s</pre>", print_r($extension, true));
- $ec = $extension['continue'];
- $global_weight+=100;
- foreach ($extension -> condition as $condition) {
- //print_r($condition);
- $cf = $condition['field'];
- $ce = addslashes($condition['expression']);
- //echo "<pre>Condidtion Expression for $en:\n before: " . $condition['expression'] . "\n after: $ce</pre>";
- $cb = $condition['break'];
- $weight = 0;
- foreach ($condition as $type => $action) {
- //echo "-------------------$type-----------------------------\n";
- $app_name = $action['application'];
- $app_data = addslashes($action['data']);
- $weight++;
- //echo "$cn\t$en\t$cf\t$ce\t$cc\t$app_name\t$app_data\t$ec\t$global_weight\t$weight\n";
- $query = sprintf('%s %s %s %s %s %s;',
- "INSERT INTO dialplan SET",
- "context='$cn', extension='$en', condition_field='$cf',",
- "condition_expression='$ce', application_name='$app_name',",
- "application_data='$app_data', weight='$weight', type='$type',",
- "ext_continue='$ec', global_weight='$global_weight',",
- "cond_break='$cb'"
- );
- run_query($db, $query);
- }
- }
- }
+
+try {
+ $db = new FS_PDO(DEFAULT_DSN,DEFAULT_DSN_LOGIN, DEFAULT_DSN_PASSWORD);
+} catch(Exception $e) {
+ die($e->getMessage());
+}
+
+if($_POST['clear_dialplan']) {
+ truncate_dialplan();
+}
+
+echo "<pre>";
+$xml = simplexml_load_string($xml_str);
+$num_of_conext = sizeof($xml->context);
+
+
+$dialplan_id = insert_dialplan();
+foreach($xml->children() as $context => $context_children) {
+ //echo $context . " => " . $context_children->attributes()->name . "\n";
+ $context_id = insert_dialplan_context($dialplan_id, $context_children->attributes()->name);
+
+ foreach($context_children as $extension => $extension_children) {
+ //echo "\t" . $extension . " => name: " . $extension_children->attributes()->name . " continue: " . $extension_children->attributes()->continue . "\n" ;
+ if($extension == 'extension') { //verify again bad input
+ $extension_id = insert_dialplan_extension($context_id, $extension_children->attributes()->name, $extension_children->attributes()->continue);
+ }
+ foreach($extension_children as $condition => $condition_children) {
+ //echo "\t\t" . $condition . " => " . $condition_children->attributes()->field . ", expression; " .$condition_children->attributes()->expression . "\n";
+ $condition_id = insert_dialplan_condition($extension_id, $condition_children->attributes()->field, $condition_children->attributes()->expression);
+ foreach($condition_children as $action => $action_childress) {
+ //echo "\t\t\t" . $action . " => " . $action_childress->attributes()->application . ", expression; " .$action_childress->attributes()->data . "\n";
+ if($action == ('action' || 'anti-action')) { //verify again bad input
+ insert_dialplan_actions($condition_id, $action_childress->attributes()->application , $action_childress->attributes()->data, $action);
+ } else {
+ echo "bad xml $action";
+ }// end if
+ } //end foreach
+ } //end foreach
+ }// end foreach
+} // end foreach
+
+echo "</pre>";
+
+function insert_dialplan($domain = 'freeswitch' , $ip_address = '127.0.0.1') {
+ global $db;
+ $sql = sprintf("INSERT INTO dialplan (`domain`, `ip_address`) VALUES ('%s', '%s')", $domain, $ip_address);
+ $db->query($sql);
+ return $db->lastInsertId() ;
+}
+
+function insert_dialplan_context($dialplan_id, $context) {
+ global $db;
+ $sql = sprintf("INSERT INTO dialplan_context (`dialplan_id`, `context`, `weight`) VALUES (%d, '%s', %d)", $dialplan_id, $context, get_next_weight('context'));
+ $db->query($sql);
+ return $db->lastInsertId() ;
+}
+
+function insert_dialplan_extension($context_id, $name, $continue) {
+ global $db;
+ $sql = sprintf("INSERT INTO dialplan_extension (`context_id`, `name`, `continue`, `weight`) VALUES (%d, '%s', '%s', %d)", $context_id, $name, $continue, get_next_weight('extension'));
+ get_next_weight('extension');
+ $db->query($sql);
+ return $db->lastInsertId() ;
+}
+
+function insert_dialplan_condition($extension_id, $field, $expression) {
+ global $db;
+ $sql = sprintf("INSERT INTO dialplan_condition (`extension_id`, `field`, `expression`, `weight`) VALUES (%d, '%s', '%s', %d)", $extension_id, addslashes($field), addslashes($expression),get_next_weight('condition') );
+ //echo $sql . "\n";
+ $db->query($sql);
+ return $db->lastInsertId() ;
+}
+
+function insert_dialplan_actions($condition_id, $application , $data, $type) {
+ global $db;
+ $sql = sprintf("INSERT INTO dialplan_actions(`condition_id`, `application`, `data`, `type`, `weight`) VALUES (%d, '%s', '%s', '%s', %d)", $condition_id, addslashes($application), addslashes($data), $type, get_next_weight('actions'));
+ $db->query($sql);
+ return $db->lastInsertId() ;
+}
+
+function get_next_weight($table) { //used for weighting system
+ global $db;
+ $sql = sprintf("SELECT MAX(weight) as max FROM dialplan_%s", $table);
+ $res = $db->queryAll($sql);
+ return ($res[0]['max'] + 10);
+}
+
+function truncate_dialplan() {
+ global $db;
+ $db->query('TRUNCATE dialplan_extension');
+ $db->query('TRUNCATE dialplan');
+ $db->query('TRUNCATE dialplan_context');
+ $db->query('TRUNCATE dialplan_condition');
+ $db->query('TRUNCATE dialplan_actions');
}
+
if (defined(UNSUCCESSFUL_QUERY) && UNSUCCESSFUL_QUERY == true) {
echo "<h2>Some Queries Were Not Successful</h2>";
} else {
@@ -149,4 +210,4 @@
upload_form();
//printf("<pre>%s</pre>", print_r($xml_obj, true);
-
+?>
\ No newline at end of file
Modified: freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/fs_dialplan.php
==============================================================================
--- freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/fs_dialplan.php (original)
+++ freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/fs_dialplan.php Sun Feb 15 21:40:38 2009
@@ -83,10 +83,23 @@
*/
private function get_dialplan($context) {
$dp_array = array();
- $dpQuery = sprintf("%s %s;"
- , "SELECT * FROM dialplan WHERE context='$context' ORDER BY"
- , "global_weight, context, extension, weight"
- );
+ $dpQuery = sprintf("SELECT
+ `context`,
+ `name` as extension,
+ `application` as application_name,
+ `data` as application_data,
+ `field` as condition_field,
+ `expression` as condition_expression,
+ `continue` as ext_continue,
+ `type`
+ FROM dialplan
+ INNER JOIN dialplan_context USING(dialplan_id)
+ INNER JOIN dialplan_extension USING(context_id)
+ INNER JOIN dialplan_condition USING(extension_id)
+ INNER JOIN dialplan_actions USING(condition_id)
+ WHERE context = '%s'
+ ORDER BY dialplan_context.weight, dialplan_extension.weight, dialplan_condition.weight, dialplan_actions.weight", $context);
+
$res = $this -> db -> query($dpQuery);
if (FS_PDO::isError($res)) {
$this -> comment($this -> db -> getMessage());
@@ -99,11 +112,11 @@
$ec = $row['ext_continue'];
$app = $row['application_name'];
$data = $row['application_data'];
- $app_cdata = $row['app_cdata'];
+ //$app_cdata = $row['app_cdata'];
$type = $row['type'];
$cf = $row['condition_field'];
$ce = $row['condition_expression'];
- $rcd = $row['re_cdata'];
+ //$rcd = $row['re_cdata'];
$cc = empty($row['cond_break']) ? '0' : $row['cond_break'];
$dp_array[$ct]["$et;$ec"]["$cf;$ce;$cc;$rcd"][] = array(
'type'=>$type,
Modified: freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/global_defines.php
==============================================================================
--- freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/global_defines.php (original)
+++ freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/global_defines.php Sun Feb 15 21:40:38 2009
@@ -17,11 +17,11 @@
/**
* Defines the default dsn login for the PDO class
*/
-define('DEFAULT_DSN_LOGIN', 'freeswitch');
+define('DEFAULT_DSN_LOGIN', 'root');
/**
* Defines the default dsn password for the PDOclass
*/
-define('DEFAULT_DSN_PASSWORD', 'fr33sw1tch');
+define('DEFAULT_DSN_PASSWORD', 'aasml2009');
/**
* Generic return success
*/
@@ -74,4 +74,4 @@
//define('', '');
-
+?>
\ No newline at end of file
Modified: freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/libs/fs_pdo.php
==============================================================================
--- freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/libs/fs_pdo.php (original)
+++ freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/libs/fs_pdo.php Sun Feb 15 21:40:38 2009
@@ -105,5 +105,5 @@
return $this->rowCount();
}
-}
-?>
+}
+?>
\ No newline at end of file
1
0
[commit] r12038 - freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/sql
by FreeSWITCH SVN 16 Feb '09
by FreeSWITCH SVN 16 Feb '09
16 Feb '09
Author: mphill
Date: Sun Feb 15 21:38:28 2009
New Revision: 12038
Log:
New database schema
Added:
dialplan_extension
dialplan (updated)
dialplan_context
dialplan_condition
dialplan_actions
Added:
freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/sql/oracle-with-examples.sql
freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/sql/oracle.sql
Modified:
freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/sql/mysql-4.0-with-samples.sql
freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/sql/mysql-4.0.sql
freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/sql/mysql-5.0-with-samples.sql
freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/sql/mysql-5.0.sql
Modified: freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/sql/mysql-4.0-with-samples.sql
==============================================================================
--- freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/sql/mysql-4.0-with-samples.sql (original)
+++ freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/sql/mysql-4.0-with-samples.sql Sun Feb 15 21:38:28 2009
@@ -1,530 +1,891 @@
--- MySQL dump 10.11
---
--- Host: localhost Database: freeswitch
--- ------------------------------------------------------
--- Server version 5.0.32-Debian_7etch5-log
+-- phpMyAdmin SQL Dump
+-- version 3.1.2deb1
+-- http://www.phpmyadmin.net
+--
+-- Host: localhost
+-- Generation Time: Feb 15, 2009 at 09:35 PM
+-- Server version: 5.0.75
+-- PHP Version: 5.2.6-3ubuntu2
+
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
--- Table structure for table `carrier_gateway`
+-- Database: `freeswitch`
--
-DROP TABLE IF EXISTS `carrier_gateway`;
-CREATE TABLE `carrier_gateway` (
- `id` int(11) NOT NULL auto_increment,
- `carrier_id` int(11) default NULL,
- `gateway` varchar(32) default NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `gateway` (`gateway`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+-- --------------------------------------------------------
--
--- Dumping data for table `carrier_gateway`
+-- Table structure for table `acl_lists`
--
-LOCK TABLES `carrier_gateway` WRITE;
-/*!40000 ALTER TABLE `carrier_gateway` DISABLE KEYS */;
-INSERT INTO `carrier_gateway` VALUES (1,1,'GX1783b'),(2,2,'L3285032k1'),(3,1,'GX2946h'),(4,2,'L3973865l2');
-/*!40000 ALTER TABLE `carrier_gateway` ENABLE KEYS */;
-UNLOCK TABLES;
+CREATE TABLE IF NOT EXISTS `acl_lists` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `acl_name` varchar(128) NOT NULL,
+ `default_policy` varchar(45) NOT NULL,
+ PRIMARY KEY (`id`)
+) TYPE=InnoDB AUTO_INCREMENT=4 ;
--
--- Table structure for table `carriers`
+-- Dumping data for table `acl_lists`
--
-DROP TABLE IF EXISTS `carriers`;
-CREATE TABLE `carriers` (
- `id` int(11) NOT NULL auto_increment,
- `Carrier_Name` varchar(255) default NULL,
+INSERT INTO `acl_lists` (`id`, `acl_name`, `default_policy`) VALUES
+(1, 'rfc1918', 'deny'),
+(2, 'lan', 'allow'),
+(3, 'default', 'allow');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `acl_nodes`
+--
+
+CREATE TABLE IF NOT EXISTS `acl_nodes` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `cidr` varchar(45) NOT NULL,
+ `type` varchar(16) NOT NULL,
+ `list_id` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=4 ;
--
--- Dumping data for table `carriers`
+-- Dumping data for table `acl_nodes`
--
-LOCK TABLES `carriers` WRITE;
-/*!40000 ALTER TABLE `carriers` DISABLE KEYS */;
-INSERT INTO `carriers` VALUES (1,'Global Crossing'),(2,'Level 3 Communications');
-/*!40000 ALTER TABLE `carriers` ENABLE KEYS */;
-UNLOCK TABLES;
+INSERT INTO `acl_nodes` (`id`, `cidr`, `type`, `list_id`) VALUES
+(1, '192.168.0.0/16', 'allow', 1),
+(2, '10.0.0.0/8', 'allow', 1),
+(3, '172.16.0.0/12', 'allow', 1);
+
+-- --------------------------------------------------------
--
-- Table structure for table `conference_advertise`
--
-DROP TABLE IF EXISTS `conference_advertise`;
-CREATE TABLE `conference_advertise` (
+CREATE TABLE IF NOT EXISTS `conference_advertise` (
`id` int(10) unsigned NOT NULL auto_increment,
`room` varchar(64) NOT NULL,
`status` varchar(128) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_room` (`room`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=4 ;
--
-- Dumping data for table `conference_advertise`
--
-LOCK TABLES `conference_advertise` WRITE;
-/*!40000 ALTER TABLE `conference_advertise` DISABLE KEYS */;
-INSERT INTO `conference_advertise` VALUES (1,'3000@$${domain}','Freeswitch Conference'),(2,'3001@$${domain}','FreeSWITCH Conference 2'),(3,'3002@$${domain}','FreeSWITCH Conference 3');
-/*!40000 ALTER TABLE `conference_advertise` ENABLE KEYS */;
-UNLOCK TABLES;
+INSERT INTO `conference_advertise` (`id`, `room`, `status`) VALUES
+(1, '3000@$${domain}', 'Freeswitch Conference'),
+(2, '3001@$${domain}', 'FreeSWITCH Conference 2'),
+(3, '3002@$${domain}', 'FreeSWITCH Conference 3');
+
+-- --------------------------------------------------------
--
-- Table structure for table `conference_controls`
--
-DROP TABLE IF EXISTS `conference_controls`;
-CREATE TABLE `conference_controls` (
+CREATE TABLE IF NOT EXISTS `conference_controls` (
`id` int(10) unsigned NOT NULL auto_increment,
`conf_group` varchar(64) NOT NULL,
`action` varchar(64) NOT NULL,
`digits` varchar(16) NOT NULL,
PRIMARY KEY (`id`),
- UNIQUE KEY `unique_group_action` USING BTREE (`conf_group`,`action`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+ UNIQUE KEY `unique_group_action` (`conf_group`,`action`)
+) TYPE=InnoDB AUTO_INCREMENT=13 ;
--
-- Dumping data for table `conference_controls`
--
-LOCK TABLES `conference_controls` WRITE;
-/*!40000 ALTER TABLE `conference_controls` DISABLE KEYS */;
-INSERT INTO `conference_controls` VALUES (1,'default','mute','0'),(2,'default','deaf_mute','*'),(3,'default','energy up','9'),(4,'default','energy equ','8'),(5,'default','energy dn','7'),(6,'default','vol talk up','3'),(7,'default','vol talk dn','1'),(8,'default','vol talk zero','2'),(9,'default','vol listen up','6'),(10,'default','vol listen dn','4'),(11,'default','vol listen zero','5'),(12,'default','hangup','#');
-/*!40000 ALTER TABLE `conference_controls` ENABLE KEYS */;
-UNLOCK TABLES;
+INSERT INTO `conference_controls` (`id`, `conf_group`, `action`, `digits`) VALUES
+(1, 'default', 'mute', '0'),
+(2, 'default', 'deaf_mute', '*'),
+(3, 'default', 'energy up', '9'),
+(4, 'default', 'energy equ', '8'),
+(5, 'default', 'energy dn', '7'),
+(6, 'default', 'vol talk up', '3'),
+(7, 'default', 'vol talk dn', '1'),
+(8, 'default', 'vol talk zero', '2'),
+(9, 'default', 'vol listen up', '6'),
+(10, 'default', 'vol listen dn', '4'),
+(11, 'default', 'vol listen zero', '5'),
+(12, 'default', 'hangup', '#');
+
+-- --------------------------------------------------------
--
-- Table structure for table `conference_profiles`
--
-DROP TABLE IF EXISTS `conference_profiles`;
-CREATE TABLE `conference_profiles` (
+CREATE TABLE IF NOT EXISTS `conference_profiles` (
`id` int(10) unsigned NOT NULL auto_increment,
`profile_name` varchar(64) NOT NULL,
`param_name` varchar(64) NOT NULL,
`param_value` varchar(64) NOT NULL,
PRIMARY KEY (`id`),
KEY `unique_profile_param` (`profile_name`,`param_name`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=8 ;
--
-- Dumping data for table `conference_profiles`
--
-LOCK TABLES `conference_profiles` WRITE;
-/*!40000 ALTER TABLE `conference_profiles` DISABLE KEYS */;
-INSERT INTO `conference_profiles` VALUES (1,'default','domain','$${domain}'),(2,'default','rate','8000'),(3,'default','interval','20'),(4,'default','energy-level','300'),(5,'default','moh-sound','$${moh_uri}'),(6,'default','caller-id-name','$${outbound_caller_name}'),(7,'default','caller-id-number','$${outbound_caller_number}');
-/*!40000 ALTER TABLE `conference_profiles` ENABLE KEYS */;
-UNLOCK TABLES;
+INSERT INTO `conference_profiles` (`id`, `profile_name`, `param_name`, `param_value`) VALUES
+(1, 'default', 'domain', '$${domain}'),
+(2, 'default', 'rate', '8000'),
+(3, 'default', 'interval', '20'),
+(4, 'default', 'energy-level', '300'),
+(5, 'default', 'moh-sound', '$${moh_uri}'),
+(6, 'default', 'caller-id-name', '$${outbound_caller_name}'),
+(7, 'default', 'caller-id-number', '$${outbound_caller_number}');
+
+-- --------------------------------------------------------
--
--- Table structure for table `db_data`
+-- Table structure for table `dialplan`
--
-DROP TABLE IF EXISTS `db_data`;
-CREATE TABLE `db_data` (
- `hostname` varchar(255) default NULL,
- `realm` varchar(255) default NULL,
- `data_key` varchar(255) default NULL,
- `data` varchar(255) default NULL
-) ENGINE=InnoDB;
+CREATE TABLE IF NOT EXISTS `dialplan` (
+ `dialplan_id` int(11) NOT NULL auto_increment,
+ `domain` varchar(128) NOT NULL,
+ `ip_address` varchar(15) NOT NULL,
+ PRIMARY KEY (`dialplan_id`)
+) TYPE=MyISAM AUTO_INCREMENT=2 ;
--
--- Dumping data for table `db_data`
+-- Dumping data for table `dialplan`
--
-LOCK TABLES `db_data` WRITE;
-/*!40000 ALTER TABLE `db_data` DISABLE KEYS */;
-/*!40000 ALTER TABLE `db_data` ENABLE KEYS */;
-UNLOCK TABLES;
+INSERT INTO `dialplan` (`dialplan_id`, `domain`, `ip_address`) VALUES
+(1, 'freeswitch', '127.0.0.1');
+
+-- --------------------------------------------------------
--
--- Table structure for table `dialplan`
+-- Table structure for table `dialplan_actions`
--
-DROP TABLE IF EXISTS `dialplan`;
-CREATE TABLE `dialplan` (
- `id` int(11) NOT NULL auto_increment,
+CREATE TABLE IF NOT EXISTS `dialplan_actions` (
+ `action_id` int(11) NOT NULL auto_increment,
+ `condition_id` int(11) NOT NULL,
+ `application` varchar(256) NOT NULL,
+ `data` varchar(256) NOT NULL,
+ `type` varchar(32) NOT NULL,
+ `weight` int(11) NOT NULL,
+ PRIMARY KEY (`action_id`)
+) TYPE=MyISAM AUTO_INCREMENT=170 ;
+
+--
+-- Dumping data for table `dialplan_actions`
+--
+
+INSERT INTO `dialplan_actions` (`action_id`, `condition_id`, `application`, `data`, `type`, `weight`) VALUES
+(1, 2, 'deflect', '${destination_number}', 'action', 10),
+(2, 5, 'set', 'domain_name=$${domain}', 'action', 20),
+(3, 5, 'set', 'domain_name=${sip_auth_realm}', 'anti-action', 30),
+(4, 7, 'set', 'domain_name=$${domain}', 'action', 40),
+(5, 9, 'set', 'open=true', 'action', 50),
+(6, 10, 'answer', '', 'action', 60),
+(7, 10, 'intercept', '${db(select/${domain_name}-last_dial/global)}', 'action', 70),
+(8, 10, 'sleep', '2000', 'action', 80),
+(9, 11, 'answer', '', 'action', 90),
+(10, 11, 'intercept', '${db(select/${domain_name}-last_dial/${callgroup})}', 'action', 100),
+(11, 11, 'sleep', '2000', 'action', 110),
+(12, 12, 'answer', '', 'action', 120),
+(13, 12, 'intercept', '${db(select/${domain_name}-last_dial_ext/$1)}', 'action', 130),
+(14, 12, 'sleep', '2000', 'action', 140),
+(15, 13, 'transfer', '${db(select/${domain_name}-last_dial/${caller_id_number})}', 'action', 150),
+(16, 14, 'set', 'use_profile=${cond(${acl($${local_ip_v4} rfc1918)} == true ? nat : default)}', 'action', 160),
+(17, 14, 'set', 'use_profile=${cond(${acl(${network_addr} rfc1918)} == true ? nat : default)}', 'anti-action', 170),
+(18, 15, 'set_user', 'default@${domain_name}', 'action', 180),
+(19, 16, 'info', '', 'action', 190),
+(20, 17, 'set', 'sip_secure_media=true', 'action', 200),
+(21, 18, 'db', 'insert/${domain_name}-spymap/${caller_id_number}/${uuid}', 'action', 210),
+(22, 18, 'db', 'insert/${domain_name}-last_dial/${caller_id_number}/${destination_number}', 'action', 220),
+(23, 18, 'db', 'insert/${domain_name}-last_dial/global/${uuid}', 'action', 230),
+(24, 19, 'eval', '${snom_bind_key(2 off DND ${sip_from_user} ${sip_from_host} ${sofia_profile_name} message notused)}', 'action', 240),
+(25, 19, 'transfer', '3000', 'action', 250),
+(26, 20, 'eval', '${snom_bind_key(2 on DND ${sip_from_user} ${sip_from_host} ${sofia_profile_name} message api+uuid_transfer ${uuid} 9001)}', 'action', 260),
+(27, 20, 'playback', '$${hold_music}', 'action', 270),
+(28, 21, 'answer', '', 'action', 280),
+(29, 21, 'eavesdrop', '${db(select/${domain_name}-spymap/$1)}', 'action', 290),
+(30, 22, 'answer', '', 'action', 300),
+(31, 22, 'set', 'eavesdrop_indicate_failed=tone_stream://%(500, 0, 320)', 'action', 310),
+(32, 22, 'set', 'eavesdrop_indicate_new=tone_stream://%(500, 0, 620)', 'action', 320),
+(33, 22, 'set', 'eavesdrop_indicate_idle=tone_stream://%(250, 0, 920)', 'action', 330),
+(34, 22, 'eavesdrop', 'all', 'action', 340),
+(35, 23, 'transfer', '${db(select/${domain_name}-call_return/${caller_id_number})}', 'action', 350),
+(36, 24, 'answer', '', 'action', 360),
+(37, 24, 'group', 'delete:$1@${domain_name}:${sofia_contact(${sip_from_user}@${domain_name})}', 'action', 370),
+(38, 24, 'gentones', '%(1000, 0, 320)', 'action', 380),
+(39, 25, 'answer', '', 'action', 390),
+(40, 25, 'group', 'insert:$1@${domain_name}:${sofia_contact(${sip_from_user}@${domain_name})}', 'action', 400),
+(41, 25, 'gentones', '%(1000, 0, 640)', 'action', 410),
+(42, 26, 'bridge', '{ignore_early_media=true}${group(call:$1@${domain_name})}', 'action', 420),
+(43, 27, 'set', 'call_timeout=10', 'action', 430),
+(44, 27, 'bridge', '{ignore_early_media=true}${group(call:$1@${domain_name}:order)}', 'action', 440),
+(45, 28, 'set', 'dialed_extension=$1', 'action', 450),
+(46, 28, 'export', 'sip_auto_answer=true', 'action', 460),
+(47, 28, 'bridge', 'user/${dialed_extension}@${domain_name}', 'action', 470),
+(48, 29, 'set', 'dialed_extension=$1', 'action', 480),
+(49, 29, 'export', 'dialed_extension=$1', 'action', 490),
+(50, 30, 'set', 'voicemail_authorized=${sip_authorized}', 'action', 500),
+(51, 30, 'answer', '', 'action', 510),
+(52, 30, 'sleep', '1000', 'action', 520),
+(53, 30, 'voicemail', 'check default ${domain_name} ${dialed_extension}', 'action', 530),
+(54, 30, 'bind_meta_app', '1 b s execute_extension::dx XML features', 'anti-action', 540),
+(55, 30, 'bind_meta_app', '2 b s record_session::$${base_dir}/recordings/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav', 'anti-action', 550),
+(56, 30, 'bind_meta_app', '3 b s execute_extension::cf XML features', 'anti-action', 560),
+(57, 30, 'set', 'ringback=${us-ring}', 'anti-action', 570),
+(58, 30, 'set', 'transfer_ringback=$${hold_music}', 'anti-action', 580),
+(59, 30, 'set', 'call_timeout=30', 'anti-action', 590),
+(60, 30, 'set', 'hangup_after_bridge=true', 'anti-action', 600),
+(61, 30, 'set', 'continue_on_fail=true', 'anti-action', 610),
+(62, 30, 'db', 'insert/${domain_name}-call_return/${dialed_extension}/${caller_id_number}', 'anti-action', 620),
+(63, 30, 'db', 'insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}', 'anti-action', 630),
+(64, 30, 'set', 'called_party_callgroup=${user_data(${dialed_extension}@${domain_name} var callgroup)}', 'anti-action', 640),
+(65, 30, 'db', 'insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}', 'anti-action', 650),
+(66, 30, 'bridge', 'user/${dialed_extension}@${domain_name}', 'anti-action', 660),
+(67, 30, 'answer', '', 'anti-action', 670),
+(68, 30, 'sleep', '1000', 'anti-action', 680),
+(69, 30, 'voicemail', 'default ${domain_name} ${dialed_extension}', 'anti-action', 690),
+(70, 31, 'bridge', '${group_call(sales@${domain_name})}', 'action', 700),
+(71, 32, 'bridge', 'group/support@${domain_name}', 'action', 710),
+(72, 33, 'bridge', 'group/billing@${domain_name}', 'action', 720),
+(73, 34, 'set', 'transfer_ringback=$${hold_music}', 'action', 730),
+(74, 34, 'transfer', '1000 XML features', 'action', 740),
+(75, 35, 'answer', '', 'action', 750),
+(76, 35, 'sleep', '1000', 'action', 760),
+(77, 35, 'voicemail', 'check default ${domain_name}', 'action', 770),
+(78, 36, 'bridge', 'sofia/${use_profile}/$1', 'action', 780),
+(79, 37, 'answer', '', 'action', 790),
+(80, 37, 'conference', '$1-${domain_name}@default', 'action', 800),
+(81, 38, 'answer', '', 'action', 810),
+(82, 38, 'conference', '$1-${domain_name}@wideband', 'action', 820),
+(83, 39, 'answer', '', 'action', 830),
+(84, 39, 'conference', '$1-${domain_name}@ultrawideband', 'action', 840),
+(85, 40, 'answer', '', 'action', 850),
+(86, 40, 'conference', '$1-${domain_name}@cdquality', 'action', 860),
+(87, 41, 'bridge', 'sofia/${use_profile}/$1(a)conference.freeswitch.org', 'action', 870),
+(88, 42, 'set', 'conference_auto_outcall_caller_id_name=Mad Boss1', 'action', 880),
+(89, 42, 'set', 'conference_auto_outcall_caller_id_number=0911', 'action', 890),
+(90, 42, 'set', 'conference_auto_outcall_timeout=60', 'action', 900),
+(91, 42, 'set', 'conference_auto_outcall_flags=mute', 'action', 910),
+(92, 42, 'set', 'conference_auto_outcall_prefix={sip_auto_answer=true,execute_on_answer=''bind_meta_app 2 a s1 intercept::${uuid}''}', 'action', 920),
+(93, 42, 'set', 'sip_exclude_contact=${network_addr}', 'action', 930),
+(94, 42, 'conference_set_auto_outcall', '${group_call(sales)}', 'action', 940),
+(95, 42, 'conference', 'madboss_intercom1@default+flags{endconf|deaf}', 'action', 950),
+(96, 43, 'set', 'conference_auto_outcall_caller_id_name=Mad Boss2', 'action', 960),
+(97, 43, 'set', 'conference_auto_outcall_caller_id_number=0912', 'action', 970),
+(98, 43, 'set', 'conference_auto_outcall_timeout=60', 'action', 980),
+(99, 43, 'set', 'conference_auto_outcall_flags=mute', 'action', 990),
+(100, 43, 'set', 'conference_auto_outcall_prefix={sip_auto_answer=true,execute_on_answer=''bind_meta_app 2 a s1 intercept::${uuid}''}', 'action', 1000),
+(101, 43, 'set', 'sip_exclude_contact=${network_addr}', 'action', 1010),
+(102, 43, 'conference_set_auto_outcall', 'loopback/9999', 'action', 1020),
+(103, 43, 'conference', 'madboss_intercom2@default+flags{endconf|deaf}', 'action', 1030),
+(104, 44, 'set', 'conference_auto_outcall_caller_id_name=Mad Boss', 'action', 1040),
+(105, 44, 'set', 'conference_auto_outcall_caller_id_number=0911', 'action', 1050),
+(106, 44, 'set', 'conference_auto_outcall_timeout=60', 'action', 1060),
+(107, 44, 'set', 'conference_auto_outcall_flags=none', 'action', 1070),
+(108, 44, 'conference_set_auto_outcall', 'loopback/9999', 'action', 1080),
+(109, 44, 'conference', 'madboss3@default', 'action', 1090),
+(110, 45, 'answer', '', 'action', 1100),
+(111, 45, 'sleep', '2000', 'action', 1110),
+(112, 45, 'ivr', 'demo_ivr', 'action', 1120),
+(113, 46, 'conference', 'bridge:mydynaconf:sofia/${use_profile}/1234@conference.freeswitch.org', 'action', 1130),
+(114, 47, 'answer', '', 'action', 1140),
+(115, 47, 'esf_page_group', '', 'action', 1150),
+(116, 48, 'set', 'fifo_music=$${hold_music}', 'action', 1160),
+(117, 48, 'fifo', '5900@${domain_name} in', 'action', 1170),
+(118, 49, 'answer', '', 'action', 1180),
+(119, 49, 'fifo', '5900@${domain_name} out nowait', 'action', 1190),
+(120, 51, 'fifo', '$1@${domain_name} in undef $${hold_music}', 'action', 1200),
+(121, 54, 'answer', '', 'action', 1210),
+(122, 54, 'fifo', '$1@${domain_name} out nowait', 'action', 1220),
+(123, 57, '', '', 'expression', 1230),
+(124, 57, 'fifo', '$1@${domain_name} in undef $${hold_music}', 'action', 1240),
+(125, 60, 'answer', '', 'action', 1250),
+(126, 60, 'fifo', '$1@${domain_name} out nowait', 'action', 1260),
+(127, 61, 'pre_answer', '', 'action', 1270),
+(128, 61, 'sleep', '20000', 'action', 1280),
+(129, 61, 'answer', '', 'action', 1290),
+(130, 61, 'sleep', '1000', 'action', 1300),
+(131, 61, 'playback', 'voicemail/vm-goodbye.wav', 'action', 1310),
+(132, 61, 'hangup', '', 'action', 1320),
+(133, 62, 'ring_ready', '', 'action', 1330),
+(134, 62, 'sleep', '20000', 'action', 1340),
+(135, 62, 'answer', '', 'action', 1350),
+(136, 62, 'sleep', '1000', 'action', 1360),
+(137, 62, 'playback', 'voicemail/vm-goodbye.wav', 'action', 1370),
+(138, 62, 'hangup', '', 'action', 1380),
+(139, 63, 'set', 'ringback=$${uk-ring}', 'action', 1390),
+(140, 63, 'bridge', 'loopback/wait', 'action', 1400),
+(141, 64, 'set', 'ringback=$${hold_music}', 'action', 1410),
+(142, 64, 'bridge', 'loopback/wait', 'action', 1420),
+(143, 65, 'set', 'transfer_ringback=$${uk-ring}', 'action', 1430),
+(144, 65, 'answer', '', 'action', 1440),
+(145, 65, 'bridge', 'loopback/wait', 'action', 1450),
+(146, 66, 'set', 'transfer_ringback=$${hold_music}', 'action', 1460),
+(147, 66, 'answer', '', 'action', 1470),
+(148, 66, 'bridge', 'loopback/wait', 'action', 1480),
+(149, 67, 'answer', '', 'action', 1490),
+(150, 67, 'info', '', 'action', 1500),
+(151, 67, 'sleep', '250', 'action', 1510),
+(152, 67, 'hangup', '', 'action', 1520),
+(153, 68, 'answer', '', 'action', 1530),
+(154, 68, 'record_fsv', '/tmp/testrecord.fsv', 'action', 1540),
+(155, 69, 'answer', '', 'action', 1550),
+(156, 69, 'play_fsv', '/tmp/testrecord.fsv', 'action', 1560),
+(157, 70, 'answer', '', 'action', 1570),
+(158, 70, 'delay_echo', '5000', 'action', 1580),
+(159, 71, 'answer', '', 'action', 1590),
+(160, 71, 'echo', '', 'action', 1600),
+(161, 72, 'answer', '', 'action', 1610),
+(162, 72, 'playback', 'tone_stream://%(10000,0,1004);loops=-1', 'action', 1620),
+(163, 73, 'answer', '', 'action', 1630),
+(164, 73, 'playback', 'tone_stream://path=${base_dir}/conf/tetris.ttml;loops=10', 'action', 1640),
+(165, 75, 'answer', '', 'action', 1650),
+(166, 75, 'execute_extension', 'is_secure XML features', 'action', 1660),
+(167, 75, 'playback', '$${hold_music}', 'action', 1670),
+(168, 75, 'answer', '', 'anti-action', 1680),
+(169, 75, 'playback', '$${hold_music}', 'anti-action', 1690);
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dialplan_condition`
+--
+
+CREATE TABLE IF NOT EXISTS `dialplan_condition` (
+ `condition_id` int(11) NOT NULL auto_increment,
+ `extension_id` int(11) NOT NULL,
+ `field` varchar(1238) NOT NULL,
+ `expression` varchar(128) NOT NULL,
+ `weight` int(11) NOT NULL,
+ PRIMARY KEY (`condition_id`)
+) TYPE=MyISAM AUTO_INCREMENT=76 ;
+
+--
+-- Dumping data for table `dialplan_condition`
+--
+
+INSERT INTO `dialplan_condition` (`condition_id`, `extension_id`, `field`, `expression`, `weight`) VALUES
+(1, 1, '$${unroll_loops}', '^true$', 10),
+(2, 1, '${sip_looped_call}', '^true$', 20),
+(3, 2, '${domain_name}', '^$', 30),
+(4, 2, 'source', 'mod_sofia', 40),
+(5, 2, '${sip_auth_realm}', '^$', 50),
+(6, 3, '${domain_name}', '^$', 60),
+(7, 3, 'source', 'mod_openzap', 70),
+(8, 4, '${strftime(%w)}', '^([1-5])$', 80),
+(9, 4, '${strftime(%H%M)}', '^((09|1[0-7])[0-5][0-9]|1800)$', 90),
+(10, 5, 'destination_number', '^886$', 100),
+(11, 6, 'destination_number', '^\\*8$', 110),
+(12, 7, 'destination_number', '^\\*\\*(\\d+)$', 120),
+(13, 8, 'destination_number', '^870$', 130),
+(14, 9, '${network_addr}', '^$', 140),
+(15, 9, '${numbering_plan}', '^$', 150),
+(16, 9, '${call_debug}', '^true$', 160),
+(17, 9, '${sip_has_crypto}', '^(AES_CM_128_HMAC_SHA1_32|AES_CM_128_HMAC_SHA1_80)$', 170),
+(18, 9, '', '', 180),
+(19, 10, 'destination_number', '^9001$', 190),
+(20, 11, 'destination_number', '^9000$', 200),
+(21, 12, 'destination_number', '^88(.*)$|^\\*0(.*)$', 210),
+(22, 13, 'destination_number', '^779$', 220),
+(23, 14, 'destination_number', '^\\*69$|^869$|^lcr$', 230),
+(24, 15, 'destination_number', '^80(\\d{2})$', 240),
+(25, 16, 'destination_number', '^81(\\d{2})$', 250),
+(26, 17, 'destination_number', '^82(\\d{2})$', 260),
+(27, 18, 'destination_number', '^83(\\d{2})$', 270),
+(28, 19, 'destination_number', '^8(10[01][0-9])$', 280),
+(29, 20, 'destination_number', '^(20[01][0-9])$', 290),
+(30, 20, 'destination_number', '^${caller_id_number}$', 300),
+(31, 21, 'destination_number', '^3000$', 310),
+(32, 22, 'destination_number', '^3001$', 320),
+(33, 23, 'destination_number', '^3002$', 330),
+(34, 24, 'destination_number', '^operator$|^0$', 340),
+(35, 25, 'destination_number', '^vmain|4000$', 350),
+(36, 26, 'destination_number', '^sip:(.*)$', 360),
+(37, 27, 'destination_number', '^(30\\d{2})$', 370),
+(38, 28, 'destination_number', '^(31\\d{2})$', 380),
+(39, 29, 'destination_number', '^(32\\d{2})$', 390),
+(40, 30, 'destination_number', '^(33\\d{2})$', 400),
+(41, 31, 'destination_number', '^9(888|1616|3232)$', 410),
+(42, 32, 'destination_number', '^0911$', 420),
+(43, 33, 'destination_number', '^0912$', 430),
+(44, 34, 'destination_number', '^0913$', 440),
+(45, 35, 'destination_number', '^5000$', 450),
+(46, 36, 'destination_number', '^5001$', 460),
+(47, 37, 'destination_number', '^pagegroup$|^7243', 470),
+(48, 38, 'destination_number', '^5900$', 480),
+(49, 39, 'destination_number', '^5901$', 490),
+(50, 40, 'source', 'mod_sofia', 500),
+(51, 40, 'destination_number', 'park\\+(\\d+)', 510),
+(52, 41, 'source', 'mod_sofia', 520),
+(53, 41, 'destination_number', '^parking$', 530),
+(54, 41, '${sip_to_params}', 'fifo\\=(\\d+)', 540),
+(55, 42, 'source', 'mod_sofia', 550),
+(56, 42, 'destination_number', 'callpark', 560),
+(57, 42, '${sip_refer_to}', '', 570),
+(58, 43, 'source', 'mod_sofia', 580),
+(59, 43, 'destination_number', 'pickup', 590),
+(60, 43, '${sip_to_params}', 'orbit\\=(\\d+)', 600),
+(61, 44, 'destination_number', '^wait$', 610),
+(62, 45, 'destination_number', '^9980$', 620),
+(63, 46, 'destination_number', '^9981$', 630),
+(64, 47, 'destination_number', '^9982$', 640),
+(65, 48, 'destination_number', '^9983$', 650),
+(66, 49, 'destination_number', '^9984$', 660),
+(67, 50, 'destination_number', '^9992$', 670),
+(68, 51, 'destination_number', '^9993$', 680),
+(69, 52, 'destination_number', '^9994$', 690),
+(70, 53, 'destination_number', '^9995$', 700),
+(71, 54, 'destination_number', '^9996$', 710),
+(72, 55, 'destination_number', '^9997$', 720),
+(73, 56, 'destination_number', '^9998$', 730),
+(74, 57, 'destination_number', '^9999$', 740),
+(75, 57, '${sip_has_crypto}', '^(AES_CM_128_HMAC_SHA1_32|AES_CM_128_HMAC_SHA1_80)$', 750);
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dialplan_context`
+--
+
+CREATE TABLE IF NOT EXISTS `dialplan_context` (
+ `context_id` int(11) NOT NULL auto_increment,
+ `dialplan_id` int(11) NOT NULL,
`context` varchar(64) NOT NULL,
- `extension` varchar(64) NOT NULL,
- `condition_field` varchar(64) NOT NULL,
- `condition_expression` varchar(64) NOT NULL,
- `application_name` varchar(64) NOT NULL,
- `application_data` text,
`weight` int(11) NOT NULL,
- `type` varchar(16) NOT NULL default 'action',
- `ext_continue` smallint(1) NOT NULL default '0',
- `global_weight` int(11) NOT NULL default '10000',
- `cond_break` varchar(8) default NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+ PRIMARY KEY (`context_id`)
+) TYPE=InnoDB AUTO_INCREMENT=3 ;
--
--- Dumping data for table `dialplan`
+-- Dumping data for table `dialplan_context`
+--
+
+INSERT INTO `dialplan_context` (`context_id`, `dialplan_id`, `context`, `weight`) VALUES
+(1, 1, 'default', 10),
+(2, 1, 'public', 20);
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dialplan_extension`
--
-LOCK TABLES `dialplan` WRITE;
-/*!40000 ALTER TABLE `dialplan` DISABLE KEYS */;
-INSERT INTO `dialplan` VALUES (113,'public','public_extensions','destination_number','^(10[01][0-9])$','transfer','$1 XML default',1,'action',0,200,''),(114,'public','public_did','destination_number','^(5551212)$','transfer','$1 XML default',1,'action',0,300,''),(271,'US-Numbering-Plan','US_International','destination_number','^011(\\d+)$','set','continue_on_fail=true',1,'action',0,200,''),(272,'US-Numbering-Plan','US_International','destination_number','^011(\\d+)$','set','hangup_after_bridge=true',2,'action',0,200,''),(273,'US-Numbering-Plan','US_International','destination_number','^011(\\d+)$','enum','1$1',3,'action',0,200,''),(274,'US-Numbering-Plan','US_International','destination_number','^011(\\d+)$','bridge','${enum_auto_route}',4,'action',0,200,''),(275,'US-Numbering-Plan','US_International','destination_number','^011(\\d+)$','bridge','sofia/gateway/${default_gateway}/011$1',5,'action',0,200,''),(276,'US-Numbering-Plan','US_LD','destination_number','^1?([2-9]\\d{2}[2-9]\\d{6})$','set','continue_on_fail=true',1,'action',0,300,''),(277,'US-Numbering-Plan','US_LD','destination_number','^1?([2-9]\\d{2}[2-9]\\d{6})$','set','hangup_after_bridge=true',2,'action',0,300,''),(278,'US-Numbering-Plan','US_LD','destination_number','^1?([2-9]\\d{2}[2-9]\\d{6})$','enum','1$1',3,'action',0,300,''),(279,'US-Numbering-Plan','US_LD','destination_number','^1?([2-9]\\d{2}[2-9]\\d{6})$','bridge','${enum_auto_route}',4,'action',0,300,''),(280,'US-Numbering-Plan','US_LD','destination_number','^1?([2-9]\\d{2}[2-9]\\d{6})$','bridge','sofia/gateway/${default_gateway}/1$1',5,'action',0,300,''),(281,'US-Numbering-Plan','US_Local','${default_area_code}','\\d{3}','say','you must dial the area code to call this destination',1,'anti-action',0,400,'on-true'),(282,'US-Numbering-Plan','US_Local','destination_number','^([2-9]\\d{6})$','set','continue_on_fail=true',1,'action',0,400,''),(283,'US-Numbering-Plan','US_Local','destination_number','^([2-9]\\d{6})$','set','hangup_after_bridge=true',2,'action',0,400,''),(284,'US-Numbering-Plan','US_Local','destination_number','^([2-9]\\d{6})$','enum','1$1',3,'action',0,400,''),(285,'US-Numbering-Plan','US_Local','destination_number','^([2-9]\\d{6})$','bridge','${enum_auto_route}',4,'action',0,400,''),(286,'US-Numbering-Plan','US_Local','destination_number','^([2-9]\\d{6})$','bridge','sofia/gateway/${default_gateway}/1${default_area_code}$1',5,'action',0,400,''),(287,'US-Numbering-Plan','FCC_Services','^([4689]11)$','','bridge','sofia/gateway/${default_gateway}/$1',1,'action',0,500,''),(333,'default','intercept','destination_number','^886$','answer','',1,'action',0,200,''),(334,'default','intercept','destination_number','^886$','intercept','${db(select/last_dial/global)}',2,'action',0,200,''),(335,'default','intercept','destination_number','^886$','sleep','2000',3,'action',0,200,''),(336,'default','intercept-ext','destination_number','^\\*\\*(\\d+)$','answer','',1,'action',0,300,''),(337,'default','intercept-ext','destination_number','^\\*\\*(\\d+)$','intercept','${db(select/last_dial_ext/$1)}',2,'action',0,300,''),(338,'default','intercept-ext','destination_number','^\\*\\*(\\d+)$','sleep','2000',3,'action',0,300,''),(339,'default','redial','destination_number','^870$','transfer','${db(select/last_dial/${caller_id_number})}',1,'action',0,400,''),(340,'default','global','${network_addr}','','set','use_profile=${cond(${is_lan_addr($${local_ip_v4})} == yes ? nat : default)}',1,'action',1,500,''),(341,'default','global','${network_addr}','','set','use_profile=${cond(${is_lan_addr(${network_addr})} == yes ? nat : default)}',2,'anti-action',1,500,''),(342,'default','global','${numbering_plan}','','set_user','default@${domain}',1,'action',1,500,''),(343,'default','global','','','info','',1,'action',1,500,''),(344,'default','global','','','db','insert/spymap/${caller_id_number}/${uuid}',2,'action',1,500,''),(345,'default','global','','','db','insert/last_dial/${caller_id_number}/${destination_number}',3,'action',1,500,''),(346,'default','global','','','db','insert/last_dial/global/${uuid}',4,'action',1,500,''),(347,'default','eavesdrop','destination_number','^88(.*)$|^\\*0(.*)$','answer','',1,'action',0,600,''),(348,'default','eavesdrop','destination_number','^88(.*)$|^\\*0(.*)$','eavesdrop','${db(select/spymap/$1)}',2,'action',0,600,''),(349,'default','call_return','destination_number','^\\*69$|^869$','transfer','${db(select/call_return/${caller_id_number})}',1,'action',0,700,''),(350,'default','del-group','destination_number','^80(\\d{2})$','answer','',1,'action',0,800,''),(351,'default','del-group','destination_number','^80(\\d{2})$','group','delete:$1:${sofia_contact(${sip_from_user}@${domain})}',2,'action',0,800,''),(352,'default','del-group','destination_number','^80(\\d{2})$','gentones','%(1000, 0, 320)',3,'action',0,800,''),(353,'default','add-group','destination_number','^81(\\d{2})$','answer','',1,'action',0,900,''),(354,'default','add-group','destination_number','^81(\\d{2})$','group','insert:$1:${sofia_contact(${sip_from_user}@${domain})}',2,'action',0,900,''),(355,'default','add-group','destination_number','^81(\\d{2})$','gentones','%(1000, 0, 640)',3,'action',0,900,''),(356,'default','call-group-simo','destination_number','^82(\\d{2})$','bridge','${group(call:$1)}',1,'action',0,1000,''),(357,'default','call-group-order','destination_number','^83(\\d{2})$','set','call_timeout=10',1,'action',0,1100,''),(358,'default','call-group-order','destination_number','^83(\\d{2})$','bridge','${group(call:$1:order)}',2,'action',0,1100,''),(359,'default','Local_Extension','destination_number','^(10[01][0-9])$','set','dialed_ext=$1',1,'action',0,1200,'on-true'),(360,'default','Local_Extension','destination_number','^${caller_id_number}$','set','voicemail_authorized=${sip_authorized}',1,'action',0,1200,''),(361,'default','Local_Extension','destination_number','^${caller_id_number}$','answer','',2,'action',0,1200,''),(362,'default','Local_Extension','destination_number','^${caller_id_number}$','sleep','1000',3,'action',0,1200,''),(363,'default','Local_Extension','destination_number','^${caller_id_number}$','voicemail','check default $${domain} ${dialed_ext}',4,'action',0,1200,''),(364,'default','Local_Extension','destination_number','^${caller_id_number}$','ring_ready','',5,'anti-action',0,1200,''),(365,'default','Local_Extension','destination_number','^${caller_id_number}$','set','call_timeout=130',6,'anti-action',0,1200,''),(366,'default','Local_Extension','destination_number','^${caller_id_number}$','set','hangup_after_bridge=true',7,'anti-action',0,1200,''),(367,'default','Local_Extension','destination_number','^${caller_id_number}$','set','left_hanging_extension=5900',8,'anti-action',0,1200,''),(368,'default','Local_Extension','destination_number','^${caller_id_number}$','set','continue_on_fail=true',9,'anti-action',0,1200,''),(369,'default','Local_Extension','destination_number','^${caller_id_number}$','db','insert/call_return/${dialed_ext}/${caller_id_number}',10,'anti-action',0,1200,''),(370,'default','Local_Extension','destination_number','^${caller_id_number}$','db','insert/last_dial_ext/${dialed_ext}/${uuid}',11,'anti-action',0,1200,''),(371,'default','Local_Extension','destination_number','^${caller_id_number}$','bridge','{left_hanging_extension=5900,transfer_fallback_extension=${dialed_ext}}USER/${dialed_ext}@$${domain}',12,'anti-action',0,1200,''),(372,'default','Local_Extension','destination_number','^${caller_id_number}$','answer','',13,'anti-action',0,1200,''),(373,'default','Local_Extension','destination_number','^${caller_id_number}$','sleep','1000',14,'anti-action',0,1200,''),(374,'default','Local_Extension','destination_number','^${caller_id_number}$','voicemail','default $${domain} ${dialed_ext}',15,'anti-action',0,1200,''),(375,'default','sip_uri','destination_number','^sip:(.*)$','bridge','sofia/${use_profile}/$1',1,'action',0,1300,''),(376,'default','conferences','destination_number','^(3\\d{3})$','conference','$1@default',1,'action',0,1400,''),(377,'default','freeswitch_public_conf_via_sip','destination_number','^9(888|1616)$','bridge','sofia/${use_profile}/$1(a)conference.freeswitch.org',1,'action',0,1500,''),(378,'default','ivr_demo','destination_number','5000','ivr','demo',1,'action',0,1600,''),(379,'default','park','destination_number','^(590[0-9])$','fifo','$1@$${domain} in undef $${moh_uri}',1,'action',0,1700,''),(380,'default','unpark','destination_number','^\\*{0,2}park\\+(590[0-9])$','answer','',1,'action',0,1800,''),(381,'default','unpark','destination_number','^\\*{0,2}park\\+(590[0-9])$','fifo','$1@$${domain} out nowait',2,'action',0,1800,''),(382,'default','hold_music','destination_number','^9999$','answer','',1,'action',0,1900,''),(383,'default','hold_music','destination_number','^9999$','playback','$${moh_uri}',2,'action',0,1900,''),(384,'default','enum','destination_number','^(.*)$','transfer','$1 enum',1,'action',0,2000,'');
-/*!40000 ALTER TABLE `dialplan` ENABLE KEYS */;
-UNLOCK TABLES;
+CREATE TABLE IF NOT EXISTS `dialplan_extension` (
+ `extension_id` int(11) NOT NULL auto_increment,
+ `context_id` int(11) NOT NULL,
+ `name` varchar(128) NOT NULL,
+ `continue` varchar(32) NOT NULL,
+ `weight` int(11) NOT NULL,
+ PRIMARY KEY (`extension_id`)
+) TYPE=InnoDB AUTO_INCREMENT=58 ;
+
+--
+-- Dumping data for table `dialplan_extension`
+--
+
+INSERT INTO `dialplan_extension` (`extension_id`, `context_id`, `name`, `continue`, `weight`) VALUES
+(1, 1, 'unloop', '', 10),
+(2, 1, 'set_domain', 'true', 20),
+(3, 1, 'set_domain_openzap', 'true', 30),
+(4, 1, 'tod_example', 'true', 40),
+(5, 1, 'global-intercept', '', 50),
+(6, 1, 'group-intercept', '', 60),
+(7, 1, 'intercept-ext', '', 70),
+(8, 1, 'redial', '', 80),
+(9, 1, 'global', 'true', 90),
+(10, 1, 'snom-demo-2', '', 100),
+(11, 1, 'snom-demo-1', '', 110),
+(12, 1, 'eavesdrop', '', 120),
+(13, 1, 'eavesdrop', '', 130),
+(14, 1, 'call_return', '', 140),
+(15, 1, 'del-group', '', 150),
+(16, 1, 'add-group', '', 160),
+(17, 1, 'call-group-simo', '', 170),
+(18, 1, 'call-group-order', '', 180),
+(19, 1, 'extension-intercom', '', 190),
+(20, 1, 'Local_Extension', '', 200),
+(21, 1, 'group_dial_sales', '', 210),
+(22, 1, 'group_dial_support', '', 220),
+(23, 1, 'group_dial_billing', '', 230),
+(24, 1, 'operator', '', 240),
+(25, 1, 'vmain', '', 250),
+(26, 1, 'sip_uri', '', 260),
+(27, 1, 'nb_conferences', '', 270),
+(28, 1, 'wb_conferences', '', 280),
+(29, 1, 'uwb_conferences', '', 290),
+(30, 1, 'cdquality_conferences', '', 300),
+(31, 1, 'freeswitch_public_conf_via_sip', '', 310),
+(32, 1, 'mad_boss_intercom', '', 320),
+(33, 1, 'mad_boss_intercom', '', 330),
+(34, 1, 'mad_boss', '', 340),
+(35, 1, 'ivr_demo', '', 350),
+(36, 1, 'dyanmic conference', '', 360),
+(37, 1, 'rtp_multicast_page', '', 370),
+(38, 1, 'park', '', 380),
+(39, 1, 'unpark', '', 390),
+(40, 1, 'park', '', 400),
+(41, 1, 'unpark', '', 410),
+(42, 1, 'park', '', 420),
+(43, 1, 'unpark', '', 430),
+(44, 1, 'wait', '', 440),
+(45, 1, 'ringback_180', '', 450),
+(46, 1, 'ringback_183_uk_ring', '', 460),
+(47, 1, 'ringback_183_music_ring', '', 470),
+(48, 1, 'ringback_post_answer_uk_ring', '', 480),
+(49, 1, 'ringback_post_answer_music', '', 490),
+(50, 1, 'show_info', '', 500),
+(51, 1, 'video_record', '', 510),
+(52, 1, 'video_playback', '', 520),
+(53, 1, 'delay_echo', '', 530),
+(54, 1, 'echo', '', 540),
+(55, 1, 'milliwatt', '', 550),
+(56, 2, 'tone_stream', '', 560),
+(57, 2, 'hold_music', '', 570);
+
+-- --------------------------------------------------------
--
-- Table structure for table `dialplan_special`
--
-DROP TABLE IF EXISTS `dialplan_special`;
-CREATE TABLE `dialplan_special` (
+CREATE TABLE IF NOT EXISTS `dialplan_special` (
`id` int(11) NOT NULL auto_increment,
`context` varchar(255) NOT NULL,
`class_file` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_context` (`context`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `dialplan_special`
--
-LOCK TABLES `dialplan_special` WRITE;
-/*!40000 ALTER TABLE `dialplan_special` DISABLE KEYS */;
-INSERT INTO `dialplan_special` VALUES (1,'lcr','dialplans/lcr.php'),(2,'lcr2','some/php/file.php');
-/*!40000 ALTER TABLE `dialplan_special` ENABLE KEYS */;
-UNLOCK TABLES;
+
+-- --------------------------------------------------------
--
--- Table structure for table `dingaling_profile_params`
+-- Table structure for table `dingaling_profiles`
--
-DROP TABLE IF EXISTS `dingaling_profile_params`;
-CREATE TABLE `dingaling_profile_params` (
+CREATE TABLE IF NOT EXISTS `dingaling_profiles` (
`id` int(10) unsigned NOT NULL auto_increment,
- `dingaling_id` int(10) unsigned NOT NULL,
- `param_name` varchar(64) NOT NULL,
- `param_value` varchar(64) NOT NULL,
+ `profile_name` varchar(64) NOT NULL,
+ `type` varchar(64) NOT NULL,
PRIMARY KEY (`id`),
- UNIQUE KEY `unique_type_name` (`dingaling_id`,`param_name`),
- CONSTRAINT `dingaling_profile` FOREIGN KEY (`dingaling_id`) REFERENCES `dingaling_profiles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+ UNIQUE KEY `unique_name` (`profile_name`)
+) TYPE=InnoDB AUTO_INCREMENT=2 ;
--
--- Dumping data for table `dingaling_profile_params`
+-- Dumping data for table `dingaling_profiles`
--
-LOCK TABLES `dingaling_profile_params` WRITE;
-/*!40000 ALTER TABLE `dingaling_profile_params` DISABLE KEYS */;
-INSERT INTO `dingaling_profile_params` VALUES (1,1,'password','secret'),(2,1,'dialplan','XML,enum'),(3,1,'server','example.org'),(4,1,'name','fs.example.org');
-/*!40000 ALTER TABLE `dingaling_profile_params` ENABLE KEYS */;
-UNLOCK TABLES;
+INSERT INTO `dingaling_profiles` (`id`, `profile_name`, `type`) VALUES
+(1, 'fs.intralanman.servehttp.com', 'component');
+
+-- --------------------------------------------------------
--
--- Table structure for table `dingaling_profiles`
+-- Table structure for table `dingaling_profile_params`
--
-DROP TABLE IF EXISTS `dingaling_profiles`;
-CREATE TABLE `dingaling_profiles` (
+CREATE TABLE IF NOT EXISTS `dingaling_profile_params` (
`id` int(10) unsigned NOT NULL auto_increment,
- `profile_name` varchar(64) NOT NULL,
- `type` varchar(64) NOT NULL,
+ `dingaling_id` int(10) unsigned NOT NULL,
+ `param_name` varchar(64) NOT NULL,
+ `param_value` varchar(64) NOT NULL,
PRIMARY KEY (`id`),
- UNIQUE KEY `unique_name` (`profile_name`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+ UNIQUE KEY `unique_type_name` (`dingaling_id`,`param_name`)
+) TYPE=InnoDB AUTO_INCREMENT=5 ;
--
--- Dumping data for table `dingaling_profiles`
+-- Dumping data for table `dingaling_profile_params`
--
-LOCK TABLES `dingaling_profiles` WRITE;
-/*!40000 ALTER TABLE `dingaling_profiles` DISABLE KEYS */;
-INSERT INTO `dingaling_profiles` VALUES (1,'fs.intralanman.servehttp.com','component');
-/*!40000 ALTER TABLE `dingaling_profiles` ENABLE KEYS */;
-UNLOCK TABLES;
+INSERT INTO `dingaling_profile_params` (`id`, `dingaling_id`, `param_name`, `param_value`) VALUES
+(1, 1, 'password', 'secret'),
+(2, 1, 'dialplan', 'XML,enum'),
+(3, 1, 'server', 'example.org'),
+(4, 1, 'name', 'fs.example.org');
+
+-- --------------------------------------------------------
--
-- Table structure for table `dingaling_settings`
--
-DROP TABLE IF EXISTS `dingaling_settings`;
-CREATE TABLE `dingaling_settings` (
+CREATE TABLE IF NOT EXISTS `dingaling_settings` (
`id` int(10) unsigned NOT NULL auto_increment,
`param_name` varchar(64) NOT NULL,
`param_value` varchar(64) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_param` (`param_name`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=3 ;
--
-- Dumping data for table `dingaling_settings`
--
-LOCK TABLES `dingaling_settings` WRITE;
-/*!40000 ALTER TABLE `dingaling_settings` DISABLE KEYS */;
-INSERT INTO `dingaling_settings` VALUES (1,'debug','0'),(2,'codec-prefs','$${global_codec_prefs}');
-/*!40000 ALTER TABLE `dingaling_settings` ENABLE KEYS */;
-UNLOCK TABLES;
+INSERT INTO `dingaling_settings` (`id`, `param_name`, `param_value`) VALUES
+(1, 'debug', '0'),
+(2, 'codec-prefs', '$${global_codec_prefs}');
+
+-- --------------------------------------------------------
--
-- Table structure for table `directory`
--
-DROP TABLE IF EXISTS `directory`;
-CREATE TABLE `directory` (
+CREATE TABLE IF NOT EXISTS `directory` (
`id` int(11) NOT NULL auto_increment,
`username` varchar(255) NOT NULL,
- `mailbox` varchar(255) NOT NULL,
`domain` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) TYPE=MyISAM AUTO_INCREMENT=12 ;
--
-- Dumping data for table `directory`
--
-LOCK TABLES `directory` WRITE;
-/*!40000 ALTER TABLE `directory` DISABLE KEYS */;
-INSERT INTO `directory` VALUES (1,'1000','','example.com'),(2,'1001','','example.org'),(3,'1002','','example.net'),(5,'1003','','example.info'),(6,'1004','','example.com'),(7,'1005','','example.org'),(8,'1006','','example.net'),(9,'1007','','example.info'),(10,'1008','','$${domain}'),(11,'1009','','$${local_ip_v4}'),(12,'tester','1000','$${domain}');
-/*!40000 ALTER TABLE `directory` ENABLE KEYS */;
-UNLOCK TABLES;
+INSERT INTO `directory` (`id`, `username`, `domain`) VALUES
+(1, '1000', 'example.com'),
+(2, '1001', 'example.org'),
+(3, '1002', 'example.net'),
+(5, '1003', 'example.info'),
+(6, '1004', 'example.com'),
+(7, '1005', 'example.org'),
+(8, '1006', 'example.net'),
+(9, '1007', 'example.info'),
+(10, '2000', 'default'),
+(11, '1009', '$${local_ip_v4}');
+
+-- --------------------------------------------------------
--
-- Table structure for table `directory_domains`
--
-DROP TABLE IF EXISTS `directory_domains`;
-CREATE TABLE `directory_domains` (
+CREATE TABLE IF NOT EXISTS `directory_domains` (
`id` int(10) unsigned NOT NULL auto_increment,
`domain_name` varchar(128) NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=3 ;
--
-- Dumping data for table `directory_domains`
--
-LOCK TABLES `directory_domains` WRITE;
-/*!40000 ALTER TABLE `directory_domains` DISABLE KEYS */;
-INSERT INTO `directory_domains` VALUES (1,'freeswitch.org'),(2,'sofaswitch.org');
-/*!40000 ALTER TABLE `directory_domains` ENABLE KEYS */;
-UNLOCK TABLES;
+INSERT INTO `directory_domains` (`id`, `domain_name`) VALUES
+(1, 'freeswitch.org'),
+(2, 'sofaswitch.org');
+
+-- --------------------------------------------------------
--
--- Table structure for table `directory_gateway_params`
+-- Table structure for table `directory_gateways`
--
-DROP TABLE IF EXISTS `directory_gateway_params`;
-CREATE TABLE `directory_gateway_params` (
+CREATE TABLE IF NOT EXISTS `directory_gateways` (
`id` int(10) unsigned NOT NULL auto_increment,
- `d_gw_id` int(10) unsigned NOT NULL,
- `param_name` varchar(64) NOT NULL,
- `param_value` varchar(64) NOT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `unique_gw_param` (`d_gw_id`,`param_name`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+ `directory_id` int(10) unsigned NOT NULL,
+ `gateway_name` varchar(128) NOT NULL,
+ PRIMARY KEY (`id`)
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
--
--- Dumping data for table `directory_gateway_params`
+-- Dumping data for table `directory_gateways`
--
-LOCK TABLES `directory_gateway_params` WRITE;
-/*!40000 ALTER TABLE `directory_gateway_params` DISABLE KEYS */;
-/*!40000 ALTER TABLE `directory_gateway_params` ENABLE KEYS */;
-UNLOCK TABLES;
+
+-- --------------------------------------------------------
--
--- Table structure for table `directory_gateways`
+-- Table structure for table `directory_gateway_params`
--
-DROP TABLE IF EXISTS `directory_gateways`;
-CREATE TABLE `directory_gateways` (
+CREATE TABLE IF NOT EXISTS `directory_gateway_params` (
`id` int(10) unsigned NOT NULL auto_increment,
- `directory_id` int(10) unsigned NOT NULL,
- `gateway_name` varchar(128) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+ `d_gw_id` int(10) unsigned NOT NULL,
+ `param_name` varchar(64) NOT NULL,
+ `param_value` varchar(64) NOT NULL,
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `unique_gw_param` (`d_gw_id`,`param_name`)
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
--
--- Dumping data for table `directory_gateways`
+-- Dumping data for table `directory_gateway_params`
--
-LOCK TABLES `directory_gateways` WRITE;
-/*!40000 ALTER TABLE `directory_gateways` DISABLE KEYS */;
-/*!40000 ALTER TABLE `directory_gateways` ENABLE KEYS */;
-UNLOCK TABLES;
+
+-- --------------------------------------------------------
--
-- Table structure for table `directory_global_params`
--
-DROP TABLE IF EXISTS `directory_global_params`;
-CREATE TABLE `directory_global_params` (
+CREATE TABLE IF NOT EXISTS `directory_global_params` (
`id` int(10) unsigned NOT NULL auto_increment,
`param_name` varchar(64) NOT NULL,
`param_value` varchar(128) NOT NULL,
`domain_id` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=2 ;
--
-- Dumping data for table `directory_global_params`
--
-LOCK TABLES `directory_global_params` WRITE;
-/*!40000 ALTER TABLE `directory_global_params` DISABLE KEYS */;
-INSERT INTO `directory_global_params` VALUES (1,'default_gateway','errors',1);
-/*!40000 ALTER TABLE `directory_global_params` ENABLE KEYS */;
-UNLOCK TABLES;
+INSERT INTO `directory_global_params` (`id`, `param_name`, `param_value`, `domain_id`) VALUES
+(1, 'default_gateway', 'errors', 1);
+
+-- --------------------------------------------------------
--
-- Table structure for table `directory_global_vars`
--
-DROP TABLE IF EXISTS `directory_global_vars`;
-CREATE TABLE `directory_global_vars` (
+CREATE TABLE IF NOT EXISTS `directory_global_vars` (
`id` int(10) unsigned NOT NULL auto_increment,
`var_name` varchar(64) NOT NULL,
`var_value` varchar(128) NOT NULL,
`domain_id` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `directory_global_vars`
--
-LOCK TABLES `directory_global_vars` WRITE;
-/*!40000 ALTER TABLE `directory_global_vars` DISABLE KEYS */;
-/*!40000 ALTER TABLE `directory_global_vars` ENABLE KEYS */;
-UNLOCK TABLES;
+
+-- --------------------------------------------------------
--
-- Table structure for table `directory_params`
--
-DROP TABLE IF EXISTS `directory_params`;
-CREATE TABLE `directory_params` (
+CREATE TABLE IF NOT EXISTS `directory_params` (
`id` int(11) NOT NULL auto_increment,
`directory_id` int(11) default NULL,
`param_name` varchar(255) default NULL,
`param_value` varchar(255) default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) TYPE=InnoDB AUTO_INCREMENT=23 ;
--
-- Dumping data for table `directory_params`
--
-LOCK TABLES `directory_params` WRITE;
-/*!40000 ALTER TABLE `directory_params` DISABLE KEYS */;
-INSERT INTO `directory_params` VALUES (1,1,'password','1234'),(2,1,'vm-password','861000'),(3,2,'password','1234'),(4,2,'vm-password','861001'),(7,5,'password','1234'),(8,6,'password','1234'),(9,7,'password','1234'),(10,8,'password','1234'),(11,9,'password','1234'),(12,10,'password','1234'),(13,11,'password','1234'),(14,3,'vm-password','861002'),(15,3,'password','1234'),(16,11,'vm-password','861009'),(17,10,'vm-password','861008'),(18,9,'vm-password','861007'),(19,8,'vm-password','861006'),(20,7,'vm-password','861005'),(21,6,'vm-password','861004'),(22,5,'vm-password','861003');
-/*!40000 ALTER TABLE `directory_params` ENABLE KEYS */;
-UNLOCK TABLES;
+INSERT INTO `directory_params` (`id`, `directory_id`, `param_name`, `param_value`) VALUES
+(1, 1, 'password', '1234'),
+(2, 1, 'vm-password', '861000'),
+(3, 2, 'password', '1234'),
+(4, 2, 'vm-password', '861001'),
+(7, 5, 'password', '1234'),
+(8, 6, 'password', '1234'),
+(9, 7, 'password', '1234'),
+(10, 8, 'password', '123456'),
+(11, 9, 'password', '1234'),
+(12, 10, 'password', '123456'),
+(13, 11, 'password', '1234'),
+(14, 3, 'vm-password', '861002'),
+(15, 3, 'password', '1234'),
+(16, 11, 'vm-password', '861009'),
+(17, 10, 'vm-password', '1234'),
+(18, 9, 'vm-password', '861007'),
+(19, 8, 'vm-password', '861006'),
+(20, 7, 'vm-password', '861005'),
+(21, 6, 'vm-password', '861004'),
+(22, 5, 'vm-password', '861003');
+
+-- --------------------------------------------------------
--
-- Table structure for table `directory_vars`
--
-DROP TABLE IF EXISTS `directory_vars`;
-CREATE TABLE `directory_vars` (
+CREATE TABLE IF NOT EXISTS `directory_vars` (
`id` int(11) NOT NULL auto_increment,
`directory_id` int(11) default NULL,
`var_name` varchar(255) default NULL,
`var_value` varchar(255) default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) TYPE=MyISAM AUTO_INCREMENT=6 ;
--
-- Dumping data for table `directory_vars`
--
-LOCK TABLES `directory_vars` WRITE;
-/*!40000 ALTER TABLE `directory_vars` DISABLE KEYS */;
-INSERT INTO `directory_vars` VALUES (1,1,'numbering_plan','US'),(2,2,'numbering_plan','US'),(3,3,'numbering_plan','AU'),(4,5,'numbering_plan','US'),(5,5,'area_code','434');
-/*!40000 ALTER TABLE `directory_vars` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `group_data`
---
-
-DROP TABLE IF EXISTS `group_data`;
-CREATE TABLE `group_data` (
- `hostname` varchar(255) default NULL,
- `groupname` varchar(255) default NULL,
- `url` varchar(255) default NULL
-) ENGINE=InnoDB;
-
---
--- Dumping data for table `group_data`
---
+INSERT INTO `directory_vars` (`id`, `directory_id`, `var_name`, `var_value`) VALUES
+(1, 1, 'numbering_plan', 'US'),
+(2, 2, 'numbering_plan', 'US'),
+(3, 3, 'numbering_plan', 'AU'),
+(4, 5, 'numbering_plan', 'US'),
+(5, 5, 'area_code', '434');
-LOCK TABLES `group_data` WRITE;
-/*!40000 ALTER TABLE `group_data` DISABLE KEYS */;
-/*!40000 ALTER TABLE `group_data` ENABLE KEYS */;
-UNLOCK TABLES;
+-- --------------------------------------------------------
--
-- Table structure for table `iax_conf`
--
-DROP TABLE IF EXISTS `iax_conf`;
-CREATE TABLE `iax_conf` (
+CREATE TABLE IF NOT EXISTS `iax_conf` (
`id` int(11) NOT NULL auto_increment,
`profile_name` varchar(255) default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=4 ;
--
-- Dumping data for table `iax_conf`
--
-LOCK TABLES `iax_conf` WRITE;
-/*!40000 ALTER TABLE `iax_conf` DISABLE KEYS */;
-INSERT INTO `iax_conf` VALUES (3,'test_profile');
-/*!40000 ALTER TABLE `iax_conf` ENABLE KEYS */;
-UNLOCK TABLES;
+INSERT INTO `iax_conf` (`id`, `profile_name`) VALUES
+(3, 'test_profile');
+
+-- --------------------------------------------------------
--
-- Table structure for table `iax_settings`
--
-DROP TABLE IF EXISTS `iax_settings`;
-CREATE TABLE `iax_settings` (
+CREATE TABLE IF NOT EXISTS `iax_settings` (
`id` int(11) NOT NULL auto_increment,
`iax_id` int(11) default NULL,
`param_name` varchar(255) default NULL,
`param_value` varchar(255) default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=43 ;
--
-- Dumping data for table `iax_settings`
--
-LOCK TABLES `iax_settings` WRITE;
-/*!40000 ALTER TABLE `iax_settings` DISABLE KEYS */;
-INSERT INTO `iax_settings` VALUES (35,3,'debug','1'),(36,3,'ip','$${local_ip_v4}'),(37,3,'port','4569'),(38,3,'context','public'),(39,3,'dialplan','enum,XML'),(40,3,'codec-prefs','$${global_codec_prefs}'),(41,3,'codec-master','us'),(42,3,'codec-rate','8');
-/*!40000 ALTER TABLE `iax_settings` ENABLE KEYS */;
-UNLOCK TABLES;
+INSERT INTO `iax_settings` (`id`, `iax_id`, `param_name`, `param_value`) VALUES
+(35, 3, 'debug', '1'),
+(36, 3, 'ip', '$${local_ip_v4}'),
+(37, 3, 'port', '4569'),
+(38, 3, 'context', 'public'),
+(39, 3, 'dialplan', 'enum,XML'),
+(40, 3, 'codec-prefs', '$${global_codec_prefs}'),
+(41, 3, 'codec-master', 'us'),
+(42, 3, 'codec-rate', '8');
+
+-- --------------------------------------------------------
--
-- Table structure for table `ivr_conf`
--
-DROP TABLE IF EXISTS `ivr_conf`;
-CREATE TABLE `ivr_conf` (
+CREATE TABLE IF NOT EXISTS `ivr_conf` (
`id` int(10) unsigned NOT NULL auto_increment,
`name` varchar(64) NOT NULL,
`greet_long` varchar(255) NOT NULL,
@@ -537,186 +898,204 @@
`tts_voice` varchar(64) default NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_name` (`name`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=4 ;
--
-- Dumping data for table `ivr_conf`
--
-LOCK TABLES `ivr_conf` WRITE;
-/*!40000 ALTER TABLE `ivr_conf` DISABLE KEYS */;
-INSERT INTO `ivr_conf` VALUES (1,'demo','soundfiles/ivr/demo/greet-long.wav','soundfiles/ivr/demo/greet-short.wav','soundfiles/ivr/invalid.wav','soundfiles/ivr/exit.wav',3,5,'cepstral','allison'),(2,'demo2','soundfiles/ivr/demo2/greet-long.wav','soundfiles/ivr/demo2/greet-short.wav','soundfiles/ivr/invalid.wav','soundfiles/ivr/exit.wav',3,5,NULL,NULL),(3,'menu8','soundfiles/ivr/menu8/greet-long.wav','soundfiles/ivr/menu8/greet-short.wav','soundfiles/ivr/menu8/invalid.wav','soundfiles/ivr/menu8/exit.wav',3,5,NULL,NULL);
-/*!40000 ALTER TABLE `ivr_conf` ENABLE KEYS */;
-UNLOCK TABLES;
+INSERT INTO `ivr_conf` (`id`, `name`, `greet_long`, `greet_short`, `invalid_sound`, `exit_sound`, `max_failures`, `timeout`, `tts_engine`, `tts_voice`) VALUES
+(1, 'demo', 'soundfiles/ivr/demo/greet-long.wav', 'soundfiles/ivr/demo/greet-short.wav', 'soundfiles/ivr/invalid.wav', 'soundfiles/ivr/exit.wav', 3, 5, 'cepstral', 'allison'),
+(2, 'demo2', 'soundfiles/ivr/demo2/greet-long.wav', 'soundfiles/ivr/demo2/greet-short.wav', 'soundfiles/ivr/invalid.wav', 'soundfiles/ivr/exit.wav', 3, 5, NULL, NULL),
+(3, 'menu8', 'soundfiles/ivr/menu8/greet-long.wav', 'soundfiles/ivr/menu8/greet-short.wav', 'soundfiles/ivr/menu8/invalid.wav', 'soundfiles/ivr/menu8/exit.wav', 3, 5, NULL, NULL);
+
+-- --------------------------------------------------------
--
-- Table structure for table `ivr_entries`
--
-DROP TABLE IF EXISTS `ivr_entries`;
-CREATE TABLE `ivr_entries` (
+CREATE TABLE IF NOT EXISTS `ivr_entries` (
`id` int(10) unsigned NOT NULL auto_increment,
`ivr_id` int(10) unsigned NOT NULL,
`action` varchar(64) NOT NULL,
`digits` varchar(16) NOT NULL,
`params` varchar(255) default NULL,
PRIMARY KEY (`id`),
- UNIQUE KEY `unique_ivr_digits` USING BTREE (`ivr_id`,`digits`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+ UNIQUE KEY `unique_ivr_digits` (`ivr_id`,`digits`)
+) TYPE=InnoDB AUTO_INCREMENT=11 ;
--
-- Dumping data for table `ivr_entries`
--
-LOCK TABLES `ivr_entries` WRITE;
-/*!40000 ALTER TABLE `ivr_entries` DISABLE KEYS */;
-INSERT INTO `ivr_entries` VALUES (1,1,'menu-play-sound','1','soundfiles/features.wav'),(2,1,'menu-exit','*',NULL),(3,1,'menu-sub','2','demo2'),(4,1,'menu-exec-api','3','bridge sofia/$${domain}/888(a)conference.freeswtich.org'),(5,1,'menu-call-transfer','4','888'),(6,2,'menu-back','#',NULL),(7,2,'menu-top','*',NULL),(8,3,'menu-back','#',NULL),(9,3,'menu-top','*',NULL),(10,3,'menu-playsound','4','soundfiles/4.wav');
-/*!40000 ALTER TABLE `ivr_entries` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `jabber_subscriptions`
---
-
-DROP TABLE IF EXISTS `jabber_subscriptions`;
-CREATE TABLE `jabber_subscriptions` (
- `sub_from` varchar(255) default NULL,
- `sub_to` varchar(255) default NULL,
- `show_pres` varchar(255) default NULL,
- `status` varchar(255) default NULL
-) ENGINE=InnoDB;
-
---
--- Dumping data for table `jabber_subscriptions`
---
-
-LOCK TABLES `jabber_subscriptions` WRITE;
-/*!40000 ALTER TABLE `jabber_subscriptions` DISABLE KEYS */;
-/*!40000 ALTER TABLE `jabber_subscriptions` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `lcr`
---
-
-DROP TABLE IF EXISTS `lcr`;
-CREATE TABLE `lcr` (
- `id` int(11) NOT NULL auto_increment,
- `digits` varchar(15) default NULL,
- `rate` int(11) NOT NULL,
- `carrier_id` int(11) NOT NULL,
- `lead_strip` int(11) NOT NULL,
- `trail_strip` int(11) NOT NULL,
- `prefix` varchar(16) NOT NULL,
- `suffix` varchar(16) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB;
-
---
--- Dumping data for table `lcr`
---
+INSERT INTO `ivr_entries` (`id`, `ivr_id`, `action`, `digits`, `params`) VALUES
+(1, 1, 'menu-play-sound', '1', 'soundfiles/features.wav'),
+(2, 1, 'menu-exit', '*', NULL),
+(3, 1, 'menu-sub', '2', 'demo2'),
+(4, 1, 'menu-exec-api', '3', 'bridge sofia/$${domain}/888(a)conference.freeswtich.org'),
+(5, 1, 'menu-call-transfer', '4', '888'),
+(6, 2, 'menu-back', '#', NULL),
+(7, 2, 'menu-top', '*', NULL),
+(8, 3, 'menu-back', '#', NULL),
+(9, 3, 'menu-top', '*', NULL),
+(10, 3, 'menu-playsound', '4', 'soundfiles/4.wav');
-LOCK TABLES `lcr` WRITE;
-/*!40000 ALTER TABLE `lcr` DISABLE KEYS */;
-INSERT INTO `lcr` VALUES (1,'1407',23,2,0,0,'',''),(2,'1407',29,1,0,0,'',''),(3,'1407282',28,2,0,0,'',''),(4,'1434',29,1,0,0,'',''),(5,'1434315',21,1,0,0,'','');
-/*!40000 ALTER TABLE `lcr` ENABLE KEYS */;
-UNLOCK TABLES;
+-- --------------------------------------------------------
--
-- Table structure for table `limit_conf`
--
-DROP TABLE IF EXISTS `limit_conf`;
-CREATE TABLE `limit_conf` (
+CREATE TABLE IF NOT EXISTS `limit_conf` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(255) default NULL,
`value` varchar(255) default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) TYPE=MyISAM AUTO_INCREMENT=2 ;
--
-- Dumping data for table `limit_conf`
--
-LOCK TABLES `limit_conf` WRITE;
-/*!40000 ALTER TABLE `limit_conf` DISABLE KEYS */;
-/*!40000 ALTER TABLE `limit_conf` ENABLE KEYS */;
-UNLOCK TABLES;
+
+-- --------------------------------------------------------
--
-- Table structure for table `limit_data`
--
-DROP TABLE IF EXISTS `limit_data`;
-CREATE TABLE `limit_data` (
+CREATE TABLE IF NOT EXISTS `limit_data` (
`hostname` varchar(255) default NULL,
`realm` varchar(255) default NULL,
`id` varchar(255) default NULL,
`uuid` varchar(255) default NULL
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) TYPE=MyISAM;
--
-- Dumping data for table `limit_data`
--
-LOCK TABLES `limit_data` WRITE;
-/*!40000 ALTER TABLE `limit_data` DISABLE KEYS */;
-/*!40000 ALTER TABLE `limit_data` ENABLE KEYS */;
-UNLOCK TABLES;
+
+-- --------------------------------------------------------
--
-- Table structure for table `local_stream_conf`
--
-DROP TABLE IF EXISTS `local_stream_conf`;
-CREATE TABLE `local_stream_conf` (
+CREATE TABLE IF NOT EXISTS `local_stream_conf` (
`id` int(11) NOT NULL auto_increment,
`directory_name` varchar(255) default NULL,
`directory_path` text,
`param_name` varchar(255) default NULL,
`param_value` varchar(255) default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) TYPE=MyISAM AUTO_INCREMENT=1 ;
--
-- Dumping data for table `local_stream_conf`
--
-LOCK TABLES `local_stream_conf` WRITE;
-/*!40000 ALTER TABLE `local_stream_conf` DISABLE KEYS */;
-/*!40000 ALTER TABLE `local_stream_conf` ENABLE KEYS */;
-UNLOCK TABLES;
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `modless_conf`
+--
+
+CREATE TABLE IF NOT EXISTS `modless_conf` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `conf_name` varchar(64) NOT NULL,
+ PRIMARY KEY (`id`)
+) TYPE=InnoDB AUTO_INCREMENT=4 ;
+
+--
+-- Dumping data for table `modless_conf`
+--
+
+INSERT INTO `modless_conf` (`id`, `conf_name`) VALUES
+(1, 'acl.conf'),
+(2, 'postl_load_switch.conf'),
+(3, 'post_load_modules.conf');
+
+-- --------------------------------------------------------
--
-- Table structure for table `post_load_modules_conf`
--
-DROP TABLE IF EXISTS `post_load_modules_conf`;
-CREATE TABLE `post_load_modules_conf` (
+CREATE TABLE IF NOT EXISTS `post_load_modules_conf` (
`id` int(10) unsigned NOT NULL auto_increment,
`module_name` varchar(64) NOT NULL,
`load_module` tinyint(1) NOT NULL default '1',
`priority` int(10) unsigned NOT NULL default '1000',
PRIMARY KEY (`id`),
UNIQUE KEY `unique_mod` (`module_name`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=54 ;
--
-- Dumping data for table `post_load_modules_conf`
--
-LOCK TABLES `post_load_modules_conf` WRITE;
-/*!40000 ALTER TABLE `post_load_modules_conf` DISABLE KEYS */;
-INSERT INTO `post_load_modules_conf` VALUES (1,'mod_sofia',1,2000),(2,'mod_iax',1,2000),(3,'mod_xml_rpc',1,100),(4,'mod_portaudio',1,1000),(5,'mod_enum',1,2000),(6,'mod_xml_cdr',1,1000),(7,'mod_spidermonkey',1,1000),(8,'mod_alsa',0,1000),(9,'mod_log_file',1,0),(10,'mod_commands',1,1000),(11,'mod_voicemail',1,1000),(12,'mod_dialplan_xml',1,150),(13,'mod_dialplan_asterisk',1,150),(14,'mod_openzap',0,1000),(15,'mod_woomera',0,1000),(17,'mod_speex',1,500),(18,'mod_ilbc',0,1000),(20,'mod_g723_1',1,500),(21,'mod_g729',1,500),(22,'mod_g722',1,500),(23,'mod_g726',1,500),(25,'mod_amr',1,500),(26,'mod_fifo',1,1000),(27,'mod_limit',1,1000),(28,'mod_syslog',1,0),(29,'mod_dingaling',1,2000),(30,'mod_cdr_csv',1,1000),(31,'mod_event_socket',1,100),(32,'mod_multicast',0,1000),(33,'mod_zeroconf',0,1000),(34,'mod_xmpp_event',0,1000),(35,'mod_sndfile',1,1000),(36,'mod_native_file',1,1000),(37,'mod_shout',1,1000),(38,'mod_local_stream',1,1000),(39,'mod_perl',0,1000),(40,'mod_python',0,1000),(41,'mod_java',0,1000),(42,'mod_cepstral',0,1000),(43,'mod_openmrcp',0,1000),(44,'mod_lumenvox',0,1000),(45,'mod_rss',0,1000),(46,'mod_say_de',1,1000),(47,'mod_say_fr',0,1000),(48,'mod_say_en',1,1000),(49,'mod_conference',1,1000),(50,'mod_ivr',0,1000),(51,'mod_console',1,0),(52,'mod_dptools',1,1500),(53,'mod_voipcodecs',1,500);
-/*!40000 ALTER TABLE `post_load_modules_conf` ENABLE KEYS */;
-UNLOCK TABLES;
+INSERT INTO `post_load_modules_conf` (`id`, `module_name`, `load_module`, `priority`) VALUES
+(1, 'mod_sofia', 1, 2000),
+(2, 'mod_iax', 1, 2000),
+(3, 'mod_xml_rpc', 1, 100),
+(4, 'mod_portaudio', 1, 1000),
+(5, 'mod_enum', 1, 2000),
+(6, 'mod_xml_cdr', 1, 1000),
+(7, 'mod_spidermonkey', 1, 1000),
+(8, 'mod_alsa', 0, 1000),
+(9, 'mod_log_file', 1, 0),
+(10, 'mod_commands', 1, 1000),
+(11, 'mod_voicemail', 1, 1000),
+(12, 'mod_dialplan_xml', 1, 150),
+(13, 'mod_dialplan_asterisk', 1, 150),
+(14, 'mod_openzap', 0, 1000),
+(15, 'mod_woomera', 0, 1000),
+(17, 'mod_speex', 1, 500),
+(18, 'mod_ilbc', 0, 1000),
+(20, 'mod_g723_1', 1, 500),
+(21, 'mod_g729', 1, 500),
+(22, 'mod_g722', 1, 500),
+(23, 'mod_g726', 1, 500),
+(25, 'mod_amr', 1, 500),
+(26, 'mod_fifo', 1, 1000),
+(27, 'mod_limit', 1, 1000),
+(28, 'mod_syslog', 1, 0),
+(29, 'mod_dingaling', 1, 2000),
+(30, 'mod_cdr_csv', 1, 1000),
+(31, 'mod_event_socket', 1, 100),
+(32, 'mod_multicast', 0, 1000),
+(33, 'mod_zeroconf', 0, 1000),
+(34, 'mod_xmpp_event', 0, 1000),
+(35, 'mod_sndfile', 1, 1000),
+(36, 'mod_native_file', 1, 1000),
+(37, 'mod_shout', 1, 1000),
+(38, 'mod_local_stream', 1, 1000),
+(39, 'mod_perl', 0, 1000),
+(40, 'mod_python', 0, 1000),
+(41, 'mod_java', 0, 1000),
+(42, 'mod_cepstral', 0, 1000),
+(43, 'mod_openmrcp', 0, 1000),
+(44, 'mod_lumenvox', 0, 1000),
+(45, 'mod_rss', 0, 1000),
+(46, 'mod_say_de', 1, 1000),
+(47, 'mod_say_fr', 0, 1000),
+(48, 'mod_say_en', 1, 1000),
+(49, 'mod_conference', 1, 1000),
+(50, 'mod_ivr', 0, 1000),
+(51, 'mod_console', 1, 0),
+(52, 'mod_dptools', 1, 1500),
+(53, 'mod_voipcodecs', 1, 500);
+
+-- --------------------------------------------------------
--
-- Table structure for table `rss_conf`
--
-DROP TABLE IF EXISTS `rss_conf`;
-CREATE TABLE `rss_conf` (
+CREATE TABLE IF NOT EXISTS `rss_conf` (
`id` int(11) NOT NULL auto_increment,
`directory_id` int(11) NOT NULL,
`feed` text NOT NULL,
@@ -724,42 +1103,36 @@
`description` text,
`priority` int(11) NOT NULL default '1000',
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) TYPE=MyISAM AUTO_INCREMENT=15 ;
--
-- Dumping data for table `rss_conf`
--
-LOCK TABLES `rss_conf` WRITE;
-/*!40000 ALTER TABLE `rss_conf` DISABLE KEYS */;
-/*!40000 ALTER TABLE `rss_conf` ENABLE KEYS */;
-UNLOCK TABLES;
+
+-- --------------------------------------------------------
--
-- Table structure for table `sip_authentication`
--
-DROP TABLE IF EXISTS `sip_authentication`;
-CREATE TABLE `sip_authentication` (
+CREATE TABLE IF NOT EXISTS `sip_authentication` (
`nonce` varchar(255) default NULL,
- `expires` int(8) default NULL
-) ENGINE=InnoDB;
+ `expires` int(11) default NULL
+) TYPE=InnoDB;
--
-- Dumping data for table `sip_authentication`
--
-LOCK TABLES `sip_authentication` WRITE;
-/*!40000 ALTER TABLE `sip_authentication` DISABLE KEYS */;
-/*!40000 ALTER TABLE `sip_authentication` ENABLE KEYS */;
-UNLOCK TABLES;
+
+-- --------------------------------------------------------
--
-- Table structure for table `sip_dialogs`
--
-DROP TABLE IF EXISTS `sip_dialogs`;
-CREATE TABLE `sip_dialogs` (
+CREATE TABLE IF NOT EXISTS `sip_dialogs` (
`call_id` varchar(255) default NULL,
`uuid` varchar(255) default NULL,
`sip_to_user` varchar(255) default NULL,
@@ -771,23 +1144,20 @@
`state` varchar(255) default NULL,
`direction` varchar(255) default NULL,
`user_agent` varchar(255) default NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB;
--
-- Dumping data for table `sip_dialogs`
--
-LOCK TABLES `sip_dialogs` WRITE;
-/*!40000 ALTER TABLE `sip_dialogs` DISABLE KEYS */;
-/*!40000 ALTER TABLE `sip_dialogs` ENABLE KEYS */;
-UNLOCK TABLES;
+
+-- --------------------------------------------------------
--
-- Table structure for table `sip_registrations`
--
-DROP TABLE IF EXISTS `sip_registrations`;
-CREATE TABLE `sip_registrations` (
+CREATE TABLE IF NOT EXISTS `sip_registrations` (
`call_id` varchar(255) default NULL,
`sip_user` varchar(255) default NULL,
`sip_host` varchar(255) default NULL,
@@ -796,23 +1166,20 @@
`rpid` varchar(255) default NULL,
`expires` int(11) default NULL,
`user_agent` varchar(255) default NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB;
--
-- Dumping data for table `sip_registrations`
--
-LOCK TABLES `sip_registrations` WRITE;
-/*!40000 ALTER TABLE `sip_registrations` DISABLE KEYS */;
-/*!40000 ALTER TABLE `sip_registrations` ENABLE KEYS */;
-UNLOCK TABLES;
+
+-- --------------------------------------------------------
--
-- Table structure for table `sip_subscriptions`
--
-DROP TABLE IF EXISTS `sip_subscriptions`;
-CREATE TABLE `sip_subscriptions` (
+CREATE TABLE IF NOT EXISTS `sip_subscriptions` (
`proto` varchar(255) default NULL,
`sip_user` varchar(255) default NULL,
`sip_host` varchar(255) default NULL,
@@ -826,254 +1193,239 @@
`expires` int(11) default NULL,
`user_agent` varchar(255) default NULL,
`accept` varchar(255) default NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB;
--
-- Dumping data for table `sip_subscriptions`
--
-LOCK TABLES `sip_subscriptions` WRITE;
-/*!40000 ALTER TABLE `sip_subscriptions` DISABLE KEYS */;
-/*!40000 ALTER TABLE `sip_subscriptions` ENABLE KEYS */;
-UNLOCK TABLES;
+
+-- --------------------------------------------------------
--
-- Table structure for table `sofia_aliases`
--
-DROP TABLE IF EXISTS `sofia_aliases`;
-CREATE TABLE `sofia_aliases` (
+CREATE TABLE IF NOT EXISTS `sofia_aliases` (
`id` int(10) unsigned NOT NULL auto_increment,
`sofia_id` int(10) unsigned NOT NULL,
`alias_name` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=4 ;
--
-- Dumping data for table `sofia_aliases`
--
-LOCK TABLES `sofia_aliases` WRITE;
-/*!40000 ALTER TABLE `sofia_aliases` DISABLE KEYS */;
-INSERT INTO `sofia_aliases` VALUES (1,1,'default'),(3,1,'sip.example.com');
-/*!40000 ALTER TABLE `sofia_aliases` ENABLE KEYS */;
-UNLOCK TABLES;
+INSERT INTO `sofia_aliases` (`id`, `sofia_id`, `alias_name`) VALUES
+(1, 1, 'default'),
+(3, 1, 'sip.example.com');
+
+-- --------------------------------------------------------
--
-- Table structure for table `sofia_conf`
--
-DROP TABLE IF EXISTS `sofia_conf`;
-CREATE TABLE `sofia_conf` (
+CREATE TABLE IF NOT EXISTS `sofia_conf` (
`id` int(11) NOT NULL auto_increment,
`profile_name` varchar(255) default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=2 ;
--
-- Dumping data for table `sofia_conf`
--
-LOCK TABLES `sofia_conf` WRITE;
-/*!40000 ALTER TABLE `sofia_conf` DISABLE KEYS */;
-INSERT INTO `sofia_conf` VALUES (1,'$${domain}');
-/*!40000 ALTER TABLE `sofia_conf` ENABLE KEYS */;
-UNLOCK TABLES;
+INSERT INTO `sofia_conf` (`id`, `profile_name`) VALUES
+(1, '$${domain}');
+
+-- --------------------------------------------------------
--
-- Table structure for table `sofia_domains`
--
-DROP TABLE IF EXISTS `sofia_domains`;
-CREATE TABLE `sofia_domains` (
+CREATE TABLE IF NOT EXISTS `sofia_domains` (
`id` int(11) NOT NULL auto_increment,
`sofia_id` int(11) default NULL,
`domain_name` varchar(255) default NULL,
`parse` tinyint(1) default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `sofia_domains`
--
-LOCK TABLES `sofia_domains` WRITE;
-/*!40000 ALTER TABLE `sofia_domains` DISABLE KEYS */;
-/*!40000 ALTER TABLE `sofia_domains` ENABLE KEYS */;
-UNLOCK TABLES;
+
+-- --------------------------------------------------------
--
-- Table structure for table `sofia_gateways`
--
-DROP TABLE IF EXISTS `sofia_gateways`;
-CREATE TABLE `sofia_gateways` (
+CREATE TABLE IF NOT EXISTS `sofia_gateways` (
`id` int(11) NOT NULL auto_increment,
`sofia_id` int(11) default NULL,
`gateway_name` varchar(255) default NULL,
`gateway_param` varchar(255) default NULL,
`gateway_value` varchar(255) default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=15 ;
--
-- Dumping data for table `sofia_gateways`
--
-LOCK TABLES `sofia_gateways` WRITE;
-/*!40000 ALTER TABLE `sofia_gateways` DISABLE KEYS */;
-INSERT INTO `sofia_gateways` VALUES (8,1,'default','proxy','asterlink.com'),(9,1,'default','realm','asterlink.com'),(10,1,'default','username','USERNAME_HERE'),(11,1,'default','register','false'),(12,1,'default','expire-seconds','60'),(13,1,'default','retry_seconds','2'),(14,1,'default','password','PASSWORD_HERE');
-/*!40000 ALTER TABLE `sofia_gateways` ENABLE KEYS */;
-UNLOCK TABLES;
+INSERT INTO `sofia_gateways` (`id`, `sofia_id`, `gateway_name`, `gateway_param`, `gateway_value`) VALUES
+(8, 1, 'default', 'proxy', 'asterlink.com'),
+(9, 1, 'default', 'realm', 'asterlink.com'),
+(10, 1, 'default', 'username', 'USERNAME_HERE'),
+(11, 1, 'default', 'register', 'false'),
+(12, 1, 'default', 'expire-seconds', '60'),
+(13, 1, 'default', 'retry_seconds', '2'),
+(14, 1, 'default', 'password', 'PASSWORD_HERE');
+
+-- --------------------------------------------------------
--
-- Table structure for table `sofia_settings`
--
-DROP TABLE IF EXISTS `sofia_settings`;
-CREATE TABLE `sofia_settings` (
+CREATE TABLE IF NOT EXISTS `sofia_settings` (
`id` int(11) NOT NULL auto_increment,
`sofia_id` int(11) default NULL,
`param_name` varchar(255) default NULL,
`param_value` varchar(255) default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=37 ;
--
-- Dumping data for table `sofia_settings`
--
-LOCK TABLES `sofia_settings` WRITE;
-/*!40000 ALTER TABLE `sofia_settings` DISABLE KEYS */;
-INSERT INTO `sofia_settings` VALUES (1,1,'user-agent-string','RayUA 2.0pre4'),(2,1,'auth-calls','true'),(5,1,'debug','1'),(6,1,'rfc2833-pt','101'),(7,1,'sip-port','5060'),(8,1,'dialplan','XML'),(9,1,'dtmf-duration','100'),(10,1,'codec-prefs','$${global_codec_prefs}'),(11,1,'rtp-timeout-sec','300'),(12,1,'rtp-ip','$${local_ip_v4}'),(13,1,'sip-ip','$${local_ip_v4}'),(14,1,'context','default'),(15,1,'manage-presence','true'),(16,1,'force-register-domain','intralanman.servehttp.com'),(17,1,'inbound-codec-negotiation','generous'),(18,1,'rtp-rewrite-timestampes','true'),(19,1,'nonce-ttl','60'),(20,1,'vad','out'),(36,1,'odbc-dsn','freeswitch-mysql:freeswitch:Fr33Sw1tch');
-/*!40000 ALTER TABLE `sofia_settings` ENABLE KEYS */;
-UNLOCK TABLES;
+INSERT INTO `sofia_settings` (`id`, `sofia_id`, `param_name`, `param_value`) VALUES
+(1, 1, 'user-agent-string', 'RayUA 2.0pre4'),
+(2, 1, 'auth-calls', 'true'),
+(5, 1, 'debug', '1'),
+(6, 1, 'rfc2833-pt', '101'),
+(7, 1, 'sip-port', '5060'),
+(8, 1, 'dialplan', 'XML'),
+(9, 1, 'dtmf-duration', '100'),
+(10, 1, 'codec-prefs', '$${global_codec_prefs}'),
+(11, 1, 'rtp-timeout-sec', '300'),
+(12, 1, 'rtp-ip', '$${local_ip_v4}'),
+(13, 1, 'sip-ip', '$${local_ip_v4}'),
+(14, 1, 'context', 'default'),
+(15, 1, 'manage-presence', 'true'),
+(16, 1, 'force-register-domain', 'intralanman.servehttp.com'),
+(17, 1, 'inbound-codec-negotiation', 'generous'),
+(18, 1, 'rtp-rewrite-timestampes', 'true'),
+(19, 1, 'nonce-ttl', '60'),
+(20, 1, 'vad', 'out'),
+(36, 1, 'odbc-dsn', 'freeswitch-mysql:freeswitch:Fr33Sw1tch');
+
+-- --------------------------------------------------------
--
-- Table structure for table `voicemail_conf`
--
-DROP TABLE IF EXISTS `voicemail_conf`;
-CREATE TABLE `voicemail_conf` (
+CREATE TABLE IF NOT EXISTS `voicemail_conf` (
`id` int(10) unsigned NOT NULL auto_increment,
`vm_profile` varchar(64) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_profile` (`vm_profile`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=2 ;
--
-- Dumping data for table `voicemail_conf`
--
-LOCK TABLES `voicemail_conf` WRITE;
-/*!40000 ALTER TABLE `voicemail_conf` DISABLE KEYS */;
-INSERT INTO `voicemail_conf` VALUES (1,'default');
-/*!40000 ALTER TABLE `voicemail_conf` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `voicemail_data`
---
-
-DROP TABLE IF EXISTS `voicemail_data`;
-CREATE TABLE `voicemail_data` (
- `created_epoch` int(8) default NULL,
- `read_epoch` int(8) default NULL,
- `user` varchar(255) default NULL,
- `domain` varchar(255) default NULL,
- `uuid` varchar(255) default NULL,
- `cid_name` varchar(255) default NULL,
- `cid_number` varchar(255) default NULL,
- `in_folder` varchar(255) default NULL,
- `file_path` varchar(255) default NULL,
- `flags` varchar(255) default NULL,
- `read_flags` varchar(255) default NULL
-) ENGINE=InnoDB;
-
---
--- Dumping data for table `voicemail_data`
---
-
-LOCK TABLES `voicemail_data` WRITE;
-/*!40000 ALTER TABLE `voicemail_data` DISABLE KEYS */;
-/*!40000 ALTER TABLE `voicemail_data` ENABLE KEYS */;
-UNLOCK TABLES;
+INSERT INTO `voicemail_conf` (`id`, `vm_profile`) VALUES
+(1, 'default');
+
+-- --------------------------------------------------------
--
-- Table structure for table `voicemail_email`
--
-DROP TABLE IF EXISTS `voicemail_email`;
-CREATE TABLE `voicemail_email` (
+CREATE TABLE IF NOT EXISTS `voicemail_email` (
`id` int(10) unsigned NOT NULL auto_increment,
`voicemail_id` int(10) unsigned NOT NULL,
`param_name` varchar(64) NOT NULL,
`param_value` varchar(64) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_profile_param` (`param_name`,`voicemail_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=4 ;
--
-- Dumping data for table `voicemail_email`
--
-LOCK TABLES `voicemail_email` WRITE;
-/*!40000 ALTER TABLE `voicemail_email` DISABLE KEYS */;
-INSERT INTO `voicemail_email` VALUES (1,1,'template-file','voicemail.tpl'),(2,1,'date-fmt','%A, %B %d %Y, %I %M %p'),(3,1,'email-from','${voicemail_account}@${voicemail_domain}');
-/*!40000 ALTER TABLE `voicemail_email` ENABLE KEYS */;
-UNLOCK TABLES;
+INSERT INTO `voicemail_email` (`id`, `voicemail_id`, `param_name`, `param_value`) VALUES
+(1, 1, 'template-file', 'voicemail.tpl'),
+(2, 1, 'date-fmt', '%A, %B %d %Y, %I %M %p'),
+(3, 1, 'email-from', '${voicemail_account}@${voicemail_domain}');
---
--- Table structure for table `voicemail_prefs`
---
-
-DROP TABLE IF EXISTS `voicemail_prefs`;
-CREATE TABLE `voicemail_prefs` (
- `user` varchar(255) default NULL,
- `domain` varchar(255) default NULL,
- `name_path` varchar(255) default NULL,
- `greeting_path` varchar(255) default NULL
-) ENGINE=InnoDB;
-
---
--- Dumping data for table `voicemail_prefs`
---
-
-LOCK TABLES `voicemail_prefs` WRITE;
-/*!40000 ALTER TABLE `voicemail_prefs` DISABLE KEYS */;
-/*!40000 ALTER TABLE `voicemail_prefs` ENABLE KEYS */;
-UNLOCK TABLES;
+-- --------------------------------------------------------
--
-- Table structure for table `voicemail_settings`
--
-DROP TABLE IF EXISTS `voicemail_settings`;
-CREATE TABLE `voicemail_settings` (
+CREATE TABLE IF NOT EXISTS `voicemail_settings` (
`id` int(11) NOT NULL auto_increment,
`voicemail_id` int(11) default NULL,
`param_name` varchar(255) default NULL,
`param_value` varchar(255) default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=31 ;
--
-- Dumping data for table `voicemail_settings`
--
-LOCK TABLES `voicemail_settings` WRITE;
-/*!40000 ALTER TABLE `voicemail_settings` DISABLE KEYS */;
-INSERT INTO `voicemail_settings` VALUES (1,1,'file-extension','wav'),(2,1,'terminator-key','#'),(3,1,'max-login-attempts','3'),(4,1,'digit-timeout','10000'),(5,1,'max-record-length','300'),(6,1,'tone-spec','%(1000, 0, 640)'),(7,1,'callback-dialplan','XML'),(8,1,'callback-context','default'),(9,1,'play-new-messages-key','1'),(10,1,'play-saved-messages-key','2'),(11,1,'main-menu-key','*'),(12,1,'config-menu-key','5'),(13,1,'record-greeting-key','1'),(14,1,'choose-greeting-key','2'),(15,1,'record-file-key','3'),(16,1,'listen-file-key','1'),(17,1,'record-name-key','3'),(18,1,'save-file-key','9'),(19,1,'delete-file-key','7'),(20,1,'undelete-file-key','8'),(21,1,'email-key','4'),(22,1,'pause-key','0'),(23,1,'restart-key','1'),(24,1,'ff-key','6'),(25,1,'rew-key','4'),(26,1,'record-silence-threshold','200'),(27,1,'record-silence-hits','2'),(28,1,'web-template-file','web-vm.tpl'),(29,1,'operator-extension','operator XML default'),(30,1,'operator-key','9');
-/*!40000 ALTER TABLE `voicemail_settings` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
+INSERT INTO `voicemail_settings` (`id`, `voicemail_id`, `param_name`, `param_value`) VALUES
+(1, 1, 'file-extension', 'wav'),
+(2, 1, 'terminator-key', '#'),
+(3, 1, 'max-login-attempts', '3'),
+(4, 1, 'digit-timeout', '10000'),
+(5, 1, 'max-record-length', '300'),
+(6, 1, 'tone-spec', '%(1000, 0, 640)'),
+(7, 1, 'callback-dialplan', 'XML'),
+(8, 1, 'callback-context', 'default'),
+(9, 1, 'play-new-messages-key', '1'),
+(10, 1, 'play-saved-messages-key', '2'),
+(11, 1, 'main-menu-key', '*'),
+(12, 1, 'config-menu-key', '5'),
+(13, 1, 'record-greeting-key', '1'),
+(14, 1, 'choose-greeting-key', '2'),
+(15, 1, 'record-file-key', '3'),
+(16, 1, 'listen-file-key', '1'),
+(17, 1, 'record-name-key', '3'),
+(18, 1, 'save-file-key', '9'),
+(19, 1, 'delete-file-key', '7'),
+(20, 1, 'undelete-file-key', '8'),
+(21, 1, 'email-key', '4'),
+(22, 1, 'pause-key', '0'),
+(23, 1, 'restart-key', '1'),
+(24, 1, 'ff-key', '6'),
+(25, 1, 'rew-key', '4'),
+(26, 1, 'record-silence-threshold', '200'),
+(27, 1, 'record-silence-hits', '2'),
+(28, 1, 'web-template-file', 'web-vm.tpl'),
+(29, 1, 'operator-extension', 'operator XML default'),
+(30, 1, 'operator-key', '9');
--- Dump completed on 2008-04-10 15:11:05
+--
+-- Constraints for dumped tables
+--
+
+--
+-- Constraints for table `dingaling_profile_params`
+--
+ALTER TABLE `dingaling_profile_params`
+ ADD CONSTRAINT `dingaling_profile` FOREIGN KEY (`dingaling_id`) REFERENCES `dingaling_profiles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
Modified: freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/sql/mysql-4.0.sql
==============================================================================
--- freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/sql/mysql-4.0.sql (original)
+++ freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/sql/mysql-4.0.sql Sun Feb 15 21:38:28 2009
@@ -1,315 +1,485 @@
--- MySQL dump 10.11
---
--- Host: localhost Database: freeswitch
--- ------------------------------------------------------
--- Server version 5.0.32-Debian_7etch5-log
+-- phpMyAdmin SQL Dump
+-- version 3.1.2deb1
+-- http://www.phpmyadmin.net
+--
+-- Host: localhost
+-- Generation Time: Feb 15, 2009 at 09:36 PM
+-- Server version: 5.0.75
+-- PHP Version: 5.2.6-3ubuntu2
+
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
--- Table structure for table `carrier_gateway`
+-- Database: `freeswitch`
--
-DROP TABLE IF EXISTS `carrier_gateway`;
-CREATE TABLE `carrier_gateway` (
- `id` int(11) NOT NULL auto_increment,
- `carrier_id` int(11) default NULL,
- `gateway` varchar(32) default NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `gateway` (`gateway`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+-- --------------------------------------------------------
--
--- Table structure for table `carriers`
+-- Table structure for table `acl_lists`
--
-DROP TABLE IF EXISTS `carriers`;
-CREATE TABLE `carriers` (
- `id` int(11) NOT NULL auto_increment,
- `Carrier_Name` varchar(255) default NULL,
+CREATE TABLE IF NOT EXISTS `acl_lists` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `acl_name` varchar(128) NOT NULL,
+ `default_policy` varchar(45) NOT NULL,
+ PRIMARY KEY (`id`)
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `acl_lists`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `acl_nodes`
+--
+
+CREATE TABLE IF NOT EXISTS `acl_nodes` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `cidr` varchar(45) NOT NULL,
+ `type` varchar(16) NOT NULL,
+ `list_id` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `acl_nodes`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `conference_advertise`
--
-DROP TABLE IF EXISTS `conference_advertise`;
-CREATE TABLE `conference_advertise` (
+CREATE TABLE IF NOT EXISTS `conference_advertise` (
`id` int(10) unsigned NOT NULL auto_increment,
`room` varchar(64) NOT NULL,
`status` varchar(128) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_room` (`room`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `conference_advertise`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `conference_controls`
--
-DROP TABLE IF EXISTS `conference_controls`;
-CREATE TABLE `conference_controls` (
+CREATE TABLE IF NOT EXISTS `conference_controls` (
`id` int(10) unsigned NOT NULL auto_increment,
`conf_group` varchar(64) NOT NULL,
`action` varchar(64) NOT NULL,
`digits` varchar(16) NOT NULL,
PRIMARY KEY (`id`),
- UNIQUE KEY `unique_group_action` USING BTREE (`conf_group`,`action`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+ UNIQUE KEY `unique_group_action` (`conf_group`,`action`)
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `conference_controls`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `conference_profiles`
--
-DROP TABLE IF EXISTS `conference_profiles`;
-CREATE TABLE `conference_profiles` (
+CREATE TABLE IF NOT EXISTS `conference_profiles` (
`id` int(10) unsigned NOT NULL auto_increment,
`profile_name` varchar(64) NOT NULL,
`param_name` varchar(64) NOT NULL,
`param_value` varchar(64) NOT NULL,
PRIMARY KEY (`id`),
KEY `unique_profile_param` (`profile_name`,`param_name`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
--
--- Table structure for table `db_data`
+-- Dumping data for table `conference_profiles`
--
-DROP TABLE IF EXISTS `db_data`;
-CREATE TABLE `db_data` (
- `hostname` varchar(255) default NULL,
- `realm` varchar(255) default NULL,
- `data_key` varchar(255) default NULL,
- `data` varchar(255) default NULL
-) ENGINE=InnoDB;
+
+-- --------------------------------------------------------
--
-- Table structure for table `dialplan`
--
-DROP TABLE IF EXISTS `dialplan`;
-CREATE TABLE `dialplan` (
- `id` int(11) NOT NULL auto_increment,
+CREATE TABLE IF NOT EXISTS `dialplan` (
+ `dialplan_id` int(11) NOT NULL auto_increment,
+ `domain` varchar(128) NOT NULL,
+ `ip_address` varchar(15) NOT NULL,
+ PRIMARY KEY (`dialplan_id`)
+) TYPE=MyISAM AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `dialplan`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dialplan_actions`
+--
+
+CREATE TABLE IF NOT EXISTS `dialplan_actions` (
+ `action_id` int(11) NOT NULL auto_increment,
+ `condition_id` int(11) NOT NULL,
+ `application` varchar(256) NOT NULL,
+ `data` varchar(256) NOT NULL,
+ `type` varchar(32) NOT NULL,
+ `weight` int(11) NOT NULL,
+ PRIMARY KEY (`action_id`)
+) TYPE=MyISAM AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `dialplan_actions`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dialplan_condition`
+--
+
+CREATE TABLE IF NOT EXISTS `dialplan_condition` (
+ `condition_id` int(11) NOT NULL auto_increment,
+ `extension_id` int(11) NOT NULL,
+ `field` varchar(1238) NOT NULL,
+ `expression` varchar(128) NOT NULL,
+ `weight` int(11) NOT NULL,
+ PRIMARY KEY (`condition_id`)
+) TYPE=MyISAM AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `dialplan_condition`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dialplan_context`
+--
+
+CREATE TABLE IF NOT EXISTS `dialplan_context` (
+ `context_id` int(11) NOT NULL auto_increment,
+ `dialplan_id` int(11) NOT NULL,
`context` varchar(64) NOT NULL,
- `extension` varchar(64) NOT NULL,
- `condition_field` varchar(64) NOT NULL,
- `condition_expression` varchar(64) NOT NULL,
- `application_name` varchar(64) NOT NULL,
- `application_data` text,
`weight` int(11) NOT NULL,
- `type` varchar(16) NOT NULL default 'action',
- `ext_continue` smallint(1) NOT NULL default '0',
- `global_weight` int(11) NOT NULL default '10000',
- `cond_break` varchar(8) default NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+ PRIMARY KEY (`context_id`)
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `dialplan_context`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dialplan_extension`
+--
+
+CREATE TABLE IF NOT EXISTS `dialplan_extension` (
+ `extension_id` int(11) NOT NULL auto_increment,
+ `context_id` int(11) NOT NULL,
+ `name` varchar(128) NOT NULL,
+ `continue` varchar(32) NOT NULL,
+ `weight` int(11) NOT NULL,
+ PRIMARY KEY (`extension_id`)
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `dialplan_extension`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `dialplan_special`
--
-DROP TABLE IF EXISTS `dialplan_special`;
-CREATE TABLE `dialplan_special` (
+CREATE TABLE IF NOT EXISTS `dialplan_special` (
`id` int(11) NOT NULL auto_increment,
`context` varchar(255) NOT NULL,
`class_file` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_context` (`context`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
--
--- Table structure for table `dingaling_profile_params`
+-- Dumping data for table `dialplan_special`
--
-DROP TABLE IF EXISTS `dingaling_profile_params`;
-CREATE TABLE `dingaling_profile_params` (
- `id` int(10) unsigned NOT NULL auto_increment,
- `dingaling_id` int(10) unsigned NOT NULL,
- `param_name` varchar(64) NOT NULL,
- `param_value` varchar(64) NOT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `unique_type_name` (`dingaling_id`,`param_name`),
- CONSTRAINT `dingaling_profile` FOREIGN KEY (`dingaling_id`) REFERENCES `dingaling_profiles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+-- --------------------------------------------------------
--
-- Table structure for table `dingaling_profiles`
--
-DROP TABLE IF EXISTS `dingaling_profiles`;
-CREATE TABLE `dingaling_profiles` (
+CREATE TABLE IF NOT EXISTS `dingaling_profiles` (
`id` int(10) unsigned NOT NULL auto_increment,
`profile_name` varchar(64) NOT NULL,
`type` varchar(64) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_name` (`profile_name`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `dingaling_profiles`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dingaling_profile_params`
+--
+
+CREATE TABLE IF NOT EXISTS `dingaling_profile_params` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `dingaling_id` int(10) unsigned NOT NULL,
+ `param_name` varchar(64) NOT NULL,
+ `param_value` varchar(64) NOT NULL,
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `unique_type_name` (`dingaling_id`,`param_name`)
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `dingaling_profile_params`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `dingaling_settings`
--
-DROP TABLE IF EXISTS `dingaling_settings`;
-CREATE TABLE `dingaling_settings` (
+CREATE TABLE IF NOT EXISTS `dingaling_settings` (
`id` int(10) unsigned NOT NULL auto_increment,
`param_name` varchar(64) NOT NULL,
`param_value` varchar(64) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_param` (`param_name`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `dingaling_settings`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `directory`
--
-DROP TABLE IF EXISTS `directory`;
-CREATE TABLE `directory` (
+CREATE TABLE IF NOT EXISTS `directory` (
`id` int(11) NOT NULL auto_increment,
`username` varchar(255) NOT NULL,
- `mailbox` varchar(255) NOT NULL,
`domain` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) TYPE=MyISAM AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `directory`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `directory_domains`
--
-DROP TABLE IF EXISTS `directory_domains`;
-CREATE TABLE `directory_domains` (
+CREATE TABLE IF NOT EXISTS `directory_domains` (
`id` int(10) unsigned NOT NULL auto_increment,
`domain_name` varchar(128) NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `directory_domains`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `directory_gateways`
+--
+
+CREATE TABLE IF NOT EXISTS `directory_gateways` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `directory_id` int(10) unsigned NOT NULL,
+ `gateway_name` varchar(128) NOT NULL,
+ PRIMARY KEY (`id`)
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `directory_gateways`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `directory_gateway_params`
--
-DROP TABLE IF EXISTS `directory_gateway_params`;
-CREATE TABLE `directory_gateway_params` (
+CREATE TABLE IF NOT EXISTS `directory_gateway_params` (
`id` int(10) unsigned NOT NULL auto_increment,
`d_gw_id` int(10) unsigned NOT NULL,
`param_name` varchar(64) NOT NULL,
`param_value` varchar(64) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_gw_param` (`d_gw_id`,`param_name`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
--
--- Table structure for table `directory_gateways`
+-- Dumping data for table `directory_gateway_params`
--
-DROP TABLE IF EXISTS `directory_gateways`;
-CREATE TABLE `directory_gateways` (
- `id` int(10) unsigned NOT NULL auto_increment,
- `directory_id` int(10) unsigned NOT NULL,
- `gateway_name` varchar(128) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+-- --------------------------------------------------------
--
-- Table structure for table `directory_global_params`
--
-DROP TABLE IF EXISTS `directory_global_params`;
-CREATE TABLE `directory_global_params` (
+CREATE TABLE IF NOT EXISTS `directory_global_params` (
`id` int(10) unsigned NOT NULL auto_increment,
`param_name` varchar(64) NOT NULL,
`param_value` varchar(128) NOT NULL,
`domain_id` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `directory_global_params`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `directory_global_vars`
--
-DROP TABLE IF EXISTS `directory_global_vars`;
-CREATE TABLE `directory_global_vars` (
+CREATE TABLE IF NOT EXISTS `directory_global_vars` (
`id` int(10) unsigned NOT NULL auto_increment,
`var_name` varchar(64) NOT NULL,
`var_value` varchar(128) NOT NULL,
`domain_id` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `directory_global_vars`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `directory_params`
--
-DROP TABLE IF EXISTS `directory_params`;
-CREATE TABLE `directory_params` (
+CREATE TABLE IF NOT EXISTS `directory_params` (
`id` int(11) NOT NULL auto_increment,
`directory_id` int(11) default NULL,
`param_name` varchar(255) default NULL,
`param_value` varchar(255) default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `directory_params`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `directory_vars`
--
-DROP TABLE IF EXISTS `directory_vars`;
-CREATE TABLE `directory_vars` (
+CREATE TABLE IF NOT EXISTS `directory_vars` (
`id` int(11) NOT NULL auto_increment,
`directory_id` int(11) default NULL,
`var_name` varchar(255) default NULL,
`var_value` varchar(255) default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) TYPE=MyISAM AUTO_INCREMENT=1 ;
--
--- Table structure for table `group_data`
+-- Dumping data for table `directory_vars`
--
-DROP TABLE IF EXISTS `group_data`;
-CREATE TABLE `group_data` (
- `hostname` varchar(255) default NULL,
- `groupname` varchar(255) default NULL,
- `url` varchar(255) default NULL
-) ENGINE=InnoDB;
+
+-- --------------------------------------------------------
--
-- Table structure for table `iax_conf`
--
-DROP TABLE IF EXISTS `iax_conf`;
-CREATE TABLE `iax_conf` (
+CREATE TABLE IF NOT EXISTS `iax_conf` (
`id` int(11) NOT NULL auto_increment,
`profile_name` varchar(255) default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `iax_conf`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `iax_settings`
--
-DROP TABLE IF EXISTS `iax_settings`;
-CREATE TABLE `iax_settings` (
+CREATE TABLE IF NOT EXISTS `iax_settings` (
`id` int(11) NOT NULL auto_increment,
`iax_id` int(11) default NULL,
`param_name` varchar(255) default NULL,
`param_value` varchar(255) default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `iax_settings`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `ivr_conf`
--
-DROP TABLE IF EXISTS `ivr_conf`;
-CREATE TABLE `ivr_conf` (
+CREATE TABLE IF NOT EXISTS `ivr_conf` (
`id` int(10) unsigned NOT NULL auto_increment,
`name` varchar(64) NOT NULL,
`greet_long` varchar(255) NOT NULL,
@@ -322,110 +492,134 @@
`tts_voice` varchar(64) default NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_name` (`name`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `ivr_conf`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `ivr_entries`
--
-DROP TABLE IF EXISTS `ivr_entries`;
-CREATE TABLE `ivr_entries` (
+CREATE TABLE IF NOT EXISTS `ivr_entries` (
`id` int(10) unsigned NOT NULL auto_increment,
`ivr_id` int(10) unsigned NOT NULL,
`action` varchar(64) NOT NULL,
`digits` varchar(16) NOT NULL,
`params` varchar(255) default NULL,
PRIMARY KEY (`id`),
- UNIQUE KEY `unique_ivr_digits` USING BTREE (`ivr_id`,`digits`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+ UNIQUE KEY `unique_ivr_digits` (`ivr_id`,`digits`)
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
--
--- Table structure for table `jabber_subscriptions`
+-- Dumping data for table `ivr_entries`
--
-DROP TABLE IF EXISTS `jabber_subscriptions`;
-CREATE TABLE `jabber_subscriptions` (
- `sub_from` varchar(255) default NULL,
- `sub_to` varchar(255) default NULL,
- `show_pres` varchar(255) default NULL,
- `status` varchar(255) default NULL
-) ENGINE=InnoDB;
---
--- Table structure for table `lcr`
---
-
-DROP TABLE IF EXISTS `lcr`;
-CREATE TABLE `lcr` (
- `id` int(11) NOT NULL auto_increment,
- `digits` varchar(15) default NULL,
- `rate` int(11) NOT NULL,
- `carrier_id` int(11) NOT NULL,
- `lead_strip` int(11) NOT NULL,
- `trail_strip` int(11) NOT NULL,
- `prefix` varchar(16) NOT NULL,
- `suffix` varchar(16) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB;
+-- --------------------------------------------------------
--
-- Table structure for table `limit_conf`
--
-DROP TABLE IF EXISTS `limit_conf`;
-CREATE TABLE `limit_conf` (
+CREATE TABLE IF NOT EXISTS `limit_conf` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(255) default NULL,
`value` varchar(255) default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) TYPE=MyISAM AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `limit_conf`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `limit_data`
--
-DROP TABLE IF EXISTS `limit_data`;
-CREATE TABLE `limit_data` (
+CREATE TABLE IF NOT EXISTS `limit_data` (
`hostname` varchar(255) default NULL,
`realm` varchar(255) default NULL,
`id` varchar(255) default NULL,
`uuid` varchar(255) default NULL
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) TYPE=MyISAM;
+
+--
+-- Dumping data for table `limit_data`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `local_stream_conf`
--
-DROP TABLE IF EXISTS `local_stream_conf`;
-CREATE TABLE `local_stream_conf` (
+CREATE TABLE IF NOT EXISTS `local_stream_conf` (
`id` int(11) NOT NULL auto_increment,
`directory_name` varchar(255) default NULL,
`directory_path` text,
`param_name` varchar(255) default NULL,
`param_value` varchar(255) default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) TYPE=MyISAM AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `local_stream_conf`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `modless_conf`
+--
+
+CREATE TABLE IF NOT EXISTS `modless_conf` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `conf_name` varchar(64) NOT NULL,
+ PRIMARY KEY (`id`)
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `modless_conf`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `post_load_modules_conf`
--
-DROP TABLE IF EXISTS `post_load_modules_conf`;
-CREATE TABLE `post_load_modules_conf` (
+CREATE TABLE IF NOT EXISTS `post_load_modules_conf` (
`id` int(10) unsigned NOT NULL auto_increment,
`module_name` varchar(64) NOT NULL,
`load_module` tinyint(1) NOT NULL default '1',
`priority` int(10) unsigned NOT NULL default '1000',
PRIMARY KEY (`id`),
UNIQUE KEY `unique_mod` (`module_name`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `post_load_modules_conf`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `rss_conf`
--
-DROP TABLE IF EXISTS `rss_conf`;
-CREATE TABLE `rss_conf` (
+CREATE TABLE IF NOT EXISTS `rss_conf` (
`id` int(11) NOT NULL auto_increment,
`directory_id` int(11) NOT NULL,
`feed` text NOT NULL,
@@ -433,24 +627,36 @@
`description` text,
`priority` int(11) NOT NULL default '1000',
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) TYPE=MyISAM AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `rss_conf`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `sip_authentication`
--
-DROP TABLE IF EXISTS `sip_authentication`;
-CREATE TABLE `sip_authentication` (
+CREATE TABLE IF NOT EXISTS `sip_authentication` (
`nonce` varchar(255) default NULL,
- `expires` int(8) default NULL
-) ENGINE=InnoDB;
+ `expires` int(11) default NULL
+) TYPE=InnoDB;
+
+--
+-- Dumping data for table `sip_authentication`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `sip_dialogs`
--
-DROP TABLE IF EXISTS `sip_dialogs`;
-CREATE TABLE `sip_dialogs` (
+CREATE TABLE IF NOT EXISTS `sip_dialogs` (
`call_id` varchar(255) default NULL,
`uuid` varchar(255) default NULL,
`sip_to_user` varchar(255) default NULL,
@@ -462,14 +668,20 @@
`state` varchar(255) default NULL,
`direction` varchar(255) default NULL,
`user_agent` varchar(255) default NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB;
+
+--
+-- Dumping data for table `sip_dialogs`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `sip_registrations`
--
-DROP TABLE IF EXISTS `sip_registrations`;
-CREATE TABLE `sip_registrations` (
+CREATE TABLE IF NOT EXISTS `sip_registrations` (
`call_id` varchar(255) default NULL,
`sip_user` varchar(255) default NULL,
`sip_host` varchar(255) default NULL,
@@ -478,14 +690,20 @@
`rpid` varchar(255) default NULL,
`expires` int(11) default NULL,
`user_agent` varchar(255) default NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB;
+
+--
+-- Dumping data for table `sip_registrations`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `sip_subscriptions`
--
-DROP TABLE IF EXISTS `sip_subscriptions`;
-CREATE TABLE `sip_subscriptions` (
+CREATE TABLE IF NOT EXISTS `sip_subscriptions` (
`proto` varchar(255) default NULL,
`sip_user` varchar(255) default NULL,
`sip_host` varchar(255) default NULL,
@@ -499,148 +717,169 @@
`expires` int(11) default NULL,
`user_agent` varchar(255) default NULL,
`accept` varchar(255) default NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB;
+
+--
+-- Dumping data for table `sip_subscriptions`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `sofia_aliases`
--
-DROP TABLE IF EXISTS `sofia_aliases`;
-CREATE TABLE `sofia_aliases` (
+CREATE TABLE IF NOT EXISTS `sofia_aliases` (
`id` int(10) unsigned NOT NULL auto_increment,
`sofia_id` int(10) unsigned NOT NULL,
`alias_name` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `sofia_aliases`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `sofia_conf`
--
-DROP TABLE IF EXISTS `sofia_conf`;
-CREATE TABLE `sofia_conf` (
+CREATE TABLE IF NOT EXISTS `sofia_conf` (
`id` int(11) NOT NULL auto_increment,
`profile_name` varchar(255) default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `sofia_conf`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `sofia_domains`
--
-DROP TABLE IF EXISTS `sofia_domains`;
-CREATE TABLE `sofia_domains` (
+CREATE TABLE IF NOT EXISTS `sofia_domains` (
`id` int(11) NOT NULL auto_increment,
`sofia_id` int(11) default NULL,
`domain_name` varchar(255) default NULL,
`parse` tinyint(1) default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `sofia_domains`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `sofia_gateways`
--
-DROP TABLE IF EXISTS `sofia_gateways`;
-CREATE TABLE `sofia_gateways` (
+CREATE TABLE IF NOT EXISTS `sofia_gateways` (
`id` int(11) NOT NULL auto_increment,
`sofia_id` int(11) default NULL,
`gateway_name` varchar(255) default NULL,
`gateway_param` varchar(255) default NULL,
`gateway_value` varchar(255) default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `sofia_gateways`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `sofia_settings`
--
-DROP TABLE IF EXISTS `sofia_settings`;
-CREATE TABLE `sofia_settings` (
+CREATE TABLE IF NOT EXISTS `sofia_settings` (
`id` int(11) NOT NULL auto_increment,
`sofia_id` int(11) default NULL,
`param_name` varchar(255) default NULL,
`param_value` varchar(255) default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `sofia_settings`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `voicemail_conf`
--
-DROP TABLE IF EXISTS `voicemail_conf`;
-CREATE TABLE `voicemail_conf` (
+CREATE TABLE IF NOT EXISTS `voicemail_conf` (
`id` int(10) unsigned NOT NULL auto_increment,
`vm_profile` varchar(64) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_profile` (`vm_profile`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
--
--- Table structure for table `voicemail_data`
+-- Dumping data for table `voicemail_conf`
--
-DROP TABLE IF EXISTS `voicemail_data`;
-CREATE TABLE `voicemail_data` (
- `created_epoch` int(8) default NULL,
- `read_epoch` int(8) default NULL,
- `user` varchar(255) default NULL,
- `domain` varchar(255) default NULL,
- `uuid` varchar(255) default NULL,
- `cid_name` varchar(255) default NULL,
- `cid_number` varchar(255) default NULL,
- `in_folder` varchar(255) default NULL,
- `file_path` varchar(255) default NULL,
- `flags` varchar(255) default NULL,
- `read_flags` varchar(255) default NULL
-) ENGINE=InnoDB;
+
+-- --------------------------------------------------------
--
-- Table structure for table `voicemail_email`
--
-DROP TABLE IF EXISTS `voicemail_email`;
-CREATE TABLE `voicemail_email` (
+CREATE TABLE IF NOT EXISTS `voicemail_email` (
`id` int(10) unsigned NOT NULL auto_increment,
`voicemail_id` int(10) unsigned NOT NULL,
`param_name` varchar(64) NOT NULL,
`param_value` varchar(64) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_profile_param` (`param_name`,`voicemail_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
--
--- Table structure for table `voicemail_prefs`
+-- Dumping data for table `voicemail_email`
--
-DROP TABLE IF EXISTS `voicemail_prefs`;
-CREATE TABLE `voicemail_prefs` (
- `user` varchar(255) default NULL,
- `domain` varchar(255) default NULL,
- `name_path` varchar(255) default NULL,
- `greeting_path` varchar(255) default NULL
-) ENGINE=InnoDB;
+
+-- --------------------------------------------------------
--
-- Table structure for table `voicemail_settings`
--
-DROP TABLE IF EXISTS `voicemail_settings`;
-CREATE TABLE `voicemail_settings` (
+CREATE TABLE IF NOT EXISTS `voicemail_settings` (
`id` int(11) NOT NULL auto_increment,
`voicemail_id` int(11) default NULL,
`param_name` varchar(255) default NULL,
`param_value` varchar(255) default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
+) TYPE=InnoDB AUTO_INCREMENT=1 ;
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
+--
+-- Dumping data for table `voicemail_settings`
+--
+
+
+--
+-- Constraints for dumped tables
+--
--- Dump completed on 2008-04-10 15:11:05
+--
+-- Constraints for table `dingaling_profile_params`
+--
+ALTER TABLE `dingaling_profile_params`
+ ADD CONSTRAINT `dingaling_profile` FOREIGN KEY (`dingaling_id`) REFERENCES `dingaling_profiles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
Modified: freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/sql/mysql-5.0-with-samples.sql
==============================================================================
--- freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/sql/mysql-5.0-with-samples.sql (original)
+++ freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/sql/mysql-5.0-with-samples.sql Sun Feb 15 21:38:28 2009
@@ -1,961 +1,1433 @@
--- MySQL dump 10.11
---
--- Host: localhost Database: freeswitch
--- ------------------------------------------------------
--- Server version 5.0.45-community-nt
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
---
--- Table structure for table `acl_lists`
---
-
-DROP TABLE IF EXISTS `acl_lists`;
-CREATE TABLE `acl_lists` (
- `id` int(10) unsigned NOT NULL auto_increment,
- `acl_name` varchar(128) NOT NULL,
- `default_policy` varchar(45) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
-
---
--- Dumping data for table `acl_lists`
---
-
-LOCK TABLES `acl_lists` WRITE;
-/*!40000 ALTER TABLE `acl_lists` DISABLE KEYS */;
-INSERT INTO `acl_lists` VALUES (1,'rfc1918','deny'),(2,'lan','allow');
-/*!40000 ALTER TABLE `acl_lists` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `acl_nodes`
---
-
-DROP TABLE IF EXISTS `acl_nodes`;
-CREATE TABLE `acl_nodes` (
- `id` int(10) unsigned NOT NULL auto_increment,
- `cidr` varchar(45) NOT NULL,
- `type` varchar(16) NOT NULL,
- `list_id` int(10) unsigned NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
-
---
--- Dumping data for table `acl_nodes`
---
-
-LOCK TABLES `acl_nodes` WRITE;
-/*!40000 ALTER TABLE `acl_nodes` DISABLE KEYS */;
-INSERT INTO `acl_nodes` VALUES (1,'192.168.0.0/16','allow',1),(2,'10.0.0.0/8','allow',1),(3,'172.16.0.0/12','allow',1);
-/*!40000 ALTER TABLE `acl_nodes` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `conference_advertise`
---
-
-DROP TABLE IF EXISTS `conference_advertise`;
-CREATE TABLE `conference_advertise` (
- `id` int(10) unsigned NOT NULL auto_increment,
- `room` varchar(64) NOT NULL,
- `status` varchar(128) NOT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `unique_room` (`room`)
-) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
-
---
--- Dumping data for table `conference_advertise`
---
-
-LOCK TABLES `conference_advertise` WRITE;
-/*!40000 ALTER TABLE `conference_advertise` DISABLE KEYS */;
-INSERT INTO `conference_advertise` VALUES (1,'3000@$${domain}','Freeswitch Conference'),(2,'3001@$${domain}','FreeSWITCH Conference 2'),(3,'3002@$${domain}','FreeSWITCH Conference 3');
-/*!40000 ALTER TABLE `conference_advertise` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `conference_controls`
---
-
-DROP TABLE IF EXISTS `conference_controls`;
-CREATE TABLE `conference_controls` (
- `id` int(10) unsigned NOT NULL auto_increment,
- `conf_group` varchar(64) NOT NULL,
- `action` varchar(64) NOT NULL,
- `digits` varchar(16) NOT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `unique_group_action` USING BTREE (`conf_group`,`action`)
-) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1;
-
---
--- Dumping data for table `conference_controls`
---
-
-LOCK TABLES `conference_controls` WRITE;
-/*!40000 ALTER TABLE `conference_controls` DISABLE KEYS */;
-INSERT INTO `conference_controls` VALUES (1,'default','mute','0'),(2,'default','deaf_mute','*'),(3,'default','energy up','9'),(4,'default','energy equ','8'),(5,'default','energy dn','7'),(6,'default','vol talk up','3'),(7,'default','vol talk dn','1'),(8,'default','vol talk zero','2'),(9,'default','vol listen up','6'),(10,'default','vol listen dn','4'),(11,'default','vol listen zero','5'),(12,'default','hangup','#');
-/*!40000 ALTER TABLE `conference_controls` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `conference_profiles`
---
-
-DROP TABLE IF EXISTS `conference_profiles`;
-CREATE TABLE `conference_profiles` (
- `id` int(10) unsigned NOT NULL auto_increment,
- `profile_name` varchar(64) NOT NULL,
- `param_name` varchar(64) NOT NULL,
- `param_value` varchar(64) NOT NULL,
- PRIMARY KEY (`id`),
- KEY `unique_profile_param` (`profile_name`,`param_name`)
-) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;
-
---
--- Dumping data for table `conference_profiles`
---
-
-LOCK TABLES `conference_profiles` WRITE;
-/*!40000 ALTER TABLE `conference_profiles` DISABLE KEYS */;
-INSERT INTO `conference_profiles` VALUES (1,'default','domain','$${domain}'),(2,'default','rate','8000'),(3,'default','interval','20'),(4,'default','energy-level','300'),(5,'default','moh-sound','$${moh_uri}'),(6,'default','caller-id-name','$${outbound_caller_name}'),(7,'default','caller-id-number','$${outbound_caller_number}');
-/*!40000 ALTER TABLE `conference_profiles` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `dialplan`
---
-
-DROP TABLE IF EXISTS `dialplan`;
-CREATE TABLE `dialplan` (
- `id` int(11) NOT NULL auto_increment,
- `context` varchar(64) NOT NULL,
- `extension` varchar(64) NOT NULL,
- `condition_field` varchar(64) NOT NULL,
- `condition_expression` varchar(64) NOT NULL,
- `application_name` varchar(64) NOT NULL,
- `application_data` text,
- `weight` int(11) NOT NULL,
- `type` varchar(16) NOT NULL default 'action',
- `ext_continue` text NOT NULL,
- `global_weight` int(11) NOT NULL default '10000',
- `cond_break` varchar(8) default NULL,
- PRIMARY KEY (`id`)
-) ENGINE=MyISAM AUTO_INCREMENT=388 DEFAULT CHARSET=utf8;
-
---
--- Dumping data for table `dialplan`
---
-
-LOCK TABLES `dialplan` WRITE;
-/*!40000 ALTER TABLE `dialplan` DISABLE KEYS */;
-INSERT INTO `dialplan` VALUES (273,'US-Numbering-Plan','US_International','destination_number','^011(\\d+)$','enum','1$1',3,'action','0',200,''),(272,'US-Numbering-Plan','US_International','destination_number','^011(\\d+)$','set','hangup_after_bridge=true',2,'action','0',200,''),(271,'US-Numbering-Plan','US_International','destination_number','^011(\\d+)$','set','continue_on_fail=true',1,'action','0',200,''),(383,'default','hold_music','destination_number','^9999$','playback','$${moh_uri}',2,'action','0',1900,''),(384,'default','enum','destination_number','^(.*)$','transfer','$1 enum',1,'action','0',2000,''),(382,'default','hold_music','destination_number','^9999$','answer','',1,'action','0',1900,''),(378,'default','ivr_demo','destination_number','5000','ivr','demo',1,'action','0',1600,''),(379,'default','park','destination_number','^(590[0-9])$','fifo','$1@$${domain} in undef $${moh_uri}',1,'action','0',1700,''),(380,'default','unpark','destination_number','^\\*{0,2}park\\+(590[0-9])$','answer','',1,'action','0',1800,''),(381,'default','unpark','destination_number','^\\*{0,2}park\\+(590[0-9])$','fifo','$1@$${domain} out nowait',2,'action','0',1800,''),(375,'default','sip_uri','destination_number','^sip:(.*)$','bridge','sofia/${use_profile}/$1',1,'action','0',1300,''),(376,'default','conferences','destination_number','^(3\\d{3})$','conference','$1@default',1,'action','0',1400,''),(377,'default','freeswitch_public_conf_via_sip','destination_number','^9(888|1616)$','bridge','sofia/${use_profile}/$1(a)conference.freeswitch.org',1,'action','0',1500,''),(372,'default','Local_Extension','destination_number','^${caller_id_number}$','answer','',13,'anti-action','0',1200,''),(373,'default','Local_Extension','destination_number','^${caller_id_number}$','sleep','1000',14,'anti-action','0',1200,''),(374,'default','Local_Extension','destination_number','^${caller_id_number}$','voicemail','default $${domain} ${dialed_ext}',15,'anti-action','0',1200,''),(371,'default','Local_Extension','destination_number','^${caller_id_number}$','bridge','{left_hanging_extension=5900,transfer_fallback_extension=${dialed_ext}}USER/${dialed_ext}@$${domain}',12,'anti-action','0',1200,''),(367,'default','Local_Extension','destination_number','^${caller_id_number}$','set','left_hanging_extension=5900',8,'anti-action','0',1200,''),(368,'default','Local_Extension','destination_number','^${caller_id_number}$','set','continue_on_fail=true',9,'anti-action','0',1200,''),(369,'default','Local_Extension','destination_number','^${caller_id_number}$','db','insert/call_return/${dialed_ext}/${caller_id_number}',10,'anti-action','0',1200,''),(370,'default','Local_Extension','destination_number','^${caller_id_number}$','db','insert/last_dial_ext/${dialed_ext}/${uuid}',11,'anti-action','0',1200,''),(364,'default','Local_Extension','destination_number','^${caller_id_number}$','ring_ready','',5,'anti-action','0',1200,''),(365,'default','Local_Extension','destination_number','^${caller_id_number}$','set','call_timeout=130',6,'anti-action','0',1200,''),(366,'default','Local_Extension','destination_number','^${caller_id_number}$','set','hangup_after_bridge=true',7,'anti-action','0',1200,''),(361,'default','Local_Extension','destination_number','^${caller_id_number}$','answer','',2,'action','0',1200,''),(362,'default','Local_Extension','destination_number','^${caller_id_number}$','sleep','1000',3,'action','0',1200,''),(363,'default','Local_Extension','destination_number','^${caller_id_number}$','voicemail','check default $${domain} ${dialed_ext}',4,'action','0',1200,''),(359,'default','Local_Extension','destination_number','^(10[01][0-9])$','set','dialed_ext=$1',1,'action','0',1200,'on-true'),(360,'default','Local_Extension','destination_number','^${caller_id_number}$','set','voicemail_authorized=${sip_authorized}',1,'action','0',1200,''),(357,'default','call-group-order','destination_number','^83(\\d{2})$','set','call_timeout=10',1,'action','0',1100,''),(358,'default','call-group-order','destination_number','^83(\\d{2})$','bridge','${group(call:$1:order)}',2,'action','0',1100,''),(356,'default','call-group-simo','destination_number','^82(\\d{2})$','bridge','${group(call:$1)}',1,'action','0',1000,''),(355,'default','add-group','destination_number','^81(\\d{2})$','gentones','%(1000, 0, 640)',3,'action','0',900,''),(354,'default','add-group','destination_number','^81(\\d{2})$','group','insert:$1:${sofia_contact(${sip_from_user}@${domain})}',2,'action','0',900,''),(350,'default','del-group','destination_number','^80(\\d{2})$','answer','',1,'action','0',800,''),(351,'default','del-group','destination_number','^80(\\d{2})$','group','delete:$1:${sofia_contact(${sip_from_user}@${domain})}',2,'action','0',800,''),(352,'default','del-group','destination_number','^80(\\d{2})$','gentones','%(1000, 0, 320)',3,'action','0',800,''),(353,'default','add-group','destination_number','^81(\\d{2})$','answer','',1,'action','0',900,''),(349,'default','call_return','destination_number','^\\*69$|^869$','transfer','${db(select/call_return/${caller_id_number})}',1,'action','0',700,''),(348,'default','eavesdrop','destination_number','^88(.*)$|^\\*0(.*)$','eavesdrop','${db(select/spymap/$1)}',2,'action','0',600,''),(347,'default','eavesdrop','destination_number','^88(.*)$|^\\*0(.*)$','answer','',1,'action','0',600,''),(344,'default','global','','','db','insert/spymap/${caller_id_number}/${uuid}',2,'action','1',500,''),(345,'default','global','','','db','insert/last_dial/${caller_id_number}/${destination_number}',3,'action','1',500,''),(346,'default','global','','','db','insert/last_dial/global/${uuid}',4,'action','1',500,''),(340,'default','global','${network_addr}','','set','use_profile=${cond(${is_lan_addr($${local_ip_v4})} == yes ? nat : default)}',1,'action','1',500,''),(342,'default','global','${numbering_plan}','','set_user','default@${domain}',1,'action','1',500,''),(343,'default','global','','','info','',1,'action','1',500,''),(341,'default','global','${network_addr}','','set','use_profile=${cond(${is_lan_addr(${network_addr})} == yes ? nat : default)}',2,'anti-action','1',500,''),(338,'default','intercept-ext','destination_number','^\\*\\*(\\d+)$','sleep','2000',3,'action','0',300,''),(339,'default','redial','destination_number','^870$','transfer','${db(select/last_dial/${caller_id_number})}',1,'action','0',400,''),(337,'default','intercept-ext','destination_number','^\\*\\*(\\d+)$','intercept','${db(select/last_dial_ext/$1)}',2,'action','0',300,''),(335,'default','intercept','destination_number','^886$','sleep','2000',3,'action','0',200,''),(336,'default','intercept-ext','destination_number','^\\*\\*(\\d+)$','answer','',1,'action','0',300,''),(333,'default','intercept','destination_number','^886$','answer','',1,'action','0',200,''),(334,'default','intercept','destination_number','^886$','intercept','${db(select/last_dial/global)}',2,'action','0',200,''),(113,'public','public_extensions','destination_number','^(10[01][0-9])$','transfer','$1 XML default',1,'action','0',200,''),(114,'public','public_did','destination_number','^(5551212)$','transfer','$1 XML default',1,'action','0',300,''),(274,'US-Numbering-Plan','US_International','destination_number','^011(\\d+)$','bridge','${enum_auto_route}',4,'action','0',200,''),(275,'US-Numbering-Plan','US_International','destination_number','^011(\\d+)$','bridge','sofia/gateway/${default_gateway}/011$1',5,'action','0',200,''),(276,'US-Numbering-Plan','US_LD','destination_number','^1?([2-9]\\d{2}[2-9]\\d{6})$','set','continue_on_fail=true',1,'action','0',300,''),(277,'US-Numbering-Plan','US_LD','destination_number','^1?([2-9]\\d{2}[2-9]\\d{6})$','set','hangup_after_bridge=true',2,'action','0',300,''),(278,'US-Numbering-Plan','US_LD','destination_number','^1?([2-9]\\d{2}[2-9]\\d{6})$','enum','1$1',3,'action','0',300,''),(279,'US-Numbering-Plan','US_LD','destination_number','^1?([2-9]\\d{2}[2-9]\\d{6})$','bridge','${enum_auto_route}',4,'action','0',300,''),(280,'US-Numbering-Plan','US_LD','destination_number','^1?([2-9]\\d{2}[2-9]\\d{6})$','bridge','sofia/gateway/${default_gateway}/1$1',5,'action','0',300,''),(281,'US-Numbering-Plan','US_Local','${default_area_code}','\\d{3}','say','you must dial the area code to call this destination',1,'anti-action','0',400,'on-true'),(282,'US-Numbering-Plan','US_Local','destination_number','^([2-9]\\d{6})$','set','continue_on_fail=true',1,'action','0',400,''),(283,'US-Numbering-Plan','US_Local','destination_number','^([2-9]\\d{6})$','set','hangup_after_bridge=true',2,'action','0',400,''),(284,'US-Numbering-Plan','US_Local','destination_number','^([2-9]\\d{6})$','enum','1$1',3,'action','0',400,''),(285,'US-Numbering-Plan','US_Local','destination_number','^([2-9]\\d{6})$','bridge','${enum_auto_route}',4,'action','0',400,''),(286,'US-Numbering-Plan','US_Local','destination_number','^([2-9]\\d{6})$','bridge','sofia/gateway/${default_gateway}/1${default_area_code}$1',5,'action','0',400,''),(287,'US-Numbering-Plan','FCC_Services','^([4689]11)$','','bridge','sofia/gateway/${default_gateway}/$1',1,'action','0',500,''),(385,'default','new_exten','destination_number','^(\\d+)$','bridge','sofia/gateway/gw1/number',0,'action','true',10000,'never'),(386,'default','new_exten','destination_number','^(\\d+)$','bridge','sofia/gateway/gw1/number',0,'action','true',10000,'never'),(387,'default','new_exten','destination_number','^(\\d+)$','bridge','sofia/gateway/gw2/number',0,'anti-action','true',10000,'never');
-/*!40000 ALTER TABLE `dialplan` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `dialplan_special`
---
-
-DROP TABLE IF EXISTS `dialplan_special`;
-CREATE TABLE `dialplan_special` (
- `id` int(11) NOT NULL auto_increment,
- `context` varchar(255) NOT NULL,
- `class_file` varchar(255) NOT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `unique_context` (`context`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-
---
--- Dumping data for table `dialplan_special`
---
-
-LOCK TABLES `dialplan_special` WRITE;
-/*!40000 ALTER TABLE `dialplan_special` DISABLE KEYS */;
-/*!40000 ALTER TABLE `dialplan_special` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `dingaling_profile_params`
---
-
-DROP TABLE IF EXISTS `dingaling_profile_params`;
-CREATE TABLE `dingaling_profile_params` (
- `id` int(10) unsigned NOT NULL auto_increment,
- `dingaling_id` int(10) unsigned NOT NULL,
- `param_name` varchar(64) NOT NULL,
- `param_value` varchar(64) NOT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `unique_type_name` (`dingaling_id`,`param_name`),
- CONSTRAINT `dingaling_profile` FOREIGN KEY (`dingaling_id`) REFERENCES `dingaling_profiles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
-
---
--- Dumping data for table `dingaling_profile_params`
---
-
-LOCK TABLES `dingaling_profile_params` WRITE;
-/*!40000 ALTER TABLE `dingaling_profile_params` DISABLE KEYS */;
-INSERT INTO `dingaling_profile_params` VALUES (1,1,'password','secret'),(2,1,'dialplan','XML,enum'),(3,1,'server','example.org'),(4,1,'name','fs.example.org');
-/*!40000 ALTER TABLE `dingaling_profile_params` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `dingaling_profiles`
---
-
-DROP TABLE IF EXISTS `dingaling_profiles`;
-CREATE TABLE `dingaling_profiles` (
- `id` int(10) unsigned NOT NULL auto_increment,
- `profile_name` varchar(64) NOT NULL,
- `type` varchar(64) NOT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `unique_name` (`profile_name`)
-) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
-
---
--- Dumping data for table `dingaling_profiles`
---
-
-LOCK TABLES `dingaling_profiles` WRITE;
-/*!40000 ALTER TABLE `dingaling_profiles` DISABLE KEYS */;
-INSERT INTO `dingaling_profiles` VALUES (1,'fs.intralanman.servehttp.com','component');
-/*!40000 ALTER TABLE `dingaling_profiles` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `dingaling_settings`
---
-
-DROP TABLE IF EXISTS `dingaling_settings`;
-CREATE TABLE `dingaling_settings` (
- `id` int(10) unsigned NOT NULL auto_increment,
- `param_name` varchar(64) NOT NULL,
- `param_value` varchar(64) NOT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `unique_param` (`param_name`)
-) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
-
---
--- Dumping data for table `dingaling_settings`
---
-
-LOCK TABLES `dingaling_settings` WRITE;
-/*!40000 ALTER TABLE `dingaling_settings` DISABLE KEYS */;
-INSERT INTO `dingaling_settings` VALUES (1,'debug','0'),(2,'codec-prefs','$${global_codec_prefs}');
-/*!40000 ALTER TABLE `dingaling_settings` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `directory`
---
-
-DROP TABLE IF EXISTS `directory`;
-CREATE TABLE `directory` (
- `id` int(11) NOT NULL auto_increment,
- `username` varchar(255) NOT NULL,
- `domain` varchar(255) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;
-
---
--- Dumping data for table `directory`
---
-
-LOCK TABLES `directory` WRITE;
-/*!40000 ALTER TABLE `directory` DISABLE KEYS */;
-INSERT INTO `directory` VALUES (1,'1000','example.com'),(2,'1001','example.org'),(3,'1002','example.net'),(5,'1003','example.info'),(6,'1004','example.com'),(7,'1005','example.org'),(8,'1006','example.net'),(9,'1007','example.info'),(10,'1008','$${domain}'),(11,'1009','$${local_ip_v4}');
-/*!40000 ALTER TABLE `directory` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `directory_domains`
---
-
-DROP TABLE IF EXISTS `directory_domains`;
-CREATE TABLE `directory_domains` (
- `id` int(10) unsigned NOT NULL auto_increment,
- `domain_name` varchar(128) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
-
---
--- Dumping data for table `directory_domains`
---
-
-LOCK TABLES `directory_domains` WRITE;
-/*!40000 ALTER TABLE `directory_domains` DISABLE KEYS */;
-INSERT INTO `directory_domains` VALUES (1,'freeswitch.org'),(2,'sofaswitch.org');
-/*!40000 ALTER TABLE `directory_domains` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `directory_gateway_params`
---
-
-DROP TABLE IF EXISTS `directory_gateway_params`;
-CREATE TABLE `directory_gateway_params` (
- `id` int(10) unsigned NOT NULL auto_increment,
- `d_gw_id` int(10) unsigned NOT NULL,
- `param_name` varchar(64) NOT NULL,
- `param_value` varchar(64) NOT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `unique_gw_param` (`d_gw_id`,`param_name`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-
---
--- Dumping data for table `directory_gateway_params`
---
-
-LOCK TABLES `directory_gateway_params` WRITE;
-/*!40000 ALTER TABLE `directory_gateway_params` DISABLE KEYS */;
-/*!40000 ALTER TABLE `directory_gateway_params` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `directory_gateways`
---
-
-DROP TABLE IF EXISTS `directory_gateways`;
-CREATE TABLE `directory_gateways` (
- `id` int(10) unsigned NOT NULL auto_increment,
- `directory_id` int(10) unsigned NOT NULL,
- `gateway_name` varchar(128) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-
---
--- Dumping data for table `directory_gateways`
---
-
-LOCK TABLES `directory_gateways` WRITE;
-/*!40000 ALTER TABLE `directory_gateways` DISABLE KEYS */;
-/*!40000 ALTER TABLE `directory_gateways` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `directory_global_params`
---
-
-DROP TABLE IF EXISTS `directory_global_params`;
-CREATE TABLE `directory_global_params` (
- `id` int(10) unsigned NOT NULL auto_increment,
- `param_name` varchar(64) NOT NULL,
- `param_value` varchar(128) NOT NULL,
- `domain_id` int(10) unsigned NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
-
---
--- Dumping data for table `directory_global_params`
---
-
-LOCK TABLES `directory_global_params` WRITE;
-/*!40000 ALTER TABLE `directory_global_params` DISABLE KEYS */;
-INSERT INTO `directory_global_params` VALUES (1,'default_gateway','errors',1);
-/*!40000 ALTER TABLE `directory_global_params` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `directory_global_vars`
---
-
-DROP TABLE IF EXISTS `directory_global_vars`;
-CREATE TABLE `directory_global_vars` (
- `id` int(10) unsigned NOT NULL auto_increment,
- `var_name` varchar(64) NOT NULL,
- `var_value` varchar(128) NOT NULL,
- `domain_id` int(10) unsigned NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-
---
--- Dumping data for table `directory_global_vars`
---
-
-LOCK TABLES `directory_global_vars` WRITE;
-/*!40000 ALTER TABLE `directory_global_vars` DISABLE KEYS */;
-/*!40000 ALTER TABLE `directory_global_vars` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `directory_params`
---
-
-DROP TABLE IF EXISTS `directory_params`;
-CREATE TABLE `directory_params` (
- `id` int(11) NOT NULL auto_increment,
- `directory_id` int(11) default NULL,
- `param_name` varchar(255) default NULL,
- `param_value` varchar(255) default NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8;
-
---
--- Dumping data for table `directory_params`
---
-
-LOCK TABLES `directory_params` WRITE;
-/*!40000 ALTER TABLE `directory_params` DISABLE KEYS */;
-INSERT INTO `directory_params` VALUES (1,1,'password','1234'),(2,1,'vm-password','861000'),(3,2,'password','1234'),(4,2,'vm-password','861001'),(7,5,'password','1234'),(8,6,'password','1234'),(9,7,'password','1234'),(10,8,'password','1234'),(11,9,'password','1234'),(12,10,'password','1234'),(13,11,'password','1234'),(14,3,'vm-password','861002'),(15,3,'password','1234'),(16,11,'vm-password','861009'),(17,10,'vm-password','861008'),(18,9,'vm-password','861007'),(19,8,'vm-password','861006'),(20,7,'vm-password','861005'),(21,6,'vm-password','861004'),(22,5,'vm-password','861003');
-/*!40000 ALTER TABLE `directory_params` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `directory_vars`
---
-
-DROP TABLE IF EXISTS `directory_vars`;
-CREATE TABLE `directory_vars` (
- `id` int(11) NOT NULL auto_increment,
- `directory_id` int(11) default NULL,
- `var_name` varchar(255) default NULL,
- `var_value` varchar(255) default NULL,
- PRIMARY KEY (`id`)
-) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
-
---
--- Dumping data for table `directory_vars`
---
-
-LOCK TABLES `directory_vars` WRITE;
-/*!40000 ALTER TABLE `directory_vars` DISABLE KEYS */;
-INSERT INTO `directory_vars` VALUES (1,1,'numbering_plan','US'),(2,2,'numbering_plan','US'),(3,3,'numbering_plan','AU'),(4,5,'numbering_plan','US'),(5,5,'area_code','434');
-/*!40000 ALTER TABLE `directory_vars` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `iax_conf`
---
-
-DROP TABLE IF EXISTS `iax_conf`;
-CREATE TABLE `iax_conf` (
- `id` int(11) NOT NULL auto_increment,
- `profile_name` varchar(255) default NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
-
---
--- Dumping data for table `iax_conf`
---
-
-LOCK TABLES `iax_conf` WRITE;
-/*!40000 ALTER TABLE `iax_conf` DISABLE KEYS */;
-INSERT INTO `iax_conf` VALUES (3,'test_profile');
-/*!40000 ALTER TABLE `iax_conf` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `iax_settings`
---
-
-DROP TABLE IF EXISTS `iax_settings`;
-CREATE TABLE `iax_settings` (
- `id` int(11) NOT NULL auto_increment,
- `iax_id` int(11) default NULL,
- `param_name` varchar(255) default NULL,
- `param_value` varchar(255) default NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=43 DEFAULT CHARSET=latin1;
-
---
--- Dumping data for table `iax_settings`
---
-
-LOCK TABLES `iax_settings` WRITE;
-/*!40000 ALTER TABLE `iax_settings` DISABLE KEYS */;
-INSERT INTO `iax_settings` VALUES (35,3,'debug','1'),(36,3,'ip','$${local_ip_v4}'),(37,3,'port','4569'),(38,3,'context','public'),(39,3,'dialplan','enum,XML'),(40,3,'codec-prefs','$${global_codec_prefs}'),(41,3,'codec-master','us'),(42,3,'codec-rate','8');
-/*!40000 ALTER TABLE `iax_settings` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `ivr_conf`
---
-
-DROP TABLE IF EXISTS `ivr_conf`;
-CREATE TABLE `ivr_conf` (
- `id` int(10) unsigned NOT NULL auto_increment,
- `name` varchar(64) NOT NULL,
- `greet_long` varchar(255) NOT NULL,
- `greet_short` varchar(255) NOT NULL,
- `invalid_sound` varchar(255) NOT NULL,
- `exit_sound` varchar(255) NOT NULL,
- `max_failures` int(10) unsigned NOT NULL default '3',
- `timeout` int(11) NOT NULL default '5',
- `tts_engine` varchar(64) default NULL,
- `tts_voice` varchar(64) default NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `unique_name` (`name`)
-) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
-
---
--- Dumping data for table `ivr_conf`
---
-
-LOCK TABLES `ivr_conf` WRITE;
-/*!40000 ALTER TABLE `ivr_conf` DISABLE KEYS */;
-INSERT INTO `ivr_conf` VALUES (1,'demo','soundfiles/ivr/demo/greet-long.wav','soundfiles/ivr/demo/greet-short.wav','soundfiles/ivr/invalid.wav','soundfiles/ivr/exit.wav',3,5,'cepstral','allison'),(2,'demo2','soundfiles/ivr/demo2/greet-long.wav','soundfiles/ivr/demo2/greet-short.wav','soundfiles/ivr/invalid.wav','soundfiles/ivr/exit.wav',3,5,NULL,NULL),(3,'menu8','soundfiles/ivr/menu8/greet-long.wav','soundfiles/ivr/menu8/greet-short.wav','soundfiles/ivr/menu8/invalid.wav','soundfiles/ivr/menu8/exit.wav',3,5,NULL,NULL);
-/*!40000 ALTER TABLE `ivr_conf` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `ivr_entries`
---
-
-DROP TABLE IF EXISTS `ivr_entries`;
-CREATE TABLE `ivr_entries` (
- `id` int(10) unsigned NOT NULL auto_increment,
- `ivr_id` int(10) unsigned NOT NULL,
- `action` varchar(64) NOT NULL,
- `digits` varchar(16) NOT NULL,
- `params` varchar(255) default NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `unique_ivr_digits` USING BTREE (`ivr_id`,`digits`)
-) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
-
---
--- Dumping data for table `ivr_entries`
---
-
-LOCK TABLES `ivr_entries` WRITE;
-/*!40000 ALTER TABLE `ivr_entries` DISABLE KEYS */;
-INSERT INTO `ivr_entries` VALUES (1,1,'menu-play-sound','1','soundfiles/features.wav'),(2,1,'menu-exit','*',NULL),(3,1,'menu-sub','2','demo2'),(4,1,'menu-exec-api','3','bridge sofia/$${domain}/888(a)conference.freeswtich.org'),(5,1,'menu-call-transfer','4','888'),(6,2,'menu-back','#',NULL),(7,2,'menu-top','*',NULL),(8,3,'menu-back','#',NULL),(9,3,'menu-top','*',NULL),(10,3,'menu-playsound','4','soundfiles/4.wav');
-/*!40000 ALTER TABLE `ivr_entries` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `limit_conf`
---
-
-DROP TABLE IF EXISTS `limit_conf`;
-CREATE TABLE `limit_conf` (
- `id` int(11) NOT NULL auto_increment,
- `name` varchar(255) default NULL,
- `value` varchar(255) default NULL,
- PRIMARY KEY (`id`)
-) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-
---
--- Dumping data for table `limit_conf`
---
-
-LOCK TABLES `limit_conf` WRITE;
-/*!40000 ALTER TABLE `limit_conf` DISABLE KEYS */;
-/*!40000 ALTER TABLE `limit_conf` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `limit_data`
---
-
-DROP TABLE IF EXISTS `limit_data`;
-CREATE TABLE `limit_data` (
- `hostname` varchar(255) default NULL,
- `realm` varchar(255) default NULL,
- `id` varchar(255) default NULL,
- `uuid` varchar(255) default NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-
---
--- Dumping data for table `limit_data`
---
-
-LOCK TABLES `limit_data` WRITE;
-/*!40000 ALTER TABLE `limit_data` DISABLE KEYS */;
-/*!40000 ALTER TABLE `limit_data` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `local_stream_conf`
---
-
-DROP TABLE IF EXISTS `local_stream_conf`;
-CREATE TABLE `local_stream_conf` (
- `id` int(11) NOT NULL auto_increment,
- `directory_name` varchar(255) default NULL,
- `directory_path` text,
- `param_name` varchar(255) default NULL,
- `param_value` varchar(255) default NULL,
- PRIMARY KEY (`id`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-
---
--- Dumping data for table `local_stream_conf`
---
-
-LOCK TABLES `local_stream_conf` WRITE;
-/*!40000 ALTER TABLE `local_stream_conf` DISABLE KEYS */;
-/*!40000 ALTER TABLE `local_stream_conf` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `modless_conf`
---
-
-DROP TABLE IF EXISTS `modless_conf`;
-CREATE TABLE `modless_conf` (
- `id` int(10) unsigned NOT NULL auto_increment,
- `conf_name` varchar(64) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
-
---
--- Dumping data for table `modless_conf`
---
-
-LOCK TABLES `modless_conf` WRITE;
-/*!40000 ALTER TABLE `modless_conf` DISABLE KEYS */;
-INSERT INTO `modless_conf` VALUES (1,'acl.conf'),(2,'postload_switch.conf'),(3,'mod_post_load_modules.conf');
-/*!40000 ALTER TABLE `modless_conf` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `post_load_modules_conf`
---
-
-DROP TABLE IF EXISTS `post_load_modules_conf`;
-CREATE TABLE `post_load_modules_conf` (
- `id` int(10) unsigned NOT NULL auto_increment,
- `module_name` varchar(64) NOT NULL,
- `load_module` tinyint(1) NOT NULL default '1',
- `priority` int(10) unsigned NOT NULL default '1000',
- PRIMARY KEY (`id`),
- UNIQUE KEY `unique_mod` (`module_name`)
-) ENGINE=InnoDB AUTO_INCREMENT=54 DEFAULT CHARSET=latin1;
-
---
--- Dumping data for table `post_load_modules_conf`
---
-
-LOCK TABLES `post_load_modules_conf` WRITE;
-/*!40000 ALTER TABLE `post_load_modules_conf` DISABLE KEYS */;
-INSERT INTO `post_load_modules_conf` VALUES (1,'mod_sofia',1,2000),(2,'mod_iax',1,2000),(3,'mod_xml_rpc',1,100),(4,'mod_portaudio',1,1000),(5,'mod_enum',1,2000),(6,'mod_xml_cdr',1,1000),(7,'mod_spidermonkey',1,1000),(8,'mod_alsa',0,1000),(9,'mod_log_file',1,0),(10,'mod_commands',1,1000),(11,'mod_voicemail',1,1000),(12,'mod_dialplan_xml',1,150),(13,'mod_dialplan_asterisk',1,150),(14,'mod_openzap',0,1000),(15,'mod_woomera',0,1000),(17,'mod_speex',1,500),(18,'mod_ilbc',0,1000),(20,'mod_g723_1',1,500),(21,'mod_g729',1,500),(22,'mod_g722',1,500),(23,'mod_g726',1,500),(25,'mod_amr',1,500),(26,'mod_fifo',1,1000),(27,'mod_limit',1,1000),(28,'mod_syslog',1,0),(29,'mod_dingaling',1,2000),(30,'mod_cdr_csv',1,1000),(31,'mod_event_socket',1,100),(32,'mod_multicast',0,1000),(33,'mod_zeroconf',0,1000),(34,'mod_xmpp_event',0,1000),(35,'mod_sndfile',1,1000),(36,'mod_native_file',1,1000),(37,'mod_shout',1,1000),(38,'mod_local_stream',1,1000),(39,'mod_perl',0,1000),(40,'mod_python',0,1000),(41,'mod_java',0,1000),(42,'mod_cepstral',0,1000),(43,'mod_openmrcp',0,1000),(44,'mod_lumenvox',0,1000),(45,'mod_rss',0,1000),(46,'mod_say_de',1,1000),(47,'mod_say_fr',0,1000),(48,'mod_say_en',1,1000),(49,'mod_conference',1,1000),(50,'mod_ivr',0,1000),(51,'mod_console',1,0),(52,'mod_dptools',1,1500),(53,'mod_voipcodecs',1,500);
-/*!40000 ALTER TABLE `post_load_modules_conf` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `rss_conf`
---
-
-DROP TABLE IF EXISTS `rss_conf`;
-CREATE TABLE `rss_conf` (
- `id` int(11) NOT NULL auto_increment,
- `directory_id` int(11) NOT NULL,
- `feed` text NOT NULL,
- `local_file` text NOT NULL,
- `description` text,
- `priority` int(11) NOT NULL default '1000',
- PRIMARY KEY (`id`)
-) ENGINE=MyISAM AUTO_INCREMENT=15 DEFAULT CHARSET=utf8;
-
---
--- Dumping data for table `rss_conf`
---
-
-LOCK TABLES `rss_conf` WRITE;
-/*!40000 ALTER TABLE `rss_conf` DISABLE KEYS */;
-/*!40000 ALTER TABLE `rss_conf` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `sip_authentication`
---
-
-DROP TABLE IF EXISTS `sip_authentication`;
-CREATE TABLE `sip_authentication` (
- `nonce` varchar(255) default NULL,
- `expires` int(11) default NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-
---
--- Dumping data for table `sip_authentication`
---
-
-LOCK TABLES `sip_authentication` WRITE;
-/*!40000 ALTER TABLE `sip_authentication` DISABLE KEYS */;
-/*!40000 ALTER TABLE `sip_authentication` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `sip_dialogs`
---
-
-DROP TABLE IF EXISTS `sip_dialogs`;
-CREATE TABLE `sip_dialogs` (
- `call_id` varchar(255) default NULL,
- `uuid` varchar(255) default NULL,
- `sip_to_user` varchar(255) default NULL,
- `sip_to_host` varchar(255) default NULL,
- `sip_from_user` varchar(255) default NULL,
- `sip_from_host` varchar(255) default NULL,
- `contact_user` varchar(255) default NULL,
- `contact_host` varchar(255) default NULL,
- `state` varchar(255) default NULL,
- `direction` varchar(255) default NULL,
- `user_agent` varchar(255) default NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-
---
--- Dumping data for table `sip_dialogs`
---
-
-LOCK TABLES `sip_dialogs` WRITE;
-/*!40000 ALTER TABLE `sip_dialogs` DISABLE KEYS */;
-/*!40000 ALTER TABLE `sip_dialogs` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `sip_registrations`
---
-
-DROP TABLE IF EXISTS `sip_registrations`;
-CREATE TABLE `sip_registrations` (
- `call_id` varchar(255) default NULL,
- `sip_user` varchar(255) default NULL,
- `sip_host` varchar(255) default NULL,
- `contact` varchar(1024) default NULL,
- `status` varchar(255) default NULL,
- `rpid` varchar(255) default NULL,
- `expires` int(11) default NULL,
- `user_agent` varchar(255) default NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-
---
--- Dumping data for table `sip_registrations`
---
-
-LOCK TABLES `sip_registrations` WRITE;
-/*!40000 ALTER TABLE `sip_registrations` DISABLE KEYS */;
-/*!40000 ALTER TABLE `sip_registrations` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `sip_subscriptions`
---
-
-DROP TABLE IF EXISTS `sip_subscriptions`;
-CREATE TABLE `sip_subscriptions` (
- `proto` varchar(255) default NULL,
- `sip_user` varchar(255) default NULL,
- `sip_host` varchar(255) default NULL,
- `sub_to_user` varchar(255) default NULL,
- `sub_to_host` varchar(255) default NULL,
- `event` varchar(255) default NULL,
- `contact` varchar(1024) default NULL,
- `call_id` varchar(255) default NULL,
- `full_from` varchar(255) default NULL,
- `full_via` varchar(255) default NULL,
- `expires` int(11) default NULL,
- `user_agent` varchar(255) default NULL,
- `accept` varchar(255) default NULL
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-
---
--- Dumping data for table `sip_subscriptions`
---
-
-LOCK TABLES `sip_subscriptions` WRITE;
-/*!40000 ALTER TABLE `sip_subscriptions` DISABLE KEYS */;
-/*!40000 ALTER TABLE `sip_subscriptions` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `sofia_aliases`
---
-
-DROP TABLE IF EXISTS `sofia_aliases`;
-CREATE TABLE `sofia_aliases` (
- `id` int(10) unsigned NOT NULL auto_increment,
- `sofia_id` int(10) unsigned NOT NULL,
- `alias_name` varchar(255) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
-
---
--- Dumping data for table `sofia_aliases`
---
-
-LOCK TABLES `sofia_aliases` WRITE;
-/*!40000 ALTER TABLE `sofia_aliases` DISABLE KEYS */;
-INSERT INTO `sofia_aliases` VALUES (1,1,'default'),(3,1,'sip.example.com');
-/*!40000 ALTER TABLE `sofia_aliases` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `sofia_conf`
---
-
-DROP TABLE IF EXISTS `sofia_conf`;
-CREATE TABLE `sofia_conf` (
- `id` int(11) NOT NULL auto_increment,
- `profile_name` varchar(255) default NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
-
---
--- Dumping data for table `sofia_conf`
---
-
-LOCK TABLES `sofia_conf` WRITE;
-/*!40000 ALTER TABLE `sofia_conf` DISABLE KEYS */;
-INSERT INTO `sofia_conf` VALUES (1,'$${domain}');
-/*!40000 ALTER TABLE `sofia_conf` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `sofia_domains`
---
-
-DROP TABLE IF EXISTS `sofia_domains`;
-CREATE TABLE `sofia_domains` (
- `id` int(11) NOT NULL auto_increment,
- `sofia_id` int(11) default NULL,
- `domain_name` varchar(255) default NULL,
- `parse` tinyint(1) default NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-
---
--- Dumping data for table `sofia_domains`
---
-
-LOCK TABLES `sofia_domains` WRITE;
-/*!40000 ALTER TABLE `sofia_domains` DISABLE KEYS */;
-/*!40000 ALTER TABLE `sofia_domains` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `sofia_gateways`
---
-
-DROP TABLE IF EXISTS `sofia_gateways`;
-CREATE TABLE `sofia_gateways` (
- `id` int(11) NOT NULL auto_increment,
- `sofia_id` int(11) default NULL,
- `gateway_name` varchar(255) default NULL,
- `gateway_param` varchar(255) default NULL,
- `gateway_value` varchar(255) default NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=latin1;
-
---
--- Dumping data for table `sofia_gateways`
---
-
-LOCK TABLES `sofia_gateways` WRITE;
-/*!40000 ALTER TABLE `sofia_gateways` DISABLE KEYS */;
-INSERT INTO `sofia_gateways` VALUES (8,1,'default','proxy','asterlink.com'),(9,1,'default','realm','asterlink.com'),(10,1,'default','username','USERNAME_HERE'),(11,1,'default','register','false'),(12,1,'default','expire-seconds','60'),(13,1,'default','retry_seconds','2'),(14,1,'default','password','PASSWORD_HERE');
-/*!40000 ALTER TABLE `sofia_gateways` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `sofia_settings`
---
-
-DROP TABLE IF EXISTS `sofia_settings`;
-CREATE TABLE `sofia_settings` (
- `id` int(11) NOT NULL auto_increment,
- `sofia_id` int(11) default NULL,
- `param_name` varchar(255) default NULL,
- `param_value` varchar(255) default NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=latin1;
-
---
--- Dumping data for table `sofia_settings`
---
-
-LOCK TABLES `sofia_settings` WRITE;
-/*!40000 ALTER TABLE `sofia_settings` DISABLE KEYS */;
-INSERT INTO `sofia_settings` VALUES (1,1,'user-agent-string','RayUA 2.0pre4'),(2,1,'auth-calls','true'),(5,1,'debug','1'),(6,1,'rfc2833-pt','101'),(7,1,'sip-port','5060'),(8,1,'dialplan','XML'),(9,1,'dtmf-duration','100'),(10,1,'codec-prefs','$${global_codec_prefs}'),(11,1,'rtp-timeout-sec','300'),(12,1,'rtp-ip','$${local_ip_v4}'),(13,1,'sip-ip','$${local_ip_v4}'),(14,1,'context','default'),(15,1,'manage-presence','true'),(16,1,'force-register-domain','intralanman.servehttp.com'),(17,1,'inbound-codec-negotiation','generous'),(18,1,'rtp-rewrite-timestampes','true'),(19,1,'nonce-ttl','60'),(20,1,'vad','out'),(36,1,'odbc-dsn','freeswitch-mysql:freeswitch:Fr33Sw1tch');
-/*!40000 ALTER TABLE `sofia_settings` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `voicemail_conf`
---
-
-DROP TABLE IF EXISTS `voicemail_conf`;
-CREATE TABLE `voicemail_conf` (
- `id` int(10) unsigned NOT NULL auto_increment,
- `vm_profile` varchar(64) NOT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `unique_profile` (`vm_profile`)
-) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
-
---
--- Dumping data for table `voicemail_conf`
---
-
-LOCK TABLES `voicemail_conf` WRITE;
-/*!40000 ALTER TABLE `voicemail_conf` DISABLE KEYS */;
-INSERT INTO `voicemail_conf` VALUES (1,'default');
-/*!40000 ALTER TABLE `voicemail_conf` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `voicemail_email`
---
-
-DROP TABLE IF EXISTS `voicemail_email`;
-CREATE TABLE `voicemail_email` (
- `id` int(10) unsigned NOT NULL auto_increment,
- `voicemail_id` int(10) unsigned NOT NULL,
- `param_name` varchar(64) NOT NULL,
- `param_value` varchar(64) NOT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `unique_profile_param` (`param_name`,`voicemail_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
-
---
--- Dumping data for table `voicemail_email`
---
-
-LOCK TABLES `voicemail_email` WRITE;
-/*!40000 ALTER TABLE `voicemail_email` DISABLE KEYS */;
-INSERT INTO `voicemail_email` VALUES (1,1,'template-file','voicemail.tpl'),(2,1,'date-fmt','%A, %B %d %Y, %I %M %p'),(3,1,'email-from','${voicemail_account}@${voicemail_domain}');
-/*!40000 ALTER TABLE `voicemail_email` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `voicemail_settings`
---
-
-DROP TABLE IF EXISTS `voicemail_settings`;
-CREATE TABLE `voicemail_settings` (
- `id` int(11) NOT NULL auto_increment,
- `voicemail_id` int(11) default NULL,
- `param_name` varchar(255) default NULL,
- `param_value` varchar(255) default NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=latin1;
-
---
--- Dumping data for table `voicemail_settings`
---
-
-LOCK TABLES `voicemail_settings` WRITE;
-/*!40000 ALTER TABLE `voicemail_settings` DISABLE KEYS */;
-INSERT INTO `voicemail_settings` VALUES (1,1,'file-extension','wav'),(2,1,'terminator-key','#'),(3,1,'max-login-attempts','3'),(4,1,'digit-timeout','10000'),(5,1,'max-record-length','300'),(6,1,'tone-spec','%(1000, 0, 640)'),(7,1,'callback-dialplan','XML'),(8,1,'callback-context','default'),(9,1,'play-new-messages-key','1'),(10,1,'play-saved-messages-key','2'),(11,1,'main-menu-key','*'),(12,1,'config-menu-key','5'),(13,1,'record-greeting-key','1'),(14,1,'choose-greeting-key','2'),(15,1,'record-file-key','3'),(16,1,'listen-file-key','1'),(17,1,'record-name-key','3'),(18,1,'save-file-key','9'),(19,1,'delete-file-key','7'),(20,1,'undelete-file-key','8'),(21,1,'email-key','4'),(22,1,'pause-key','0'),(23,1,'restart-key','1'),(24,1,'ff-key','6'),(25,1,'rew-key','4'),(26,1,'record-silence-threshold','200'),(27,1,'record-silence-hits','2'),(28,1,'web-template-file','web-vm.tpl'),(29,1,'operator-extension','operator XML default'),(30,1,'operator-key','9');
-/*!40000 ALTER TABLE `voicemail_settings` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
--- Dump completed on 2008-07-25 0:11:32
+-- phpMyAdmin SQL Dump
+-- version 3.1.2deb1
+-- http://www.phpmyadmin.net
+--
+-- Host: localhost
+-- Generation Time: Feb 15, 2009 at 09:35 PM
+-- Server version: 5.0.75
+-- PHP Version: 5.2.6-3ubuntu2
+
+SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
+
+
+/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
+/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
+/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
+/*!40101 SET NAMES utf8 */;
+
+--
+-- Database: `freeswitch`
+--
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `acl_lists`
+--
+
+CREATE TABLE IF NOT EXISTS `acl_lists` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `acl_name` varchar(128) NOT NULL,
+ `default_policy` varchar(45) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
+
+--
+-- Dumping data for table `acl_lists`
+--
+
+INSERT INTO `acl_lists` (`id`, `acl_name`, `default_policy`) VALUES
+(1, 'rfc1918', 'deny'),
+(2, 'lan', 'allow'),
+(3, 'default', 'allow');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `acl_nodes`
+--
+
+CREATE TABLE IF NOT EXISTS `acl_nodes` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `cidr` varchar(45) NOT NULL,
+ `type` varchar(16) NOT NULL,
+ `list_id` int(10) unsigned NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
+
+--
+-- Dumping data for table `acl_nodes`
+--
+
+INSERT INTO `acl_nodes` (`id`, `cidr`, `type`, `list_id`) VALUES
+(1, '192.168.0.0/16', 'allow', 1),
+(2, '10.0.0.0/8', 'allow', 1),
+(3, '172.16.0.0/12', 'allow', 1);
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `conference_advertise`
+--
+
+CREATE TABLE IF NOT EXISTS `conference_advertise` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `room` varchar(64) NOT NULL,
+ `status` varchar(128) NOT NULL,
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `unique_room` (`room`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
+
+--
+-- Dumping data for table `conference_advertise`
+--
+
+INSERT INTO `conference_advertise` (`id`, `room`, `status`) VALUES
+(1, '3000@$${domain}', 'Freeswitch Conference'),
+(2, '3001@$${domain}', 'FreeSWITCH Conference 2'),
+(3, '3002@$${domain}', 'FreeSWITCH Conference 3');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `conference_controls`
+--
+
+CREATE TABLE IF NOT EXISTS `conference_controls` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `conf_group` varchar(64) NOT NULL,
+ `action` varchar(64) NOT NULL,
+ `digits` varchar(16) NOT NULL,
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `unique_group_action` USING BTREE (`conf_group`,`action`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=13 ;
+
+--
+-- Dumping data for table `conference_controls`
+--
+
+INSERT INTO `conference_controls` (`id`, `conf_group`, `action`, `digits`) VALUES
+(1, 'default', 'mute', '0'),
+(2, 'default', 'deaf_mute', '*'),
+(3, 'default', 'energy up', '9'),
+(4, 'default', 'energy equ', '8'),
+(5, 'default', 'energy dn', '7'),
+(6, 'default', 'vol talk up', '3'),
+(7, 'default', 'vol talk dn', '1'),
+(8, 'default', 'vol talk zero', '2'),
+(9, 'default', 'vol listen up', '6'),
+(10, 'default', 'vol listen dn', '4'),
+(11, 'default', 'vol listen zero', '5'),
+(12, 'default', 'hangup', '#');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `conference_profiles`
+--
+
+CREATE TABLE IF NOT EXISTS `conference_profiles` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `profile_name` varchar(64) NOT NULL,
+ `param_name` varchar(64) NOT NULL,
+ `param_value` varchar(64) NOT NULL,
+ PRIMARY KEY (`id`),
+ KEY `unique_profile_param` (`profile_name`,`param_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;
+
+--
+-- Dumping data for table `conference_profiles`
+--
+
+INSERT INTO `conference_profiles` (`id`, `profile_name`, `param_name`, `param_value`) VALUES
+(1, 'default', 'domain', '$${domain}'),
+(2, 'default', 'rate', '8000'),
+(3, 'default', 'interval', '20'),
+(4, 'default', 'energy-level', '300'),
+(5, 'default', 'moh-sound', '$${moh_uri}'),
+(6, 'default', 'caller-id-name', '$${outbound_caller_name}'),
+(7, 'default', 'caller-id-number', '$${outbound_caller_number}');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dialplan`
+--
+
+CREATE TABLE IF NOT EXISTS `dialplan` (
+ `dialplan_id` int(11) NOT NULL auto_increment,
+ `domain` varchar(128) NOT NULL,
+ `ip_address` varchar(15) NOT NULL,
+ PRIMARY KEY (`dialplan_id`)
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
+
+--
+-- Dumping data for table `dialplan`
+--
+
+INSERT INTO `dialplan` (`dialplan_id`, `domain`, `ip_address`) VALUES
+(1, 'freeswitch', '127.0.0.1');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dialplan_actions`
+--
+
+CREATE TABLE IF NOT EXISTS `dialplan_actions` (
+ `action_id` int(11) NOT NULL auto_increment,
+ `condition_id` int(11) NOT NULL,
+ `application` varchar(256) NOT NULL,
+ `data` varchar(256) NOT NULL,
+ `type` varchar(32) NOT NULL,
+ `weight` int(11) NOT NULL,
+ PRIMARY KEY (`action_id`)
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=170 ;
+
+--
+-- Dumping data for table `dialplan_actions`
+--
+
+INSERT INTO `dialplan_actions` (`action_id`, `condition_id`, `application`, `data`, `type`, `weight`) VALUES
+(1, 2, 'deflect', '${destination_number}', 'action', 10),
+(2, 5, 'set', 'domain_name=$${domain}', 'action', 20),
+(3, 5, 'set', 'domain_name=${sip_auth_realm}', 'anti-action', 30),
+(4, 7, 'set', 'domain_name=$${domain}', 'action', 40),
+(5, 9, 'set', 'open=true', 'action', 50),
+(6, 10, 'answer', '', 'action', 60),
+(7, 10, 'intercept', '${db(select/${domain_name}-last_dial/global)}', 'action', 70),
+(8, 10, 'sleep', '2000', 'action', 80),
+(9, 11, 'answer', '', 'action', 90),
+(10, 11, 'intercept', '${db(select/${domain_name}-last_dial/${callgroup})}', 'action', 100),
+(11, 11, 'sleep', '2000', 'action', 110),
+(12, 12, 'answer', '', 'action', 120),
+(13, 12, 'intercept', '${db(select/${domain_name}-last_dial_ext/$1)}', 'action', 130),
+(14, 12, 'sleep', '2000', 'action', 140),
+(15, 13, 'transfer', '${db(select/${domain_name}-last_dial/${caller_id_number})}', 'action', 150),
+(16, 14, 'set', 'use_profile=${cond(${acl($${local_ip_v4} rfc1918)} == true ? nat : default)}', 'action', 160),
+(17, 14, 'set', 'use_profile=${cond(${acl(${network_addr} rfc1918)} == true ? nat : default)}', 'anti-action', 170),
+(18, 15, 'set_user', 'default@${domain_name}', 'action', 180),
+(19, 16, 'info', '', 'action', 190),
+(20, 17, 'set', 'sip_secure_media=true', 'action', 200),
+(21, 18, 'db', 'insert/${domain_name}-spymap/${caller_id_number}/${uuid}', 'action', 210),
+(22, 18, 'db', 'insert/${domain_name}-last_dial/${caller_id_number}/${destination_number}', 'action', 220),
+(23, 18, 'db', 'insert/${domain_name}-last_dial/global/${uuid}', 'action', 230),
+(24, 19, 'eval', '${snom_bind_key(2 off DND ${sip_from_user} ${sip_from_host} ${sofia_profile_name} message notused)}', 'action', 240),
+(25, 19, 'transfer', '3000', 'action', 250),
+(26, 20, 'eval', '${snom_bind_key(2 on DND ${sip_from_user} ${sip_from_host} ${sofia_profile_name} message api+uuid_transfer ${uuid} 9001)}', 'action', 260),
+(27, 20, 'playback', '$${hold_music}', 'action', 270),
+(28, 21, 'answer', '', 'action', 280),
+(29, 21, 'eavesdrop', '${db(select/${domain_name}-spymap/$1)}', 'action', 290),
+(30, 22, 'answer', '', 'action', 300),
+(31, 22, 'set', 'eavesdrop_indicate_failed=tone_stream://%(500, 0, 320)', 'action', 310),
+(32, 22, 'set', 'eavesdrop_indicate_new=tone_stream://%(500, 0, 620)', 'action', 320),
+(33, 22, 'set', 'eavesdrop_indicate_idle=tone_stream://%(250, 0, 920)', 'action', 330),
+(34, 22, 'eavesdrop', 'all', 'action', 340),
+(35, 23, 'transfer', '${db(select/${domain_name}-call_return/${caller_id_number})}', 'action', 350),
+(36, 24, 'answer', '', 'action', 360),
+(37, 24, 'group', 'delete:$1@${domain_name}:${sofia_contact(${sip_from_user}@${domain_name})}', 'action', 370),
+(38, 24, 'gentones', '%(1000, 0, 320)', 'action', 380),
+(39, 25, 'answer', '', 'action', 390),
+(40, 25, 'group', 'insert:$1@${domain_name}:${sofia_contact(${sip_from_user}@${domain_name})}', 'action', 400),
+(41, 25, 'gentones', '%(1000, 0, 640)', 'action', 410),
+(42, 26, 'bridge', '{ignore_early_media=true}${group(call:$1@${domain_name})}', 'action', 420),
+(43, 27, 'set', 'call_timeout=10', 'action', 430),
+(44, 27, 'bridge', '{ignore_early_media=true}${group(call:$1@${domain_name}:order)}', 'action', 440),
+(45, 28, 'set', 'dialed_extension=$1', 'action', 450),
+(46, 28, 'export', 'sip_auto_answer=true', 'action', 460),
+(47, 28, 'bridge', 'user/${dialed_extension}@${domain_name}', 'action', 470),
+(48, 29, 'set', 'dialed_extension=$1', 'action', 480),
+(49, 29, 'export', 'dialed_extension=$1', 'action', 490),
+(50, 30, 'set', 'voicemail_authorized=${sip_authorized}', 'action', 500),
+(51, 30, 'answer', '', 'action', 510),
+(52, 30, 'sleep', '1000', 'action', 520),
+(53, 30, 'voicemail', 'check default ${domain_name} ${dialed_extension}', 'action', 530),
+(54, 30, 'bind_meta_app', '1 b s execute_extension::dx XML features', 'anti-action', 540),
+(55, 30, 'bind_meta_app', '2 b s record_session::$${base_dir}/recordings/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav', 'anti-action', 550),
+(56, 30, 'bind_meta_app', '3 b s execute_extension::cf XML features', 'anti-action', 560),
+(57, 30, 'set', 'ringback=${us-ring}', 'anti-action', 570),
+(58, 30, 'set', 'transfer_ringback=$${hold_music}', 'anti-action', 580),
+(59, 30, 'set', 'call_timeout=30', 'anti-action', 590),
+(60, 30, 'set', 'hangup_after_bridge=true', 'anti-action', 600),
+(61, 30, 'set', 'continue_on_fail=true', 'anti-action', 610),
+(62, 30, 'db', 'insert/${domain_name}-call_return/${dialed_extension}/${caller_id_number}', 'anti-action', 620),
+(63, 30, 'db', 'insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}', 'anti-action', 630),
+(64, 30, 'set', 'called_party_callgroup=${user_data(${dialed_extension}@${domain_name} var callgroup)}', 'anti-action', 640),
+(65, 30, 'db', 'insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}', 'anti-action', 650),
+(66, 30, 'bridge', 'user/${dialed_extension}@${domain_name}', 'anti-action', 660),
+(67, 30, 'answer', '', 'anti-action', 670),
+(68, 30, 'sleep', '1000', 'anti-action', 680),
+(69, 30, 'voicemail', 'default ${domain_name} ${dialed_extension}', 'anti-action', 690),
+(70, 31, 'bridge', '${group_call(sales@${domain_name})}', 'action', 700),
+(71, 32, 'bridge', 'group/support@${domain_name}', 'action', 710),
+(72, 33, 'bridge', 'group/billing@${domain_name}', 'action', 720),
+(73, 34, 'set', 'transfer_ringback=$${hold_music}', 'action', 730),
+(74, 34, 'transfer', '1000 XML features', 'action', 740),
+(75, 35, 'answer', '', 'action', 750),
+(76, 35, 'sleep', '1000', 'action', 760),
+(77, 35, 'voicemail', 'check default ${domain_name}', 'action', 770),
+(78, 36, 'bridge', 'sofia/${use_profile}/$1', 'action', 780),
+(79, 37, 'answer', '', 'action', 790),
+(80, 37, 'conference', '$1-${domain_name}@default', 'action', 800),
+(81, 38, 'answer', '', 'action', 810),
+(82, 38, 'conference', '$1-${domain_name}@wideband', 'action', 820),
+(83, 39, 'answer', '', 'action', 830),
+(84, 39, 'conference', '$1-${domain_name}@ultrawideband', 'action', 840),
+(85, 40, 'answer', '', 'action', 850),
+(86, 40, 'conference', '$1-${domain_name}@cdquality', 'action', 860),
+(87, 41, 'bridge', 'sofia/${use_profile}/$1(a)conference.freeswitch.org', 'action', 870),
+(88, 42, 'set', 'conference_auto_outcall_caller_id_name=Mad Boss1', 'action', 880),
+(89, 42, 'set', 'conference_auto_outcall_caller_id_number=0911', 'action', 890),
+(90, 42, 'set', 'conference_auto_outcall_timeout=60', 'action', 900),
+(91, 42, 'set', 'conference_auto_outcall_flags=mute', 'action', 910),
+(92, 42, 'set', 'conference_auto_outcall_prefix={sip_auto_answer=true,execute_on_answer=''bind_meta_app 2 a s1 intercept::${uuid}''}', 'action', 920),
+(93, 42, 'set', 'sip_exclude_contact=${network_addr}', 'action', 930),
+(94, 42, 'conference_set_auto_outcall', '${group_call(sales)}', 'action', 940),
+(95, 42, 'conference', 'madboss_intercom1@default+flags{endconf|deaf}', 'action', 950),
+(96, 43, 'set', 'conference_auto_outcall_caller_id_name=Mad Boss2', 'action', 960),
+(97, 43, 'set', 'conference_auto_outcall_caller_id_number=0912', 'action', 970),
+(98, 43, 'set', 'conference_auto_outcall_timeout=60', 'action', 980),
+(99, 43, 'set', 'conference_auto_outcall_flags=mute', 'action', 990),
+(100, 43, 'set', 'conference_auto_outcall_prefix={sip_auto_answer=true,execute_on_answer=''bind_meta_app 2 a s1 intercept::${uuid}''}', 'action', 1000),
+(101, 43, 'set', 'sip_exclude_contact=${network_addr}', 'action', 1010),
+(102, 43, 'conference_set_auto_outcall', 'loopback/9999', 'action', 1020),
+(103, 43, 'conference', 'madboss_intercom2@default+flags{endconf|deaf}', 'action', 1030),
+(104, 44, 'set', 'conference_auto_outcall_caller_id_name=Mad Boss', 'action', 1040),
+(105, 44, 'set', 'conference_auto_outcall_caller_id_number=0911', 'action', 1050),
+(106, 44, 'set', 'conference_auto_outcall_timeout=60', 'action', 1060),
+(107, 44, 'set', 'conference_auto_outcall_flags=none', 'action', 1070),
+(108, 44, 'conference_set_auto_outcall', 'loopback/9999', 'action', 1080),
+(109, 44, 'conference', 'madboss3@default', 'action', 1090),
+(110, 45, 'answer', '', 'action', 1100),
+(111, 45, 'sleep', '2000', 'action', 1110),
+(112, 45, 'ivr', 'demo_ivr', 'action', 1120),
+(113, 46, 'conference', 'bridge:mydynaconf:sofia/${use_profile}/1234@conference.freeswitch.org', 'action', 1130),
+(114, 47, 'answer', '', 'action', 1140),
+(115, 47, 'esf_page_group', '', 'action', 1150),
+(116, 48, 'set', 'fifo_music=$${hold_music}', 'action', 1160),
+(117, 48, 'fifo', '5900@${domain_name} in', 'action', 1170),
+(118, 49, 'answer', '', 'action', 1180),
+(119, 49, 'fifo', '5900@${domain_name} out nowait', 'action', 1190),
+(120, 51, 'fifo', '$1@${domain_name} in undef $${hold_music}', 'action', 1200),
+(121, 54, 'answer', '', 'action', 1210),
+(122, 54, 'fifo', '$1@${domain_name} out nowait', 'action', 1220),
+(123, 57, '', '', 'expression', 1230),
+(124, 57, 'fifo', '$1@${domain_name} in undef $${hold_music}', 'action', 1240),
+(125, 60, 'answer', '', 'action', 1250),
+(126, 60, 'fifo', '$1@${domain_name} out nowait', 'action', 1260),
+(127, 61, 'pre_answer', '', 'action', 1270),
+(128, 61, 'sleep', '20000', 'action', 1280),
+(129, 61, 'answer', '', 'action', 1290),
+(130, 61, 'sleep', '1000', 'action', 1300),
+(131, 61, 'playback', 'voicemail/vm-goodbye.wav', 'action', 1310),
+(132, 61, 'hangup', '', 'action', 1320),
+(133, 62, 'ring_ready', '', 'action', 1330),
+(134, 62, 'sleep', '20000', 'action', 1340),
+(135, 62, 'answer', '', 'action', 1350),
+(136, 62, 'sleep', '1000', 'action', 1360),
+(137, 62, 'playback', 'voicemail/vm-goodbye.wav', 'action', 1370),
+(138, 62, 'hangup', '', 'action', 1380),
+(139, 63, 'set', 'ringback=$${uk-ring}', 'action', 1390),
+(140, 63, 'bridge', 'loopback/wait', 'action', 1400),
+(141, 64, 'set', 'ringback=$${hold_music}', 'action', 1410),
+(142, 64, 'bridge', 'loopback/wait', 'action', 1420),
+(143, 65, 'set', 'transfer_ringback=$${uk-ring}', 'action', 1430),
+(144, 65, 'answer', '', 'action', 1440),
+(145, 65, 'bridge', 'loopback/wait', 'action', 1450),
+(146, 66, 'set', 'transfer_ringback=$${hold_music}', 'action', 1460),
+(147, 66, 'answer', '', 'action', 1470),
+(148, 66, 'bridge', 'loopback/wait', 'action', 1480),
+(149, 67, 'answer', '', 'action', 1490),
+(150, 67, 'info', '', 'action', 1500),
+(151, 67, 'sleep', '250', 'action', 1510),
+(152, 67, 'hangup', '', 'action', 1520),
+(153, 68, 'answer', '', 'action', 1530),
+(154, 68, 'record_fsv', '/tmp/testrecord.fsv', 'action', 1540),
+(155, 69, 'answer', '', 'action', 1550),
+(156, 69, 'play_fsv', '/tmp/testrecord.fsv', 'action', 1560),
+(157, 70, 'answer', '', 'action', 1570),
+(158, 70, 'delay_echo', '5000', 'action', 1580),
+(159, 71, 'answer', '', 'action', 1590),
+(160, 71, 'echo', '', 'action', 1600),
+(161, 72, 'answer', '', 'action', 1610),
+(162, 72, 'playback', 'tone_stream://%(10000,0,1004);loops=-1', 'action', 1620),
+(163, 73, 'answer', '', 'action', 1630),
+(164, 73, 'playback', 'tone_stream://path=${base_dir}/conf/tetris.ttml;loops=10', 'action', 1640),
+(165, 75, 'answer', '', 'action', 1650),
+(166, 75, 'execute_extension', 'is_secure XML features', 'action', 1660),
+(167, 75, 'playback', '$${hold_music}', 'action', 1670),
+(168, 75, 'answer', '', 'anti-action', 1680),
+(169, 75, 'playback', '$${hold_music}', 'anti-action', 1690);
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dialplan_condition`
+--
+
+CREATE TABLE IF NOT EXISTS `dialplan_condition` (
+ `condition_id` int(11) NOT NULL auto_increment,
+ `extension_id` int(11) NOT NULL,
+ `field` varchar(1238) NOT NULL,
+ `expression` varchar(128) NOT NULL,
+ `weight` int(11) NOT NULL,
+ PRIMARY KEY (`condition_id`)
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=76 ;
+
+--
+-- Dumping data for table `dialplan_condition`
+--
+
+INSERT INTO `dialplan_condition` (`condition_id`, `extension_id`, `field`, `expression`, `weight`) VALUES
+(1, 1, '$${unroll_loops}', '^true$', 10),
+(2, 1, '${sip_looped_call}', '^true$', 20),
+(3, 2, '${domain_name}', '^$', 30),
+(4, 2, 'source', 'mod_sofia', 40),
+(5, 2, '${sip_auth_realm}', '^$', 50),
+(6, 3, '${domain_name}', '^$', 60),
+(7, 3, 'source', 'mod_openzap', 70),
+(8, 4, '${strftime(%w)}', '^([1-5])$', 80),
+(9, 4, '${strftime(%H%M)}', '^((09|1[0-7])[0-5][0-9]|1800)$', 90),
+(10, 5, 'destination_number', '^886$', 100),
+(11, 6, 'destination_number', '^\\*8$', 110),
+(12, 7, 'destination_number', '^\\*\\*(\\d+)$', 120),
+(13, 8, 'destination_number', '^870$', 130),
+(14, 9, '${network_addr}', '^$', 140),
+(15, 9, '${numbering_plan}', '^$', 150),
+(16, 9, '${call_debug}', '^true$', 160),
+(17, 9, '${sip_has_crypto}', '^(AES_CM_128_HMAC_SHA1_32|AES_CM_128_HMAC_SHA1_80)$', 170),
+(18, 9, '', '', 180),
+(19, 10, 'destination_number', '^9001$', 190),
+(20, 11, 'destination_number', '^9000$', 200),
+(21, 12, 'destination_number', '^88(.*)$|^\\*0(.*)$', 210),
+(22, 13, 'destination_number', '^779$', 220),
+(23, 14, 'destination_number', '^\\*69$|^869$|^lcr$', 230),
+(24, 15, 'destination_number', '^80(\\d{2})$', 240),
+(25, 16, 'destination_number', '^81(\\d{2})$', 250),
+(26, 17, 'destination_number', '^82(\\d{2})$', 260),
+(27, 18, 'destination_number', '^83(\\d{2})$', 270),
+(28, 19, 'destination_number', '^8(10[01][0-9])$', 280),
+(29, 20, 'destination_number', '^(20[01][0-9])$', 290),
+(30, 20, 'destination_number', '^${caller_id_number}$', 300),
+(31, 21, 'destination_number', '^3000$', 310),
+(32, 22, 'destination_number', '^3001$', 320),
+(33, 23, 'destination_number', '^3002$', 330),
+(34, 24, 'destination_number', '^operator$|^0$', 340),
+(35, 25, 'destination_number', '^vmain|4000$', 350),
+(36, 26, 'destination_number', '^sip:(.*)$', 360),
+(37, 27, 'destination_number', '^(30\\d{2})$', 370),
+(38, 28, 'destination_number', '^(31\\d{2})$', 380),
+(39, 29, 'destination_number', '^(32\\d{2})$', 390),
+(40, 30, 'destination_number', '^(33\\d{2})$', 400),
+(41, 31, 'destination_number', '^9(888|1616|3232)$', 410),
+(42, 32, 'destination_number', '^0911$', 420),
+(43, 33, 'destination_number', '^0912$', 430),
+(44, 34, 'destination_number', '^0913$', 440),
+(45, 35, 'destination_number', '^5000$', 450),
+(46, 36, 'destination_number', '^5001$', 460),
+(47, 37, 'destination_number', '^pagegroup$|^7243', 470),
+(48, 38, 'destination_number', '^5900$', 480),
+(49, 39, 'destination_number', '^5901$', 490),
+(50, 40, 'source', 'mod_sofia', 500),
+(51, 40, 'destination_number', 'park\\+(\\d+)', 510),
+(52, 41, 'source', 'mod_sofia', 520),
+(53, 41, 'destination_number', '^parking$', 530),
+(54, 41, '${sip_to_params}', 'fifo\\=(\\d+)', 540),
+(55, 42, 'source', 'mod_sofia', 550),
+(56, 42, 'destination_number', 'callpark', 560),
+(57, 42, '${sip_refer_to}', '', 570),
+(58, 43, 'source', 'mod_sofia', 580),
+(59, 43, 'destination_number', 'pickup', 590),
+(60, 43, '${sip_to_params}', 'orbit\\=(\\d+)', 600),
+(61, 44, 'destination_number', '^wait$', 610),
+(62, 45, 'destination_number', '^9980$', 620),
+(63, 46, 'destination_number', '^9981$', 630),
+(64, 47, 'destination_number', '^9982$', 640),
+(65, 48, 'destination_number', '^9983$', 650),
+(66, 49, 'destination_number', '^9984$', 660),
+(67, 50, 'destination_number', '^9992$', 670),
+(68, 51, 'destination_number', '^9993$', 680),
+(69, 52, 'destination_number', '^9994$', 690),
+(70, 53, 'destination_number', '^9995$', 700),
+(71, 54, 'destination_number', '^9996$', 710),
+(72, 55, 'destination_number', '^9997$', 720),
+(73, 56, 'destination_number', '^9998$', 730),
+(74, 57, 'destination_number', '^9999$', 740),
+(75, 57, '${sip_has_crypto}', '^(AES_CM_128_HMAC_SHA1_32|AES_CM_128_HMAC_SHA1_80)$', 750);
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dialplan_context`
+--
+
+CREATE TABLE IF NOT EXISTS `dialplan_context` (
+ `context_id` int(11) NOT NULL auto_increment,
+ `dialplan_id` int(11) NOT NULL,
+ `context` varchar(64) NOT NULL,
+ `weight` int(11) NOT NULL,
+ PRIMARY KEY (`context_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
+
+--
+-- Dumping data for table `dialplan_context`
+--
+
+INSERT INTO `dialplan_context` (`context_id`, `dialplan_id`, `context`, `weight`) VALUES
+(1, 1, 'default', 10),
+(2, 1, 'public', 20);
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dialplan_extension`
+--
+
+CREATE TABLE IF NOT EXISTS `dialplan_extension` (
+ `extension_id` int(11) NOT NULL auto_increment,
+ `context_id` int(11) NOT NULL,
+ `name` varchar(128) NOT NULL,
+ `continue` varchar(32) NOT NULL,
+ `weight` int(11) NOT NULL,
+ PRIMARY KEY (`extension_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=58 ;
+
+--
+-- Dumping data for table `dialplan_extension`
+--
+
+INSERT INTO `dialplan_extension` (`extension_id`, `context_id`, `name`, `continue`, `weight`) VALUES
+(1, 1, 'unloop', '', 10),
+(2, 1, 'set_domain', 'true', 20),
+(3, 1, 'set_domain_openzap', 'true', 30),
+(4, 1, 'tod_example', 'true', 40),
+(5, 1, 'global-intercept', '', 50),
+(6, 1, 'group-intercept', '', 60),
+(7, 1, 'intercept-ext', '', 70),
+(8, 1, 'redial', '', 80),
+(9, 1, 'global', 'true', 90),
+(10, 1, 'snom-demo-2', '', 100),
+(11, 1, 'snom-demo-1', '', 110),
+(12, 1, 'eavesdrop', '', 120),
+(13, 1, 'eavesdrop', '', 130),
+(14, 1, 'call_return', '', 140),
+(15, 1, 'del-group', '', 150),
+(16, 1, 'add-group', '', 160),
+(17, 1, 'call-group-simo', '', 170),
+(18, 1, 'call-group-order', '', 180),
+(19, 1, 'extension-intercom', '', 190),
+(20, 1, 'Local_Extension', '', 200),
+(21, 1, 'group_dial_sales', '', 210),
+(22, 1, 'group_dial_support', '', 220),
+(23, 1, 'group_dial_billing', '', 230),
+(24, 1, 'operator', '', 240),
+(25, 1, 'vmain', '', 250),
+(26, 1, 'sip_uri', '', 260),
+(27, 1, 'nb_conferences', '', 270),
+(28, 1, 'wb_conferences', '', 280),
+(29, 1, 'uwb_conferences', '', 290),
+(30, 1, 'cdquality_conferences', '', 300),
+(31, 1, 'freeswitch_public_conf_via_sip', '', 310),
+(32, 1, 'mad_boss_intercom', '', 320),
+(33, 1, 'mad_boss_intercom', '', 330),
+(34, 1, 'mad_boss', '', 340),
+(35, 1, 'ivr_demo', '', 350),
+(36, 1, 'dyanmic conference', '', 360),
+(37, 1, 'rtp_multicast_page', '', 370),
+(38, 1, 'park', '', 380),
+(39, 1, 'unpark', '', 390),
+(40, 1, 'park', '', 400),
+(41, 1, 'unpark', '', 410),
+(42, 1, 'park', '', 420),
+(43, 1, 'unpark', '', 430),
+(44, 1, 'wait', '', 440),
+(45, 1, 'ringback_180', '', 450),
+(46, 1, 'ringback_183_uk_ring', '', 460),
+(47, 1, 'ringback_183_music_ring', '', 470),
+(48, 1, 'ringback_post_answer_uk_ring', '', 480),
+(49, 1, 'ringback_post_answer_music', '', 490),
+(50, 1, 'show_info', '', 500),
+(51, 1, 'video_record', '', 510),
+(52, 1, 'video_playback', '', 520),
+(53, 1, 'delay_echo', '', 530),
+(54, 1, 'echo', '', 540),
+(55, 1, 'milliwatt', '', 550),
+(56, 2, 'tone_stream', '', 560),
+(57, 2, 'hold_music', '', 570);
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dialplan_special`
+--
+
+CREATE TABLE IF NOT EXISTS `dialplan_special` (
+ `id` int(11) NOT NULL auto_increment,
+ `context` varchar(255) NOT NULL,
+ `class_file` varchar(255) NOT NULL,
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `unique_context` (`context`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `dialplan_special`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dingaling_profiles`
+--
+
+CREATE TABLE IF NOT EXISTS `dingaling_profiles` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `profile_name` varchar(64) NOT NULL,
+ `type` varchar(64) NOT NULL,
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `unique_name` (`profile_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
+
+--
+-- Dumping data for table `dingaling_profiles`
+--
+
+INSERT INTO `dingaling_profiles` (`id`, `profile_name`, `type`) VALUES
+(1, 'fs.intralanman.servehttp.com', 'component');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dingaling_profile_params`
+--
+
+CREATE TABLE IF NOT EXISTS `dingaling_profile_params` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `dingaling_id` int(10) unsigned NOT NULL,
+ `param_name` varchar(64) NOT NULL,
+ `param_value` varchar(64) NOT NULL,
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `unique_type_name` (`dingaling_id`,`param_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
+
+--
+-- Dumping data for table `dingaling_profile_params`
+--
+
+INSERT INTO `dingaling_profile_params` (`id`, `dingaling_id`, `param_name`, `param_value`) VALUES
+(1, 1, 'password', 'secret'),
+(2, 1, 'dialplan', 'XML,enum'),
+(3, 1, 'server', 'example.org'),
+(4, 1, 'name', 'fs.example.org');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dingaling_settings`
+--
+
+CREATE TABLE IF NOT EXISTS `dingaling_settings` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `param_name` varchar(64) NOT NULL,
+ `param_value` varchar(64) NOT NULL,
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `unique_param` (`param_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
+
+--
+-- Dumping data for table `dingaling_settings`
+--
+
+INSERT INTO `dingaling_settings` (`id`, `param_name`, `param_value`) VALUES
+(1, 'debug', '0'),
+(2, 'codec-prefs', '$${global_codec_prefs}');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `directory`
+--
+
+CREATE TABLE IF NOT EXISTS `directory` (
+ `id` int(11) NOT NULL auto_increment,
+ `username` varchar(255) NOT NULL,
+ `domain` varchar(255) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=12 ;
+
+--
+-- Dumping data for table `directory`
+--
+
+INSERT INTO `directory` (`id`, `username`, `domain`) VALUES
+(1, '1000', 'example.com'),
+(2, '1001', 'example.org'),
+(3, '1002', 'example.net'),
+(5, '1003', 'example.info'),
+(6, '1004', 'example.com'),
+(7, '1005', 'example.org'),
+(8, '1006', 'example.net'),
+(9, '1007', 'example.info'),
+(10, '2000', 'default'),
+(11, '1009', '$${local_ip_v4}');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `directory_domains`
+--
+
+CREATE TABLE IF NOT EXISTS `directory_domains` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `domain_name` varchar(128) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
+
+--
+-- Dumping data for table `directory_domains`
+--
+
+INSERT INTO `directory_domains` (`id`, `domain_name`) VALUES
+(1, 'freeswitch.org'),
+(2, 'sofaswitch.org');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `directory_gateways`
+--
+
+CREATE TABLE IF NOT EXISTS `directory_gateways` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `directory_id` int(10) unsigned NOT NULL,
+ `gateway_name` varchar(128) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `directory_gateways`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `directory_gateway_params`
+--
+
+CREATE TABLE IF NOT EXISTS `directory_gateway_params` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `d_gw_id` int(10) unsigned NOT NULL,
+ `param_name` varchar(64) NOT NULL,
+ `param_value` varchar(64) NOT NULL,
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `unique_gw_param` (`d_gw_id`,`param_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `directory_gateway_params`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `directory_global_params`
+--
+
+CREATE TABLE IF NOT EXISTS `directory_global_params` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `param_name` varchar(64) NOT NULL,
+ `param_value` varchar(128) NOT NULL,
+ `domain_id` int(10) unsigned NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
+
+--
+-- Dumping data for table `directory_global_params`
+--
+
+INSERT INTO `directory_global_params` (`id`, `param_name`, `param_value`, `domain_id`) VALUES
+(1, 'default_gateway', 'errors', 1);
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `directory_global_vars`
+--
+
+CREATE TABLE IF NOT EXISTS `directory_global_vars` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `var_name` varchar(64) NOT NULL,
+ `var_value` varchar(128) NOT NULL,
+ `domain_id` int(10) unsigned NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `directory_global_vars`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `directory_params`
+--
+
+CREATE TABLE IF NOT EXISTS `directory_params` (
+ `id` int(11) NOT NULL auto_increment,
+ `directory_id` int(11) default NULL,
+ `param_name` varchar(255) default NULL,
+ `param_value` varchar(255) default NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=23 ;
+
+--
+-- Dumping data for table `directory_params`
+--
+
+INSERT INTO `directory_params` (`id`, `directory_id`, `param_name`, `param_value`) VALUES
+(1, 1, 'password', '1234'),
+(2, 1, 'vm-password', '861000'),
+(3, 2, 'password', '1234'),
+(4, 2, 'vm-password', '861001'),
+(7, 5, 'password', '1234'),
+(8, 6, 'password', '1234'),
+(9, 7, 'password', '1234'),
+(10, 8, 'password', '123456'),
+(11, 9, 'password', '1234'),
+(12, 10, 'password', '123456'),
+(13, 11, 'password', '1234'),
+(14, 3, 'vm-password', '861002'),
+(15, 3, 'password', '1234'),
+(16, 11, 'vm-password', '861009'),
+(17, 10, 'vm-password', '1234'),
+(18, 9, 'vm-password', '861007'),
+(19, 8, 'vm-password', '861006'),
+(20, 7, 'vm-password', '861005'),
+(21, 6, 'vm-password', '861004'),
+(22, 5, 'vm-password', '861003');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `directory_vars`
+--
+
+CREATE TABLE IF NOT EXISTS `directory_vars` (
+ `id` int(11) NOT NULL auto_increment,
+ `directory_id` int(11) default NULL,
+ `var_name` varchar(255) default NULL,
+ `var_value` varchar(255) default NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
+
+--
+-- Dumping data for table `directory_vars`
+--
+
+INSERT INTO `directory_vars` (`id`, `directory_id`, `var_name`, `var_value`) VALUES
+(1, 1, 'numbering_plan', 'US'),
+(2, 2, 'numbering_plan', 'US'),
+(3, 3, 'numbering_plan', 'AU'),
+(4, 5, 'numbering_plan', 'US'),
+(5, 5, 'area_code', '434');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `iax_conf`
+--
+
+CREATE TABLE IF NOT EXISTS `iax_conf` (
+ `id` int(11) NOT NULL auto_increment,
+ `profile_name` varchar(255) default NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
+
+--
+-- Dumping data for table `iax_conf`
+--
+
+INSERT INTO `iax_conf` (`id`, `profile_name`) VALUES
+(3, 'test_profile');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `iax_settings`
+--
+
+CREATE TABLE IF NOT EXISTS `iax_settings` (
+ `id` int(11) NOT NULL auto_increment,
+ `iax_id` int(11) default NULL,
+ `param_name` varchar(255) default NULL,
+ `param_value` varchar(255) default NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=43 ;
+
+--
+-- Dumping data for table `iax_settings`
+--
+
+INSERT INTO `iax_settings` (`id`, `iax_id`, `param_name`, `param_value`) VALUES
+(35, 3, 'debug', '1'),
+(36, 3, 'ip', '$${local_ip_v4}'),
+(37, 3, 'port', '4569'),
+(38, 3, 'context', 'public'),
+(39, 3, 'dialplan', 'enum,XML'),
+(40, 3, 'codec-prefs', '$${global_codec_prefs}'),
+(41, 3, 'codec-master', 'us'),
+(42, 3, 'codec-rate', '8');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `ivr_conf`
+--
+
+CREATE TABLE IF NOT EXISTS `ivr_conf` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `name` varchar(64) NOT NULL,
+ `greet_long` varchar(255) NOT NULL,
+ `greet_short` varchar(255) NOT NULL,
+ `invalid_sound` varchar(255) NOT NULL,
+ `exit_sound` varchar(255) NOT NULL,
+ `max_failures` int(10) unsigned NOT NULL default '3',
+ `timeout` int(11) NOT NULL default '5',
+ `tts_engine` varchar(64) default NULL,
+ `tts_voice` varchar(64) default NULL,
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `unique_name` (`name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
+
+--
+-- Dumping data for table `ivr_conf`
+--
+
+INSERT INTO `ivr_conf` (`id`, `name`, `greet_long`, `greet_short`, `invalid_sound`, `exit_sound`, `max_failures`, `timeout`, `tts_engine`, `tts_voice`) VALUES
+(1, 'demo', 'soundfiles/ivr/demo/greet-long.wav', 'soundfiles/ivr/demo/greet-short.wav', 'soundfiles/ivr/invalid.wav', 'soundfiles/ivr/exit.wav', 3, 5, 'cepstral', 'allison'),
+(2, 'demo2', 'soundfiles/ivr/demo2/greet-long.wav', 'soundfiles/ivr/demo2/greet-short.wav', 'soundfiles/ivr/invalid.wav', 'soundfiles/ivr/exit.wav', 3, 5, NULL, NULL),
+(3, 'menu8', 'soundfiles/ivr/menu8/greet-long.wav', 'soundfiles/ivr/menu8/greet-short.wav', 'soundfiles/ivr/menu8/invalid.wav', 'soundfiles/ivr/menu8/exit.wav', 3, 5, NULL, NULL);
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `ivr_entries`
+--
+
+CREATE TABLE IF NOT EXISTS `ivr_entries` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `ivr_id` int(10) unsigned NOT NULL,
+ `action` varchar(64) NOT NULL,
+ `digits` varchar(16) NOT NULL,
+ `params` varchar(255) default NULL,
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `unique_ivr_digits` USING BTREE (`ivr_id`,`digits`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;
+
+--
+-- Dumping data for table `ivr_entries`
+--
+
+INSERT INTO `ivr_entries` (`id`, `ivr_id`, `action`, `digits`, `params`) VALUES
+(1, 1, 'menu-play-sound', '1', 'soundfiles/features.wav'),
+(2, 1, 'menu-exit', '*', NULL),
+(3, 1, 'menu-sub', '2', 'demo2'),
+(4, 1, 'menu-exec-api', '3', 'bridge sofia/$${domain}/888(a)conference.freeswtich.org'),
+(5, 1, 'menu-call-transfer', '4', '888'),
+(6, 2, 'menu-back', '#', NULL),
+(7, 2, 'menu-top', '*', NULL),
+(8, 3, 'menu-back', '#', NULL),
+(9, 3, 'menu-top', '*', NULL),
+(10, 3, 'menu-playsound', '4', 'soundfiles/4.wav');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `limit_conf`
+--
+
+CREATE TABLE IF NOT EXISTS `limit_conf` (
+ `id` int(11) NOT NULL auto_increment,
+ `name` varchar(255) default NULL,
+ `value` varchar(255) default NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
+
+--
+-- Dumping data for table `limit_conf`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `limit_data`
+--
+
+CREATE TABLE IF NOT EXISTS `limit_data` (
+ `hostname` varchar(255) default NULL,
+ `realm` varchar(255) default NULL,
+ `id` varchar(255) default NULL,
+ `uuid` varchar(255) default NULL
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+--
+-- Dumping data for table `limit_data`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `local_stream_conf`
+--
+
+CREATE TABLE IF NOT EXISTS `local_stream_conf` (
+ `id` int(11) NOT NULL auto_increment,
+ `directory_name` varchar(255) default NULL,
+ `directory_path` text,
+ `param_name` varchar(255) default NULL,
+ `param_value` varchar(255) default NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `local_stream_conf`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `modless_conf`
+--
+
+CREATE TABLE IF NOT EXISTS `modless_conf` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `conf_name` varchar(64) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
+
+--
+-- Dumping data for table `modless_conf`
+--
+
+INSERT INTO `modless_conf` (`id`, `conf_name`) VALUES
+(1, 'acl.conf'),
+(2, 'postl_load_switch.conf'),
+(3, 'post_load_modules.conf');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `post_load_modules_conf`
+--
+
+CREATE TABLE IF NOT EXISTS `post_load_modules_conf` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `module_name` varchar(64) NOT NULL,
+ `load_module` tinyint(1) NOT NULL default '1',
+ `priority` int(10) unsigned NOT NULL default '1000',
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `unique_mod` (`module_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=54 ;
+
+--
+-- Dumping data for table `post_load_modules_conf`
+--
+
+INSERT INTO `post_load_modules_conf` (`id`, `module_name`, `load_module`, `priority`) VALUES
+(1, 'mod_sofia', 1, 2000),
+(2, 'mod_iax', 1, 2000),
+(3, 'mod_xml_rpc', 1, 100),
+(4, 'mod_portaudio', 1, 1000),
+(5, 'mod_enum', 1, 2000),
+(6, 'mod_xml_cdr', 1, 1000),
+(7, 'mod_spidermonkey', 1, 1000),
+(8, 'mod_alsa', 0, 1000),
+(9, 'mod_log_file', 1, 0),
+(10, 'mod_commands', 1, 1000),
+(11, 'mod_voicemail', 1, 1000),
+(12, 'mod_dialplan_xml', 1, 150),
+(13, 'mod_dialplan_asterisk', 1, 150),
+(14, 'mod_openzap', 0, 1000),
+(15, 'mod_woomera', 0, 1000),
+(17, 'mod_speex', 1, 500),
+(18, 'mod_ilbc', 0, 1000),
+(20, 'mod_g723_1', 1, 500),
+(21, 'mod_g729', 1, 500),
+(22, 'mod_g722', 1, 500),
+(23, 'mod_g726', 1, 500),
+(25, 'mod_amr', 1, 500),
+(26, 'mod_fifo', 1, 1000),
+(27, 'mod_limit', 1, 1000),
+(28, 'mod_syslog', 1, 0),
+(29, 'mod_dingaling', 1, 2000),
+(30, 'mod_cdr_csv', 1, 1000),
+(31, 'mod_event_socket', 1, 100),
+(32, 'mod_multicast', 0, 1000),
+(33, 'mod_zeroconf', 0, 1000),
+(34, 'mod_xmpp_event', 0, 1000),
+(35, 'mod_sndfile', 1, 1000),
+(36, 'mod_native_file', 1, 1000),
+(37, 'mod_shout', 1, 1000),
+(38, 'mod_local_stream', 1, 1000),
+(39, 'mod_perl', 0, 1000),
+(40, 'mod_python', 0, 1000),
+(41, 'mod_java', 0, 1000),
+(42, 'mod_cepstral', 0, 1000),
+(43, 'mod_openmrcp', 0, 1000),
+(44, 'mod_lumenvox', 0, 1000),
+(45, 'mod_rss', 0, 1000),
+(46, 'mod_say_de', 1, 1000),
+(47, 'mod_say_fr', 0, 1000),
+(48, 'mod_say_en', 1, 1000),
+(49, 'mod_conference', 1, 1000),
+(50, 'mod_ivr', 0, 1000),
+(51, 'mod_console', 1, 0),
+(52, 'mod_dptools', 1, 1500),
+(53, 'mod_voipcodecs', 1, 500);
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `rss_conf`
+--
+
+CREATE TABLE IF NOT EXISTS `rss_conf` (
+ `id` int(11) NOT NULL auto_increment,
+ `directory_id` int(11) NOT NULL,
+ `feed` text NOT NULL,
+ `local_file` text NOT NULL,
+ `description` text,
+ `priority` int(11) NOT NULL default '1000',
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=15 ;
+
+--
+-- Dumping data for table `rss_conf`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `sip_authentication`
+--
+
+CREATE TABLE IF NOT EXISTS `sip_authentication` (
+ `nonce` varchar(255) default NULL,
+ `expires` int(11) default NULL
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Dumping data for table `sip_authentication`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `sip_dialogs`
+--
+
+CREATE TABLE IF NOT EXISTS `sip_dialogs` (
+ `call_id` varchar(255) default NULL,
+ `uuid` varchar(255) default NULL,
+ `sip_to_user` varchar(255) default NULL,
+ `sip_to_host` varchar(255) default NULL,
+ `sip_from_user` varchar(255) default NULL,
+ `sip_from_host` varchar(255) default NULL,
+ `contact_user` varchar(255) default NULL,
+ `contact_host` varchar(255) default NULL,
+ `state` varchar(255) default NULL,
+ `direction` varchar(255) default NULL,
+ `user_agent` varchar(255) default NULL
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Dumping data for table `sip_dialogs`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `sip_registrations`
+--
+
+CREATE TABLE IF NOT EXISTS `sip_registrations` (
+ `call_id` varchar(255) default NULL,
+ `sip_user` varchar(255) default NULL,
+ `sip_host` varchar(255) default NULL,
+ `contact` varchar(1024) default NULL,
+ `status` varchar(255) default NULL,
+ `rpid` varchar(255) default NULL,
+ `expires` int(11) default NULL,
+ `user_agent` varchar(255) default NULL
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Dumping data for table `sip_registrations`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `sip_subscriptions`
+--
+
+CREATE TABLE IF NOT EXISTS `sip_subscriptions` (
+ `proto` varchar(255) default NULL,
+ `sip_user` varchar(255) default NULL,
+ `sip_host` varchar(255) default NULL,
+ `sub_to_user` varchar(255) default NULL,
+ `sub_to_host` varchar(255) default NULL,
+ `event` varchar(255) default NULL,
+ `contact` varchar(1024) default NULL,
+ `call_id` varchar(255) default NULL,
+ `full_from` varchar(255) default NULL,
+ `full_via` varchar(255) default NULL,
+ `expires` int(11) default NULL,
+ `user_agent` varchar(255) default NULL,
+ `accept` varchar(255) default NULL
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Dumping data for table `sip_subscriptions`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `sofia_aliases`
+--
+
+CREATE TABLE IF NOT EXISTS `sofia_aliases` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `sofia_id` int(10) unsigned NOT NULL,
+ `alias_name` varchar(255) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
+
+--
+-- Dumping data for table `sofia_aliases`
+--
+
+INSERT INTO `sofia_aliases` (`id`, `sofia_id`, `alias_name`) VALUES
+(1, 1, 'default'),
+(3, 1, 'sip.example.com');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `sofia_conf`
+--
+
+CREATE TABLE IF NOT EXISTS `sofia_conf` (
+ `id` int(11) NOT NULL auto_increment,
+ `profile_name` varchar(255) default NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
+
+--
+-- Dumping data for table `sofia_conf`
+--
+
+INSERT INTO `sofia_conf` (`id`, `profile_name`) VALUES
+(1, '$${domain}');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `sofia_domains`
+--
+
+CREATE TABLE IF NOT EXISTS `sofia_domains` (
+ `id` int(11) NOT NULL auto_increment,
+ `sofia_id` int(11) default NULL,
+ `domain_name` varchar(255) default NULL,
+ `parse` tinyint(1) default NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `sofia_domains`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `sofia_gateways`
+--
+
+CREATE TABLE IF NOT EXISTS `sofia_gateways` (
+ `id` int(11) NOT NULL auto_increment,
+ `sofia_id` int(11) default NULL,
+ `gateway_name` varchar(255) default NULL,
+ `gateway_param` varchar(255) default NULL,
+ `gateway_value` varchar(255) default NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=15 ;
+
+--
+-- Dumping data for table `sofia_gateways`
+--
+
+INSERT INTO `sofia_gateways` (`id`, `sofia_id`, `gateway_name`, `gateway_param`, `gateway_value`) VALUES
+(8, 1, 'default', 'proxy', 'asterlink.com'),
+(9, 1, 'default', 'realm', 'asterlink.com'),
+(10, 1, 'default', 'username', 'USERNAME_HERE'),
+(11, 1, 'default', 'register', 'false'),
+(12, 1, 'default', 'expire-seconds', '60'),
+(13, 1, 'default', 'retry_seconds', '2'),
+(14, 1, 'default', 'password', 'PASSWORD_HERE');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `sofia_settings`
+--
+
+CREATE TABLE IF NOT EXISTS `sofia_settings` (
+ `id` int(11) NOT NULL auto_increment,
+ `sofia_id` int(11) default NULL,
+ `param_name` varchar(255) default NULL,
+ `param_value` varchar(255) default NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=37 ;
+
+--
+-- Dumping data for table `sofia_settings`
+--
+
+INSERT INTO `sofia_settings` (`id`, `sofia_id`, `param_name`, `param_value`) VALUES
+(1, 1, 'user-agent-string', 'RayUA 2.0pre4'),
+(2, 1, 'auth-calls', 'true'),
+(5, 1, 'debug', '1'),
+(6, 1, 'rfc2833-pt', '101'),
+(7, 1, 'sip-port', '5060'),
+(8, 1, 'dialplan', 'XML'),
+(9, 1, 'dtmf-duration', '100'),
+(10, 1, 'codec-prefs', '$${global_codec_prefs}'),
+(11, 1, 'rtp-timeout-sec', '300'),
+(12, 1, 'rtp-ip', '$${local_ip_v4}'),
+(13, 1, 'sip-ip', '$${local_ip_v4}'),
+(14, 1, 'context', 'default'),
+(15, 1, 'manage-presence', 'true'),
+(16, 1, 'force-register-domain', 'intralanman.servehttp.com'),
+(17, 1, 'inbound-codec-negotiation', 'generous'),
+(18, 1, 'rtp-rewrite-timestampes', 'true'),
+(19, 1, 'nonce-ttl', '60'),
+(20, 1, 'vad', 'out'),
+(36, 1, 'odbc-dsn', 'freeswitch-mysql:freeswitch:Fr33Sw1tch');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `voicemail_conf`
+--
+
+CREATE TABLE IF NOT EXISTS `voicemail_conf` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `vm_profile` varchar(64) NOT NULL,
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `unique_profile` (`vm_profile`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
+
+--
+-- Dumping data for table `voicemail_conf`
+--
+
+INSERT INTO `voicemail_conf` (`id`, `vm_profile`) VALUES
+(1, 'default');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `voicemail_email`
+--
+
+CREATE TABLE IF NOT EXISTS `voicemail_email` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `voicemail_id` int(10) unsigned NOT NULL,
+ `param_name` varchar(64) NOT NULL,
+ `param_value` varchar(64) NOT NULL,
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `unique_profile_param` (`param_name`,`voicemail_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
+
+--
+-- Dumping data for table `voicemail_email`
+--
+
+INSERT INTO `voicemail_email` (`id`, `voicemail_id`, `param_name`, `param_value`) VALUES
+(1, 1, 'template-file', 'voicemail.tpl'),
+(2, 1, 'date-fmt', '%A, %B %d %Y, %I %M %p'),
+(3, 1, 'email-from', '${voicemail_account}@${voicemail_domain}');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `voicemail_settings`
+--
+
+CREATE TABLE IF NOT EXISTS `voicemail_settings` (
+ `id` int(11) NOT NULL auto_increment,
+ `voicemail_id` int(11) default NULL,
+ `param_name` varchar(255) default NULL,
+ `param_value` varchar(255) default NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=31 ;
+
+--
+-- Dumping data for table `voicemail_settings`
+--
+
+INSERT INTO `voicemail_settings` (`id`, `voicemail_id`, `param_name`, `param_value`) VALUES
+(1, 1, 'file-extension', 'wav'),
+(2, 1, 'terminator-key', '#'),
+(3, 1, 'max-login-attempts', '3'),
+(4, 1, 'digit-timeout', '10000'),
+(5, 1, 'max-record-length', '300'),
+(6, 1, 'tone-spec', '%(1000, 0, 640)'),
+(7, 1, 'callback-dialplan', 'XML'),
+(8, 1, 'callback-context', 'default'),
+(9, 1, 'play-new-messages-key', '1'),
+(10, 1, 'play-saved-messages-key', '2'),
+(11, 1, 'main-menu-key', '*'),
+(12, 1, 'config-menu-key', '5'),
+(13, 1, 'record-greeting-key', '1'),
+(14, 1, 'choose-greeting-key', '2'),
+(15, 1, 'record-file-key', '3'),
+(16, 1, 'listen-file-key', '1'),
+(17, 1, 'record-name-key', '3'),
+(18, 1, 'save-file-key', '9'),
+(19, 1, 'delete-file-key', '7'),
+(20, 1, 'undelete-file-key', '8'),
+(21, 1, 'email-key', '4'),
+(22, 1, 'pause-key', '0'),
+(23, 1, 'restart-key', '1'),
+(24, 1, 'ff-key', '6'),
+(25, 1, 'rew-key', '4'),
+(26, 1, 'record-silence-threshold', '200'),
+(27, 1, 'record-silence-hits', '2'),
+(28, 1, 'web-template-file', 'web-vm.tpl'),
+(29, 1, 'operator-extension', 'operator XML default'),
+(30, 1, 'operator-key', '9');
+
+--
+-- Constraints for dumped tables
+--
+
+--
+-- Constraints for table `dingaling_profile_params`
+--
+ALTER TABLE `dingaling_profile_params`
+ ADD CONSTRAINT `dingaling_profile` FOREIGN KEY (`dingaling_id`) REFERENCES `dingaling_profiles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
Modified: freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/sql/mysql-5.0.sql
==============================================================================
--- freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/sql/mysql-5.0.sql (original)
+++ freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/sql/mysql-5.0.sql Sun Feb 15 21:38:28 2009
@@ -1,315 +1,487 @@
--- MySQL dump 10.11
---
--- Host: localhost Database: freeswitch
--- ------------------------------------------------------
--- Server version 5.0.32-Debian_7etch5-log
+-- phpMyAdmin SQL Dump
+-- version 3.1.2deb1
+-- http://www.phpmyadmin.net
+--
+-- Host: localhost
+-- Generation Time: Feb 15, 2009 at 09:36 PM
+-- Server version: 5.0.75
+-- PHP Version: 5.2.6-3ubuntu2
+
+SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
+
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
--- Table structure for table `carrier_gateway`
+-- Database: `freeswitch`
--
-DROP TABLE IF EXISTS `carrier_gateway`;
-CREATE TABLE `carrier_gateway` (
- `id` int(11) NOT NULL auto_increment,
- `carrier_id` int(11) default NULL,
- `gateway` varchar(32) default NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `gateway` (`gateway`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+-- --------------------------------------------------------
--
--- Table structure for table `carriers`
+-- Table structure for table `acl_lists`
--
-DROP TABLE IF EXISTS `carriers`;
-CREATE TABLE `carriers` (
- `id` int(11) NOT NULL auto_increment,
- `Carrier_Name` varchar(255) default NULL,
+CREATE TABLE IF NOT EXISTS `acl_lists` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `acl_name` varchar(128) NOT NULL,
+ `default_policy` varchar(45) NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `acl_lists`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `acl_nodes`
+--
+
+CREATE TABLE IF NOT EXISTS `acl_nodes` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `cidr` varchar(45) NOT NULL,
+ `type` varchar(16) NOT NULL,
+ `list_id` int(10) unsigned NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `acl_nodes`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `conference_advertise`
--
-DROP TABLE IF EXISTS `conference_advertise`;
-CREATE TABLE `conference_advertise` (
+CREATE TABLE IF NOT EXISTS `conference_advertise` (
`id` int(10) unsigned NOT NULL auto_increment,
`room` varchar(64) NOT NULL,
`status` varchar(128) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_room` (`room`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `conference_advertise`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `conference_controls`
--
-DROP TABLE IF EXISTS `conference_controls`;
-CREATE TABLE `conference_controls` (
+CREATE TABLE IF NOT EXISTS `conference_controls` (
`id` int(10) unsigned NOT NULL auto_increment,
`conf_group` varchar(64) NOT NULL,
`action` varchar(64) NOT NULL,
`digits` varchar(16) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_group_action` USING BTREE (`conf_group`,`action`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `conference_controls`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `conference_profiles`
--
-DROP TABLE IF EXISTS `conference_profiles`;
-CREATE TABLE `conference_profiles` (
+CREATE TABLE IF NOT EXISTS `conference_profiles` (
`id` int(10) unsigned NOT NULL auto_increment,
`profile_name` varchar(64) NOT NULL,
`param_name` varchar(64) NOT NULL,
`param_value` varchar(64) NOT NULL,
PRIMARY KEY (`id`),
KEY `unique_profile_param` (`profile_name`,`param_name`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
--- Table structure for table `db_data`
+-- Dumping data for table `conference_profiles`
--
-DROP TABLE IF EXISTS `db_data`;
-CREATE TABLE `db_data` (
- `hostname` varchar(255) default NULL,
- `realm` varchar(255) default NULL,
- `data_key` varchar(255) default NULL,
- `data` varchar(255) default NULL
-) ENGINE=InnoDB;
+
+-- --------------------------------------------------------
--
-- Table structure for table `dialplan`
--
-DROP TABLE IF EXISTS `dialplan`;
-CREATE TABLE `dialplan` (
- `id` int(11) NOT NULL auto_increment,
+CREATE TABLE IF NOT EXISTS `dialplan` (
+ `dialplan_id` int(11) NOT NULL auto_increment,
+ `domain` varchar(128) NOT NULL,
+ `ip_address` varchar(15) NOT NULL,
+ PRIMARY KEY (`dialplan_id`)
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `dialplan`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dialplan_actions`
+--
+
+CREATE TABLE IF NOT EXISTS `dialplan_actions` (
+ `action_id` int(11) NOT NULL auto_increment,
+ `condition_id` int(11) NOT NULL,
+ `application` varchar(256) NOT NULL,
+ `data` varchar(256) NOT NULL,
+ `type` varchar(32) NOT NULL,
+ `weight` int(11) NOT NULL,
+ PRIMARY KEY (`action_id`)
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `dialplan_actions`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dialplan_condition`
+--
+
+CREATE TABLE IF NOT EXISTS `dialplan_condition` (
+ `condition_id` int(11) NOT NULL auto_increment,
+ `extension_id` int(11) NOT NULL,
+ `field` varchar(1238) NOT NULL,
+ `expression` varchar(128) NOT NULL,
+ `weight` int(11) NOT NULL,
+ PRIMARY KEY (`condition_id`)
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `dialplan_condition`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dialplan_context`
+--
+
+CREATE TABLE IF NOT EXISTS `dialplan_context` (
+ `context_id` int(11) NOT NULL auto_increment,
+ `dialplan_id` int(11) NOT NULL,
`context` varchar(64) NOT NULL,
- `extension` varchar(64) NOT NULL,
- `condition_field` varchar(64) NOT NULL,
- `condition_expression` varchar(64) NOT NULL,
- `application_name` varchar(64) NOT NULL,
- `application_data` text,
`weight` int(11) NOT NULL,
- `type` varchar(16) NOT NULL default 'action',
- `ext_continue` smallint(1) NOT NULL default '0',
- `global_weight` int(11) NOT NULL default '10000',
- `cond_break` varchar(8) default NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+ PRIMARY KEY (`context_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `dialplan_context`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dialplan_extension`
+--
+
+CREATE TABLE IF NOT EXISTS `dialplan_extension` (
+ `extension_id` int(11) NOT NULL auto_increment,
+ `context_id` int(11) NOT NULL,
+ `name` varchar(128) NOT NULL,
+ `continue` varchar(32) NOT NULL,
+ `weight` int(11) NOT NULL,
+ PRIMARY KEY (`extension_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `dialplan_extension`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `dialplan_special`
--
-DROP TABLE IF EXISTS `dialplan_special`;
-CREATE TABLE `dialplan_special` (
+CREATE TABLE IF NOT EXISTS `dialplan_special` (
`id` int(11) NOT NULL auto_increment,
`context` varchar(255) NOT NULL,
`class_file` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_context` (`context`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
--- Table structure for table `dingaling_profile_params`
+-- Dumping data for table `dialplan_special`
--
-DROP TABLE IF EXISTS `dingaling_profile_params`;
-CREATE TABLE `dingaling_profile_params` (
- `id` int(10) unsigned NOT NULL auto_increment,
- `dingaling_id` int(10) unsigned NOT NULL,
- `param_name` varchar(64) NOT NULL,
- `param_value` varchar(64) NOT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `unique_type_name` (`dingaling_id`,`param_name`),
- CONSTRAINT `dingaling_profile` FOREIGN KEY (`dingaling_id`) REFERENCES `dingaling_profiles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+-- --------------------------------------------------------
--
-- Table structure for table `dingaling_profiles`
--
-DROP TABLE IF EXISTS `dingaling_profiles`;
-CREATE TABLE `dingaling_profiles` (
+CREATE TABLE IF NOT EXISTS `dingaling_profiles` (
`id` int(10) unsigned NOT NULL auto_increment,
`profile_name` varchar(64) NOT NULL,
`type` varchar(64) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_name` (`profile_name`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `dingaling_profiles`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dingaling_profile_params`
+--
+
+CREATE TABLE IF NOT EXISTS `dingaling_profile_params` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `dingaling_id` int(10) unsigned NOT NULL,
+ `param_name` varchar(64) NOT NULL,
+ `param_value` varchar(64) NOT NULL,
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `unique_type_name` (`dingaling_id`,`param_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `dingaling_profile_params`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `dingaling_settings`
--
-DROP TABLE IF EXISTS `dingaling_settings`;
-CREATE TABLE `dingaling_settings` (
+CREATE TABLE IF NOT EXISTS `dingaling_settings` (
`id` int(10) unsigned NOT NULL auto_increment,
`param_name` varchar(64) NOT NULL,
`param_value` varchar(64) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_param` (`param_name`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `dingaling_settings`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `directory`
--
-DROP TABLE IF EXISTS `directory`;
-CREATE TABLE `directory` (
+CREATE TABLE IF NOT EXISTS `directory` (
`id` int(11) NOT NULL auto_increment,
`username` varchar(255) NOT NULL,
- `mailbox` varchar(255) NOT NULL,
`domain` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `directory`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `directory_domains`
--
-DROP TABLE IF EXISTS `directory_domains`;
-CREATE TABLE `directory_domains` (
+CREATE TABLE IF NOT EXISTS `directory_domains` (
`id` int(10) unsigned NOT NULL auto_increment,
`domain_name` varchar(128) NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `directory_domains`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `directory_gateways`
+--
+
+CREATE TABLE IF NOT EXISTS `directory_gateways` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `directory_id` int(10) unsigned NOT NULL,
+ `gateway_name` varchar(128) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `directory_gateways`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `directory_gateway_params`
--
-DROP TABLE IF EXISTS `directory_gateway_params`;
-CREATE TABLE `directory_gateway_params` (
+CREATE TABLE IF NOT EXISTS `directory_gateway_params` (
`id` int(10) unsigned NOT NULL auto_increment,
`d_gw_id` int(10) unsigned NOT NULL,
`param_name` varchar(64) NOT NULL,
`param_value` varchar(64) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_gw_param` (`d_gw_id`,`param_name`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
--- Table structure for table `directory_gateways`
+-- Dumping data for table `directory_gateway_params`
--
-DROP TABLE IF EXISTS `directory_gateways`;
-CREATE TABLE `directory_gateways` (
- `id` int(10) unsigned NOT NULL auto_increment,
- `directory_id` int(10) unsigned NOT NULL,
- `gateway_name` varchar(128) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+-- --------------------------------------------------------
--
-- Table structure for table `directory_global_params`
--
-DROP TABLE IF EXISTS `directory_global_params`;
-CREATE TABLE `directory_global_params` (
+CREATE TABLE IF NOT EXISTS `directory_global_params` (
`id` int(10) unsigned NOT NULL auto_increment,
`param_name` varchar(64) NOT NULL,
`param_value` varchar(128) NOT NULL,
`domain_id` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `directory_global_params`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `directory_global_vars`
--
-DROP TABLE IF EXISTS `directory_global_vars`;
-CREATE TABLE `directory_global_vars` (
+CREATE TABLE IF NOT EXISTS `directory_global_vars` (
`id` int(10) unsigned NOT NULL auto_increment,
`var_name` varchar(64) NOT NULL,
`var_value` varchar(128) NOT NULL,
`domain_id` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `directory_global_vars`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `directory_params`
--
-DROP TABLE IF EXISTS `directory_params`;
-CREATE TABLE `directory_params` (
+CREATE TABLE IF NOT EXISTS `directory_params` (
`id` int(11) NOT NULL auto_increment,
`directory_id` int(11) default NULL,
`param_name` varchar(255) default NULL,
`param_value` varchar(255) default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `directory_params`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `directory_vars`
--
-DROP TABLE IF EXISTS `directory_vars`;
-CREATE TABLE `directory_vars` (
+CREATE TABLE IF NOT EXISTS `directory_vars` (
`id` int(11) NOT NULL auto_increment,
`directory_id` int(11) default NULL,
`var_name` varchar(255) default NULL,
`var_value` varchar(255) default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
--
--- Table structure for table `group_data`
+-- Dumping data for table `directory_vars`
--
-DROP TABLE IF EXISTS `group_data`;
-CREATE TABLE `group_data` (
- `hostname` varchar(255) default NULL,
- `groupname` varchar(255) default NULL,
- `url` varchar(255) default NULL
-) ENGINE=InnoDB;
+
+-- --------------------------------------------------------
--
-- Table structure for table `iax_conf`
--
-DROP TABLE IF EXISTS `iax_conf`;
-CREATE TABLE `iax_conf` (
+CREATE TABLE IF NOT EXISTS `iax_conf` (
`id` int(11) NOT NULL auto_increment,
`profile_name` varchar(255) default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `iax_conf`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `iax_settings`
--
-DROP TABLE IF EXISTS `iax_settings`;
-CREATE TABLE `iax_settings` (
+CREATE TABLE IF NOT EXISTS `iax_settings` (
`id` int(11) NOT NULL auto_increment,
`iax_id` int(11) default NULL,
`param_name` varchar(255) default NULL,
`param_value` varchar(255) default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `iax_settings`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `ivr_conf`
--
-DROP TABLE IF EXISTS `ivr_conf`;
-CREATE TABLE `ivr_conf` (
+CREATE TABLE IF NOT EXISTS `ivr_conf` (
`id` int(10) unsigned NOT NULL auto_increment,
`name` varchar(64) NOT NULL,
`greet_long` varchar(255) NOT NULL,
@@ -322,14 +494,20 @@
`tts_voice` varchar(64) default NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_name` (`name`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `ivr_conf`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `ivr_entries`
--
-DROP TABLE IF EXISTS `ivr_entries`;
-CREATE TABLE `ivr_entries` (
+CREATE TABLE IF NOT EXISTS `ivr_entries` (
`id` int(10) unsigned NOT NULL auto_increment,
`ivr_id` int(10) unsigned NOT NULL,
`action` varchar(64) NOT NULL,
@@ -337,95 +515,113 @@
`params` varchar(255) default NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_ivr_digits` USING BTREE (`ivr_id`,`digits`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
--- Table structure for table `jabber_subscriptions`
+-- Dumping data for table `ivr_entries`
--
-DROP TABLE IF EXISTS `jabber_subscriptions`;
-CREATE TABLE `jabber_subscriptions` (
- `sub_from` varchar(255) default NULL,
- `sub_to` varchar(255) default NULL,
- `show_pres` varchar(255) default NULL,
- `status` varchar(255) default NULL
-) ENGINE=InnoDB;
---
--- Table structure for table `lcr`
---
-
-DROP TABLE IF EXISTS `lcr`;
-CREATE TABLE `lcr` (
- `id` int(11) NOT NULL auto_increment,
- `digits` varchar(15) default NULL,
- `rate` int(11) NOT NULL,
- `carrier_id` int(11) NOT NULL,
- `lead_strip` int(11) NOT NULL,
- `trail_strip` int(11) NOT NULL,
- `prefix` varchar(16) NOT NULL,
- `suffix` varchar(16) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB;
+-- --------------------------------------------------------
--
-- Table structure for table `limit_conf`
--
-DROP TABLE IF EXISTS `limit_conf`;
-CREATE TABLE `limit_conf` (
+CREATE TABLE IF NOT EXISTS `limit_conf` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(255) default NULL,
`value` varchar(255) default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `limit_conf`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `limit_data`
--
-DROP TABLE IF EXISTS `limit_data`;
-CREATE TABLE `limit_data` (
+CREATE TABLE IF NOT EXISTS `limit_data` (
`hostname` varchar(255) default NULL,
`realm` varchar(255) default NULL,
`id` varchar(255) default NULL,
`uuid` varchar(255) default NULL
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+--
+-- Dumping data for table `limit_data`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `local_stream_conf`
--
-DROP TABLE IF EXISTS `local_stream_conf`;
-CREATE TABLE `local_stream_conf` (
+CREATE TABLE IF NOT EXISTS `local_stream_conf` (
`id` int(11) NOT NULL auto_increment,
`directory_name` varchar(255) default NULL,
`directory_path` text,
`param_name` varchar(255) default NULL,
`param_value` varchar(255) default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `local_stream_conf`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `modless_conf`
+--
+
+CREATE TABLE IF NOT EXISTS `modless_conf` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `conf_name` varchar(64) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `modless_conf`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `post_load_modules_conf`
--
-DROP TABLE IF EXISTS `post_load_modules_conf`;
-CREATE TABLE `post_load_modules_conf` (
+CREATE TABLE IF NOT EXISTS `post_load_modules_conf` (
`id` int(10) unsigned NOT NULL auto_increment,
`module_name` varchar(64) NOT NULL,
`load_module` tinyint(1) NOT NULL default '1',
`priority` int(10) unsigned NOT NULL default '1000',
PRIMARY KEY (`id`),
UNIQUE KEY `unique_mod` (`module_name`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `post_load_modules_conf`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `rss_conf`
--
-DROP TABLE IF EXISTS `rss_conf`;
-CREATE TABLE `rss_conf` (
+CREATE TABLE IF NOT EXISTS `rss_conf` (
`id` int(11) NOT NULL auto_increment,
`directory_id` int(11) NOT NULL,
`feed` text NOT NULL,
@@ -433,24 +629,36 @@
`description` text,
`priority` int(11) NOT NULL default '1000',
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `rss_conf`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `sip_authentication`
--
-DROP TABLE IF EXISTS `sip_authentication`;
-CREATE TABLE `sip_authentication` (
+CREATE TABLE IF NOT EXISTS `sip_authentication` (
`nonce` varchar(255) default NULL,
- `expires` int(8) default NULL
-) ENGINE=InnoDB;
+ `expires` int(11) default NULL
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Dumping data for table `sip_authentication`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `sip_dialogs`
--
-DROP TABLE IF EXISTS `sip_dialogs`;
-CREATE TABLE `sip_dialogs` (
+CREATE TABLE IF NOT EXISTS `sip_dialogs` (
`call_id` varchar(255) default NULL,
`uuid` varchar(255) default NULL,
`sip_to_user` varchar(255) default NULL,
@@ -465,11 +673,17 @@
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
+-- Dumping data for table `sip_dialogs`
+--
+
+
+-- --------------------------------------------------------
+
+--
-- Table structure for table `sip_registrations`
--
-DROP TABLE IF EXISTS `sip_registrations`;
-CREATE TABLE `sip_registrations` (
+CREATE TABLE IF NOT EXISTS `sip_registrations` (
`call_id` varchar(255) default NULL,
`sip_user` varchar(255) default NULL,
`sip_host` varchar(255) default NULL,
@@ -481,11 +695,17 @@
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
+-- Dumping data for table `sip_registrations`
+--
+
+
+-- --------------------------------------------------------
+
+--
-- Table structure for table `sip_subscriptions`
--
-DROP TABLE IF EXISTS `sip_subscriptions`;
-CREATE TABLE `sip_subscriptions` (
+CREATE TABLE IF NOT EXISTS `sip_subscriptions` (
`proto` varchar(255) default NULL,
`sip_user` varchar(255) default NULL,
`sip_host` varchar(255) default NULL,
@@ -502,145 +722,166 @@
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
+-- Dumping data for table `sip_subscriptions`
+--
+
+
+-- --------------------------------------------------------
+
+--
-- Table structure for table `sofia_aliases`
--
-DROP TABLE IF EXISTS `sofia_aliases`;
-CREATE TABLE `sofia_aliases` (
+CREATE TABLE IF NOT EXISTS `sofia_aliases` (
`id` int(10) unsigned NOT NULL auto_increment,
`sofia_id` int(10) unsigned NOT NULL,
`alias_name` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `sofia_aliases`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `sofia_conf`
--
-DROP TABLE IF EXISTS `sofia_conf`;
-CREATE TABLE `sofia_conf` (
+CREATE TABLE IF NOT EXISTS `sofia_conf` (
`id` int(11) NOT NULL auto_increment,
`profile_name` varchar(255) default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `sofia_conf`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `sofia_domains`
--
-DROP TABLE IF EXISTS `sofia_domains`;
-CREATE TABLE `sofia_domains` (
+CREATE TABLE IF NOT EXISTS `sofia_domains` (
`id` int(11) NOT NULL auto_increment,
`sofia_id` int(11) default NULL,
`domain_name` varchar(255) default NULL,
`parse` tinyint(1) default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `sofia_domains`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `sofia_gateways`
--
-DROP TABLE IF EXISTS `sofia_gateways`;
-CREATE TABLE `sofia_gateways` (
+CREATE TABLE IF NOT EXISTS `sofia_gateways` (
`id` int(11) NOT NULL auto_increment,
`sofia_id` int(11) default NULL,
`gateway_name` varchar(255) default NULL,
`gateway_param` varchar(255) default NULL,
`gateway_value` varchar(255) default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `sofia_gateways`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `sofia_settings`
--
-DROP TABLE IF EXISTS `sofia_settings`;
-CREATE TABLE `sofia_settings` (
+CREATE TABLE IF NOT EXISTS `sofia_settings` (
`id` int(11) NOT NULL auto_increment,
`sofia_id` int(11) default NULL,
`param_name` varchar(255) default NULL,
`param_value` varchar(255) default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `sofia_settings`
+--
+
+
+-- --------------------------------------------------------
--
-- Table structure for table `voicemail_conf`
--
-DROP TABLE IF EXISTS `voicemail_conf`;
-CREATE TABLE `voicemail_conf` (
+CREATE TABLE IF NOT EXISTS `voicemail_conf` (
`id` int(10) unsigned NOT NULL auto_increment,
`vm_profile` varchar(64) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_profile` (`vm_profile`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
--- Table structure for table `voicemail_data`
+-- Dumping data for table `voicemail_conf`
--
-DROP TABLE IF EXISTS `voicemail_data`;
-CREATE TABLE `voicemail_data` (
- `created_epoch` int(8) default NULL,
- `read_epoch` int(8) default NULL,
- `user` varchar(255) default NULL,
- `domain` varchar(255) default NULL,
- `uuid` varchar(255) default NULL,
- `cid_name` varchar(255) default NULL,
- `cid_number` varchar(255) default NULL,
- `in_folder` varchar(255) default NULL,
- `file_path` varchar(255) default NULL,
- `flags` varchar(255) default NULL,
- `read_flags` varchar(255) default NULL
-) ENGINE=InnoDB;
+
+-- --------------------------------------------------------
--
-- Table structure for table `voicemail_email`
--
-DROP TABLE IF EXISTS `voicemail_email`;
-CREATE TABLE `voicemail_email` (
+CREATE TABLE IF NOT EXISTS `voicemail_email` (
`id` int(10) unsigned NOT NULL auto_increment,
`voicemail_id` int(10) unsigned NOT NULL,
`param_name` varchar(64) NOT NULL,
`param_value` varchar(64) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_profile_param` (`param_name`,`voicemail_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
--- Table structure for table `voicemail_prefs`
+-- Dumping data for table `voicemail_email`
--
-DROP TABLE IF EXISTS `voicemail_prefs`;
-CREATE TABLE `voicemail_prefs` (
- `user` varchar(255) default NULL,
- `domain` varchar(255) default NULL,
- `name_path` varchar(255) default NULL,
- `greeting_path` varchar(255) default NULL
-) ENGINE=InnoDB;
+
+-- --------------------------------------------------------
--
-- Table structure for table `voicemail_settings`
--
-DROP TABLE IF EXISTS `voicemail_settings`;
-CREATE TABLE `voicemail_settings` (
+CREATE TABLE IF NOT EXISTS `voicemail_settings` (
`id` int(11) NOT NULL auto_increment,
`voicemail_id` int(11) default NULL,
`param_name` varchar(255) default NULL,
`param_value` varchar(255) default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
+--
+-- Dumping data for table `voicemail_settings`
+--
--- Dump completed on 2008-04-10 15:11:05
+
+--
+-- Constraints for dumped tables
+--
+
+--
+-- Constraints for table `dingaling_profile_params`
+--
+ALTER TABLE `dingaling_profile_params`
+ ADD CONSTRAINT `dingaling_profile` FOREIGN KEY (`dingaling_id`) REFERENCES `dingaling_profiles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
Added: freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/sql/oracle-with-examples.sql
==============================================================================
--- (empty file)
+++ freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/sql/oracle-with-examples.sql Sun Feb 15 21:38:28 2009
@@ -0,0 +1,1431 @@
+-- phpMyAdmin SQL Dump
+-- version 3.1.2deb1
+-- http://www.phpmyadmin.net
+--
+-- Host: localhost
+-- Generation Time: Feb 15, 2009 at 09:35 PM
+-- Server version: 5.0.75
+-- PHP Version: 5.2.6-3ubuntu2
+
+
+/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
+/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
+/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
+/*!40101 SET NAMES utf8 */;
+
+--
+-- Database: `freeswitch`
+--
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `acl_lists`
+--
+
+CREATE TABLE IF NOT EXISTS "acl_lists" (
+ "id" int(10) unsigned NOT NULL,
+ "acl_name" varchar(128) NOT NULL,
+ "default_policy" varchar(45) NOT NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=4 ;
+
+--
+-- Dumping data for table `acl_lists`
+--
+
+INSERT INTO `acl_lists` (`id`, `acl_name`, `default_policy`) VALUES
+(1, 'rfc1918', 'deny'),
+(2, 'lan', 'allow'),
+(3, 'default', 'allow');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `acl_nodes`
+--
+
+CREATE TABLE IF NOT EXISTS "acl_nodes" (
+ "id" int(10) unsigned NOT NULL,
+ "cidr" varchar(45) NOT NULL,
+ "type" varchar(16) NOT NULL,
+ "list_id" int(10) unsigned NOT NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=4 ;
+
+--
+-- Dumping data for table `acl_nodes`
+--
+
+INSERT INTO `acl_nodes` (`id`, `cidr`, `type`, `list_id`) VALUES
+(1, '192.168.0.0/16', 'allow', 1),
+(2, '10.0.0.0/8', 'allow', 1),
+(3, '172.16.0.0/12', 'allow', 1);
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `conference_advertise`
+--
+
+CREATE TABLE IF NOT EXISTS "conference_advertise" (
+ "id" int(10) unsigned NOT NULL,
+ "room" varchar(64) NOT NULL,
+ "status" varchar(128) NOT NULL,
+ PRIMARY KEY ("id"),
+ UNIQUE KEY "unique_room" ("room")
+) AUTO_INCREMENT=4 ;
+
+--
+-- Dumping data for table `conference_advertise`
+--
+
+INSERT INTO `conference_advertise` (`id`, `room`, `status`) VALUES
+(1, '3000@$${domain}', 'Freeswitch Conference'),
+(2, '3001@$${domain}', 'FreeSWITCH Conference 2'),
+(3, '3002@$${domain}', 'FreeSWITCH Conference 3');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `conference_controls`
+--
+
+CREATE TABLE IF NOT EXISTS "conference_controls" (
+ "id" int(10) unsigned NOT NULL,
+ "conf_group" varchar(64) NOT NULL,
+ "action" varchar(64) NOT NULL,
+ "digits" varchar(16) NOT NULL,
+ PRIMARY KEY ("id"),
+ UNIQUE KEY "unique_group_action" ("conf_group","action")
+) AUTO_INCREMENT=13 ;
+
+--
+-- Dumping data for table `conference_controls`
+--
+
+INSERT INTO `conference_controls` (`id`, `conf_group`, `action`, `digits`) VALUES
+(1, 'default', 'mute', '0'),
+(2, 'default', 'deaf_mute', '*'),
+(3, 'default', 'energy up', '9'),
+(4, 'default', 'energy equ', '8'),
+(5, 'default', 'energy dn', '7'),
+(6, 'default', 'vol talk up', '3'),
+(7, 'default', 'vol talk dn', '1'),
+(8, 'default', 'vol talk zero', '2'),
+(9, 'default', 'vol listen up', '6'),
+(10, 'default', 'vol listen dn', '4'),
+(11, 'default', 'vol listen zero', '5'),
+(12, 'default', 'hangup', '#');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `conference_profiles`
+--
+
+CREATE TABLE IF NOT EXISTS "conference_profiles" (
+ "id" int(10) unsigned NOT NULL,
+ "profile_name" varchar(64) NOT NULL,
+ "param_name" varchar(64) NOT NULL,
+ "param_value" varchar(64) NOT NULL,
+ PRIMARY KEY ("id"),
+ KEY "unique_profile_param" ("profile_name","param_name")
+) AUTO_INCREMENT=8 ;
+
+--
+-- Dumping data for table `conference_profiles`
+--
+
+INSERT INTO `conference_profiles` (`id`, `profile_name`, `param_name`, `param_value`) VALUES
+(1, 'default', 'domain', '$${domain}'),
+(2, 'default', 'rate', '8000'),
+(3, 'default', 'interval', '20'),
+(4, 'default', 'energy-level', '300'),
+(5, 'default', 'moh-sound', '$${moh_uri}'),
+(6, 'default', 'caller-id-name', '$${outbound_caller_name}'),
+(7, 'default', 'caller-id-number', '$${outbound_caller_number}');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dialplan`
+--
+
+CREATE TABLE IF NOT EXISTS "dialplan" (
+ "dialplan_id" int(11) NOT NULL,
+ "domain" varchar(128) NOT NULL,
+ "ip_address" varchar(15) NOT NULL,
+ PRIMARY KEY ("dialplan_id")
+) AUTO_INCREMENT=2 ;
+
+--
+-- Dumping data for table `dialplan`
+--
+
+INSERT INTO `dialplan` (`dialplan_id`, `domain`, `ip_address`) VALUES
+(1, 'freeswitch', '127.0.0.1');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dialplan_actions`
+--
+
+CREATE TABLE IF NOT EXISTS "dialplan_actions" (
+ "action_id" int(11) NOT NULL,
+ "condition_id" int(11) NOT NULL,
+ "application" varchar(256) NOT NULL,
+ "data" varchar(256) NOT NULL,
+ "type" varchar(32) NOT NULL,
+ "weight" int(11) NOT NULL,
+ PRIMARY KEY ("action_id")
+) AUTO_INCREMENT=170 ;
+
+--
+-- Dumping data for table `dialplan_actions`
+--
+
+INSERT INTO `dialplan_actions` (`action_id`, `condition_id`, `application`, `data`, `type`, `weight`) VALUES
+(1, 2, 'deflect', '${destination_number}', 'action', 10),
+(2, 5, 'set', 'domain_name=$${domain}', 'action', 20),
+(3, 5, 'set', 'domain_name=${sip_auth_realm}', 'anti-action', 30),
+(4, 7, 'set', 'domain_name=$${domain}', 'action', 40),
+(5, 9, 'set', 'open=true', 'action', 50),
+(6, 10, 'answer', '', 'action', 60),
+(7, 10, 'intercept', '${db(select/${domain_name}-last_dial/global)}', 'action', 70),
+(8, 10, 'sleep', '2000', 'action', 80),
+(9, 11, 'answer', '', 'action', 90),
+(10, 11, 'intercept', '${db(select/${domain_name}-last_dial/${callgroup})}', 'action', 100),
+(11, 11, 'sleep', '2000', 'action', 110),
+(12, 12, 'answer', '', 'action', 120),
+(13, 12, 'intercept', '${db(select/${domain_name}-last_dial_ext/$1)}', 'action', 130),
+(14, 12, 'sleep', '2000', 'action', 140),
+(15, 13, 'transfer', '${db(select/${domain_name}-last_dial/${caller_id_number})}', 'action', 150),
+(16, 14, 'set', 'use_profile=${cond(${acl($${local_ip_v4} rfc1918)} == true ? nat : default)}', 'action', 160),
+(17, 14, 'set', 'use_profile=${cond(${acl(${network_addr} rfc1918)} == true ? nat : default)}', 'anti-action', 170),
+(18, 15, 'set_user', 'default@${domain_name}', 'action', 180),
+(19, 16, 'info', '', 'action', 190),
+(20, 17, 'set', 'sip_secure_media=true', 'action', 200),
+(21, 18, 'db', 'insert/${domain_name}-spymap/${caller_id_number}/${uuid}', 'action', 210),
+(22, 18, 'db', 'insert/${domain_name}-last_dial/${caller_id_number}/${destination_number}', 'action', 220),
+(23, 18, 'db', 'insert/${domain_name}-last_dial/global/${uuid}', 'action', 230),
+(24, 19, 'eval', '${snom_bind_key(2 off DND ${sip_from_user} ${sip_from_host} ${sofia_profile_name} message notused)}', 'action', 240),
+(25, 19, 'transfer', '3000', 'action', 250),
+(26, 20, 'eval', '${snom_bind_key(2 on DND ${sip_from_user} ${sip_from_host} ${sofia_profile_name} message api+uuid_transfer ${uuid} 9001)}', 'action', 260),
+(27, 20, 'playback', '$${hold_music}', 'action', 270),
+(28, 21, 'answer', '', 'action', 280),
+(29, 21, 'eavesdrop', '${db(select/${domain_name}-spymap/$1)}', 'action', 290),
+(30, 22, 'answer', '', 'action', 300),
+(31, 22, 'set', 'eavesdrop_indicate_failed=tone_stream://%(500, 0, 320)', 'action', 310),
+(32, 22, 'set', 'eavesdrop_indicate_new=tone_stream://%(500, 0, 620)', 'action', 320),
+(33, 22, 'set', 'eavesdrop_indicate_idle=tone_stream://%(250, 0, 920)', 'action', 330),
+(34, 22, 'eavesdrop', 'all', 'action', 340),
+(35, 23, 'transfer', '${db(select/${domain_name}-call_return/${caller_id_number})}', 'action', 350),
+(36, 24, 'answer', '', 'action', 360),
+(37, 24, 'group', 'delete:$1@${domain_name}:${sofia_contact(${sip_from_user}@${domain_name})}', 'action', 370),
+(38, 24, 'gentones', '%(1000, 0, 320)', 'action', 380),
+(39, 25, 'answer', '', 'action', 390),
+(40, 25, 'group', 'insert:$1@${domain_name}:${sofia_contact(${sip_from_user}@${domain_name})}', 'action', 400),
+(41, 25, 'gentones', '%(1000, 0, 640)', 'action', 410),
+(42, 26, 'bridge', '{ignore_early_media=true}${group(call:$1@${domain_name})}', 'action', 420),
+(43, 27, 'set', 'call_timeout=10', 'action', 430),
+(44, 27, 'bridge', '{ignore_early_media=true}${group(call:$1@${domain_name}:order)}', 'action', 440),
+(45, 28, 'set', 'dialed_extension=$1', 'action', 450),
+(46, 28, 'export', 'sip_auto_answer=true', 'action', 460),
+(47, 28, 'bridge', 'user/${dialed_extension}@${domain_name}', 'action', 470),
+(48, 29, 'set', 'dialed_extension=$1', 'action', 480),
+(49, 29, 'export', 'dialed_extension=$1', 'action', 490),
+(50, 30, 'set', 'voicemail_authorized=${sip_authorized}', 'action', 500),
+(51, 30, 'answer', '', 'action', 510),
+(52, 30, 'sleep', '1000', 'action', 520),
+(53, 30, 'voicemail', 'check default ${domain_name} ${dialed_extension}', 'action', 530),
+(54, 30, 'bind_meta_app', '1 b s execute_extension::dx XML features', 'anti-action', 540),
+(55, 30, 'bind_meta_app', '2 b s record_session::$${base_dir}/recordings/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav', 'anti-action', 550),
+(56, 30, 'bind_meta_app', '3 b s execute_extension::cf XML features', 'anti-action', 560),
+(57, 30, 'set', 'ringback=${us-ring}', 'anti-action', 570),
+(58, 30, 'set', 'transfer_ringback=$${hold_music}', 'anti-action', 580),
+(59, 30, 'set', 'call_timeout=30', 'anti-action', 590),
+(60, 30, 'set', 'hangup_after_bridge=true', 'anti-action', 600),
+(61, 30, 'set', 'continue_on_fail=true', 'anti-action', 610),
+(62, 30, 'db', 'insert/${domain_name}-call_return/${dialed_extension}/${caller_id_number}', 'anti-action', 620),
+(63, 30, 'db', 'insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}', 'anti-action', 630),
+(64, 30, 'set', 'called_party_callgroup=${user_data(${dialed_extension}@${domain_name} var callgroup)}', 'anti-action', 640),
+(65, 30, 'db', 'insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}', 'anti-action', 650),
+(66, 30, 'bridge', 'user/${dialed_extension}@${domain_name}', 'anti-action', 660),
+(67, 30, 'answer', '', 'anti-action', 670),
+(68, 30, 'sleep', '1000', 'anti-action', 680),
+(69, 30, 'voicemail', 'default ${domain_name} ${dialed_extension}', 'anti-action', 690),
+(70, 31, 'bridge', '${group_call(sales@${domain_name})}', 'action', 700),
+(71, 32, 'bridge', 'group/support@${domain_name}', 'action', 710),
+(72, 33, 'bridge', 'group/billing@${domain_name}', 'action', 720),
+(73, 34, 'set', 'transfer_ringback=$${hold_music}', 'action', 730),
+(74, 34, 'transfer', '1000 XML features', 'action', 740),
+(75, 35, 'answer', '', 'action', 750),
+(76, 35, 'sleep', '1000', 'action', 760),
+(77, 35, 'voicemail', 'check default ${domain_name}', 'action', 770),
+(78, 36, 'bridge', 'sofia/${use_profile}/$1', 'action', 780),
+(79, 37, 'answer', '', 'action', 790),
+(80, 37, 'conference', '$1-${domain_name}@default', 'action', 800),
+(81, 38, 'answer', '', 'action', 810),
+(82, 38, 'conference', '$1-${domain_name}@wideband', 'action', 820),
+(83, 39, 'answer', '', 'action', 830),
+(84, 39, 'conference', '$1-${domain_name}@ultrawideband', 'action', 840),
+(85, 40, 'answer', '', 'action', 850),
+(86, 40, 'conference', '$1-${domain_name}@cdquality', 'action', 860),
+(87, 41, 'bridge', 'sofia/${use_profile}/$1(a)conference.freeswitch.org', 'action', 870),
+(88, 42, 'set', 'conference_auto_outcall_caller_id_name=Mad Boss1', 'action', 880),
+(89, 42, 'set', 'conference_auto_outcall_caller_id_number=0911', 'action', 890),
+(90, 42, 'set', 'conference_auto_outcall_timeout=60', 'action', 900),
+(91, 42, 'set', 'conference_auto_outcall_flags=mute', 'action', 910),
+(92, 42, 'set', 'conference_auto_outcall_prefix={sip_auto_answer=true,execute_on_answer=''bind_meta_app 2 a s1 intercept::${uuid}''}', 'action', 920),
+(93, 42, 'set', 'sip_exclude_contact=${network_addr}', 'action', 930),
+(94, 42, 'conference_set_auto_outcall', '${group_call(sales)}', 'action', 940),
+(95, 42, 'conference', 'madboss_intercom1@default+flags{endconf|deaf}', 'action', 950),
+(96, 43, 'set', 'conference_auto_outcall_caller_id_name=Mad Boss2', 'action', 960),
+(97, 43, 'set', 'conference_auto_outcall_caller_id_number=0912', 'action', 970),
+(98, 43, 'set', 'conference_auto_outcall_timeout=60', 'action', 980),
+(99, 43, 'set', 'conference_auto_outcall_flags=mute', 'action', 990),
+(100, 43, 'set', 'conference_auto_outcall_prefix={sip_auto_answer=true,execute_on_answer=''bind_meta_app 2 a s1 intercept::${uuid}''}', 'action', 1000),
+(101, 43, 'set', 'sip_exclude_contact=${network_addr}', 'action', 1010),
+(102, 43, 'conference_set_auto_outcall', 'loopback/9999', 'action', 1020),
+(103, 43, 'conference', 'madboss_intercom2@default+flags{endconf|deaf}', 'action', 1030),
+(104, 44, 'set', 'conference_auto_outcall_caller_id_name=Mad Boss', 'action', 1040),
+(105, 44, 'set', 'conference_auto_outcall_caller_id_number=0911', 'action', 1050),
+(106, 44, 'set', 'conference_auto_outcall_timeout=60', 'action', 1060),
+(107, 44, 'set', 'conference_auto_outcall_flags=none', 'action', 1070),
+(108, 44, 'conference_set_auto_outcall', 'loopback/9999', 'action', 1080),
+(109, 44, 'conference', 'madboss3@default', 'action', 1090),
+(110, 45, 'answer', '', 'action', 1100),
+(111, 45, 'sleep', '2000', 'action', 1110),
+(112, 45, 'ivr', 'demo_ivr', 'action', 1120),
+(113, 46, 'conference', 'bridge:mydynaconf:sofia/${use_profile}/1234@conference.freeswitch.org', 'action', 1130),
+(114, 47, 'answer', '', 'action', 1140),
+(115, 47, 'esf_page_group', '', 'action', 1150),
+(116, 48, 'set', 'fifo_music=$${hold_music}', 'action', 1160),
+(117, 48, 'fifo', '5900@${domain_name} in', 'action', 1170),
+(118, 49, 'answer', '', 'action', 1180),
+(119, 49, 'fifo', '5900@${domain_name} out nowait', 'action', 1190),
+(120, 51, 'fifo', '$1@${domain_name} in undef $${hold_music}', 'action', 1200),
+(121, 54, 'answer', '', 'action', 1210),
+(122, 54, 'fifo', '$1@${domain_name} out nowait', 'action', 1220),
+(123, 57, '', '', 'expression', 1230),
+(124, 57, 'fifo', '$1@${domain_name} in undef $${hold_music}', 'action', 1240),
+(125, 60, 'answer', '', 'action', 1250),
+(126, 60, 'fifo', '$1@${domain_name} out nowait', 'action', 1260),
+(127, 61, 'pre_answer', '', 'action', 1270),
+(128, 61, 'sleep', '20000', 'action', 1280),
+(129, 61, 'answer', '', 'action', 1290),
+(130, 61, 'sleep', '1000', 'action', 1300),
+(131, 61, 'playback', 'voicemail/vm-goodbye.wav', 'action', 1310),
+(132, 61, 'hangup', '', 'action', 1320),
+(133, 62, 'ring_ready', '', 'action', 1330),
+(134, 62, 'sleep', '20000', 'action', 1340),
+(135, 62, 'answer', '', 'action', 1350),
+(136, 62, 'sleep', '1000', 'action', 1360),
+(137, 62, 'playback', 'voicemail/vm-goodbye.wav', 'action', 1370),
+(138, 62, 'hangup', '', 'action', 1380),
+(139, 63, 'set', 'ringback=$${uk-ring}', 'action', 1390),
+(140, 63, 'bridge', 'loopback/wait', 'action', 1400),
+(141, 64, 'set', 'ringback=$${hold_music}', 'action', 1410),
+(142, 64, 'bridge', 'loopback/wait', 'action', 1420),
+(143, 65, 'set', 'transfer_ringback=$${uk-ring}', 'action', 1430),
+(144, 65, 'answer', '', 'action', 1440),
+(145, 65, 'bridge', 'loopback/wait', 'action', 1450),
+(146, 66, 'set', 'transfer_ringback=$${hold_music}', 'action', 1460),
+(147, 66, 'answer', '', 'action', 1470),
+(148, 66, 'bridge', 'loopback/wait', 'action', 1480),
+(149, 67, 'answer', '', 'action', 1490),
+(150, 67, 'info', '', 'action', 1500),
+(151, 67, 'sleep', '250', 'action', 1510),
+(152, 67, 'hangup', '', 'action', 1520),
+(153, 68, 'answer', '', 'action', 1530),
+(154, 68, 'record_fsv', '/tmp/testrecord.fsv', 'action', 1540),
+(155, 69, 'answer', '', 'action', 1550),
+(156, 69, 'play_fsv', '/tmp/testrecord.fsv', 'action', 1560),
+(157, 70, 'answer', '', 'action', 1570),
+(158, 70, 'delay_echo', '5000', 'action', 1580),
+(159, 71, 'answer', '', 'action', 1590),
+(160, 71, 'echo', '', 'action', 1600),
+(161, 72, 'answer', '', 'action', 1610),
+(162, 72, 'playback', 'tone_stream://%(10000,0,1004);loops=-1', 'action', 1620),
+(163, 73, 'answer', '', 'action', 1630),
+(164, 73, 'playback', 'tone_stream://path=${base_dir}/conf/tetris.ttml;loops=10', 'action', 1640),
+(165, 75, 'answer', '', 'action', 1650),
+(166, 75, 'execute_extension', 'is_secure XML features', 'action', 1660),
+(167, 75, 'playback', '$${hold_music}', 'action', 1670),
+(168, 75, 'answer', '', 'anti-action', 1680),
+(169, 75, 'playback', '$${hold_music}', 'anti-action', 1690);
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dialplan_condition`
+--
+
+CREATE TABLE IF NOT EXISTS "dialplan_condition" (
+ "condition_id" int(11) NOT NULL,
+ "extension_id" int(11) NOT NULL,
+ "field" varchar(1238) NOT NULL,
+ "expression" varchar(128) NOT NULL,
+ "weight" int(11) NOT NULL,
+ PRIMARY KEY ("condition_id")
+) AUTO_INCREMENT=76 ;
+
+--
+-- Dumping data for table `dialplan_condition`
+--
+
+INSERT INTO `dialplan_condition` (`condition_id`, `extension_id`, `field`, `expression`, `weight`) VALUES
+(1, 1, '$${unroll_loops}', '^true$', 10),
+(2, 1, '${sip_looped_call}', '^true$', 20),
+(3, 2, '${domain_name}', '^$', 30),
+(4, 2, 'source', 'mod_sofia', 40),
+(5, 2, '${sip_auth_realm}', '^$', 50),
+(6, 3, '${domain_name}', '^$', 60),
+(7, 3, 'source', 'mod_openzap', 70),
+(8, 4, '${strftime(%w)}', '^([1-5])$', 80),
+(9, 4, '${strftime(%H%M)}', '^((09|1[0-7])[0-5][0-9]|1800)$', 90),
+(10, 5, 'destination_number', '^886$', 100),
+(11, 6, 'destination_number', '^\\*8$', 110),
+(12, 7, 'destination_number', '^\\*\\*(\\d+)$', 120),
+(13, 8, 'destination_number', '^870$', 130),
+(14, 9, '${network_addr}', '^$', 140),
+(15, 9, '${numbering_plan}', '^$', 150),
+(16, 9, '${call_debug}', '^true$', 160),
+(17, 9, '${sip_has_crypto}', '^(AES_CM_128_HMAC_SHA1_32|AES_CM_128_HMAC_SHA1_80)$', 170),
+(18, 9, '', '', 180),
+(19, 10, 'destination_number', '^9001$', 190),
+(20, 11, 'destination_number', '^9000$', 200),
+(21, 12, 'destination_number', '^88(.*)$|^\\*0(.*)$', 210),
+(22, 13, 'destination_number', '^779$', 220),
+(23, 14, 'destination_number', '^\\*69$|^869$|^lcr$', 230),
+(24, 15, 'destination_number', '^80(\\d{2})$', 240),
+(25, 16, 'destination_number', '^81(\\d{2})$', 250),
+(26, 17, 'destination_number', '^82(\\d{2})$', 260),
+(27, 18, 'destination_number', '^83(\\d{2})$', 270),
+(28, 19, 'destination_number', '^8(10[01][0-9])$', 280),
+(29, 20, 'destination_number', '^(20[01][0-9])$', 290),
+(30, 20, 'destination_number', '^${caller_id_number}$', 300),
+(31, 21, 'destination_number', '^3000$', 310),
+(32, 22, 'destination_number', '^3001$', 320),
+(33, 23, 'destination_number', '^3002$', 330),
+(34, 24, 'destination_number', '^operator$|^0$', 340),
+(35, 25, 'destination_number', '^vmain|4000$', 350),
+(36, 26, 'destination_number', '^sip:(.*)$', 360),
+(37, 27, 'destination_number', '^(30\\d{2})$', 370),
+(38, 28, 'destination_number', '^(31\\d{2})$', 380),
+(39, 29, 'destination_number', '^(32\\d{2})$', 390),
+(40, 30, 'destination_number', '^(33\\d{2})$', 400),
+(41, 31, 'destination_number', '^9(888|1616|3232)$', 410),
+(42, 32, 'destination_number', '^0911$', 420),
+(43, 33, 'destination_number', '^0912$', 430),
+(44, 34, 'destination_number', '^0913$', 440),
+(45, 35, 'destination_number', '^5000$', 450),
+(46, 36, 'destination_number', '^5001$', 460),
+(47, 37, 'destination_number', '^pagegroup$|^7243', 470),
+(48, 38, 'destination_number', '^5900$', 480),
+(49, 39, 'destination_number', '^5901$', 490),
+(50, 40, 'source', 'mod_sofia', 500),
+(51, 40, 'destination_number', 'park\\+(\\d+)', 510),
+(52, 41, 'source', 'mod_sofia', 520),
+(53, 41, 'destination_number', '^parking$', 530),
+(54, 41, '${sip_to_params}', 'fifo\\=(\\d+)', 540),
+(55, 42, 'source', 'mod_sofia', 550),
+(56, 42, 'destination_number', 'callpark', 560),
+(57, 42, '${sip_refer_to}', '', 570),
+(58, 43, 'source', 'mod_sofia', 580),
+(59, 43, 'destination_number', 'pickup', 590),
+(60, 43, '${sip_to_params}', 'orbit\\=(\\d+)', 600),
+(61, 44, 'destination_number', '^wait$', 610),
+(62, 45, 'destination_number', '^9980$', 620),
+(63, 46, 'destination_number', '^9981$', 630),
+(64, 47, 'destination_number', '^9982$', 640),
+(65, 48, 'destination_number', '^9983$', 650),
+(66, 49, 'destination_number', '^9984$', 660),
+(67, 50, 'destination_number', '^9992$', 670),
+(68, 51, 'destination_number', '^9993$', 680),
+(69, 52, 'destination_number', '^9994$', 690),
+(70, 53, 'destination_number', '^9995$', 700),
+(71, 54, 'destination_number', '^9996$', 710),
+(72, 55, 'destination_number', '^9997$', 720),
+(73, 56, 'destination_number', '^9998$', 730),
+(74, 57, 'destination_number', '^9999$', 740),
+(75, 57, '${sip_has_crypto}', '^(AES_CM_128_HMAC_SHA1_32|AES_CM_128_HMAC_SHA1_80)$', 750);
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dialplan_context`
+--
+
+CREATE TABLE IF NOT EXISTS "dialplan_context" (
+ "context_id" int(11) NOT NULL,
+ "dialplan_id" int(11) NOT NULL,
+ "context" varchar(64) NOT NULL,
+ "weight" int(11) NOT NULL,
+ PRIMARY KEY ("context_id")
+) AUTO_INCREMENT=3 ;
+
+--
+-- Dumping data for table `dialplan_context`
+--
+
+INSERT INTO `dialplan_context` (`context_id`, `dialplan_id`, `context`, `weight`) VALUES
+(1, 1, 'default', 10),
+(2, 1, 'public', 20);
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dialplan_extension`
+--
+
+CREATE TABLE IF NOT EXISTS "dialplan_extension" (
+ "extension_id" int(11) NOT NULL,
+ "context_id" int(11) NOT NULL,
+ "name" varchar(128) NOT NULL,
+ "continue" varchar(32) NOT NULL,
+ "weight" int(11) NOT NULL,
+ PRIMARY KEY ("extension_id")
+) AUTO_INCREMENT=58 ;
+
+--
+-- Dumping data for table `dialplan_extension`
+--
+
+INSERT INTO `dialplan_extension` (`extension_id`, `context_id`, `name`, `continue`, `weight`) VALUES
+(1, 1, 'unloop', '', 10),
+(2, 1, 'set_domain', 'true', 20),
+(3, 1, 'set_domain_openzap', 'true', 30),
+(4, 1, 'tod_example', 'true', 40),
+(5, 1, 'global-intercept', '', 50),
+(6, 1, 'group-intercept', '', 60),
+(7, 1, 'intercept-ext', '', 70),
+(8, 1, 'redial', '', 80),
+(9, 1, 'global', 'true', 90),
+(10, 1, 'snom-demo-2', '', 100),
+(11, 1, 'snom-demo-1', '', 110),
+(12, 1, 'eavesdrop', '', 120),
+(13, 1, 'eavesdrop', '', 130),
+(14, 1, 'call_return', '', 140),
+(15, 1, 'del-group', '', 150),
+(16, 1, 'add-group', '', 160),
+(17, 1, 'call-group-simo', '', 170),
+(18, 1, 'call-group-order', '', 180),
+(19, 1, 'extension-intercom', '', 190),
+(20, 1, 'Local_Extension', '', 200),
+(21, 1, 'group_dial_sales', '', 210),
+(22, 1, 'group_dial_support', '', 220),
+(23, 1, 'group_dial_billing', '', 230),
+(24, 1, 'operator', '', 240),
+(25, 1, 'vmain', '', 250),
+(26, 1, 'sip_uri', '', 260),
+(27, 1, 'nb_conferences', '', 270),
+(28, 1, 'wb_conferences', '', 280),
+(29, 1, 'uwb_conferences', '', 290),
+(30, 1, 'cdquality_conferences', '', 300),
+(31, 1, 'freeswitch_public_conf_via_sip', '', 310),
+(32, 1, 'mad_boss_intercom', '', 320),
+(33, 1, 'mad_boss_intercom', '', 330),
+(34, 1, 'mad_boss', '', 340),
+(35, 1, 'ivr_demo', '', 350),
+(36, 1, 'dyanmic conference', '', 360),
+(37, 1, 'rtp_multicast_page', '', 370),
+(38, 1, 'park', '', 380),
+(39, 1, 'unpark', '', 390),
+(40, 1, 'park', '', 400),
+(41, 1, 'unpark', '', 410),
+(42, 1, 'park', '', 420),
+(43, 1, 'unpark', '', 430),
+(44, 1, 'wait', '', 440),
+(45, 1, 'ringback_180', '', 450),
+(46, 1, 'ringback_183_uk_ring', '', 460),
+(47, 1, 'ringback_183_music_ring', '', 470),
+(48, 1, 'ringback_post_answer_uk_ring', '', 480),
+(49, 1, 'ringback_post_answer_music', '', 490),
+(50, 1, 'show_info', '', 500),
+(51, 1, 'video_record', '', 510),
+(52, 1, 'video_playback', '', 520),
+(53, 1, 'delay_echo', '', 530),
+(54, 1, 'echo', '', 540),
+(55, 1, 'milliwatt', '', 550),
+(56, 2, 'tone_stream', '', 560),
+(57, 2, 'hold_music', '', 570);
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dialplan_special`
+--
+
+CREATE TABLE IF NOT EXISTS "dialplan_special" (
+ "id" int(11) NOT NULL,
+ "context" varchar(255) NOT NULL,
+ "class_file" varchar(255) NOT NULL,
+ PRIMARY KEY ("id"),
+ UNIQUE KEY "unique_context" ("context")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `dialplan_special`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dingaling_profiles`
+--
+
+CREATE TABLE IF NOT EXISTS "dingaling_profiles" (
+ "id" int(10) unsigned NOT NULL,
+ "profile_name" varchar(64) NOT NULL,
+ "type" varchar(64) NOT NULL,
+ PRIMARY KEY ("id"),
+ UNIQUE KEY "unique_name" ("profile_name")
+) AUTO_INCREMENT=2 ;
+
+--
+-- Dumping data for table `dingaling_profiles`
+--
+
+INSERT INTO `dingaling_profiles` (`id`, `profile_name`, `type`) VALUES
+(1, 'fs.intralanman.servehttp.com', 'component');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dingaling_profile_params`
+--
+
+CREATE TABLE IF NOT EXISTS "dingaling_profile_params" (
+ "id" int(10) unsigned NOT NULL,
+ "dingaling_id" int(10) unsigned NOT NULL,
+ "param_name" varchar(64) NOT NULL,
+ "param_value" varchar(64) NOT NULL,
+ PRIMARY KEY ("id"),
+ UNIQUE KEY "unique_type_name" ("dingaling_id","param_name")
+) AUTO_INCREMENT=5 ;
+
+--
+-- Dumping data for table `dingaling_profile_params`
+--
+
+INSERT INTO `dingaling_profile_params` (`id`, `dingaling_id`, `param_name`, `param_value`) VALUES
+(1, 1, 'password', 'secret'),
+(2, 1, 'dialplan', 'XML,enum'),
+(3, 1, 'server', 'example.org'),
+(4, 1, 'name', 'fs.example.org');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dingaling_settings`
+--
+
+CREATE TABLE IF NOT EXISTS "dingaling_settings" (
+ "id" int(10) unsigned NOT NULL,
+ "param_name" varchar(64) NOT NULL,
+ "param_value" varchar(64) NOT NULL,
+ PRIMARY KEY ("id"),
+ UNIQUE KEY "unique_param" ("param_name")
+) AUTO_INCREMENT=3 ;
+
+--
+-- Dumping data for table `dingaling_settings`
+--
+
+INSERT INTO `dingaling_settings` (`id`, `param_name`, `param_value`) VALUES
+(1, 'debug', '0'),
+(2, 'codec-prefs', '$${global_codec_prefs}');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `directory`
+--
+
+CREATE TABLE IF NOT EXISTS "directory" (
+ "id" int(11) NOT NULL,
+ "username" varchar(255) NOT NULL,
+ "domain" varchar(255) NOT NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=12 ;
+
+--
+-- Dumping data for table `directory`
+--
+
+INSERT INTO `directory` (`id`, `username`, `domain`) VALUES
+(1, '1000', 'example.com'),
+(2, '1001', 'example.org'),
+(3, '1002', 'example.net'),
+(5, '1003', 'example.info'),
+(6, '1004', 'example.com'),
+(7, '1005', 'example.org'),
+(8, '1006', 'example.net'),
+(9, '1007', 'example.info'),
+(10, '2000', 'default'),
+(11, '1009', '$${local_ip_v4}');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `directory_domains`
+--
+
+CREATE TABLE IF NOT EXISTS "directory_domains" (
+ "id" int(10) unsigned NOT NULL,
+ "domain_name" varchar(128) NOT NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=3 ;
+
+--
+-- Dumping data for table `directory_domains`
+--
+
+INSERT INTO `directory_domains` (`id`, `domain_name`) VALUES
+(1, 'freeswitch.org'),
+(2, 'sofaswitch.org');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `directory_gateways`
+--
+
+CREATE TABLE IF NOT EXISTS "directory_gateways" (
+ "id" int(10) unsigned NOT NULL,
+ "directory_id" int(10) unsigned NOT NULL,
+ "gateway_name" varchar(128) NOT NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `directory_gateways`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `directory_gateway_params`
+--
+
+CREATE TABLE IF NOT EXISTS "directory_gateway_params" (
+ "id" int(10) unsigned NOT NULL,
+ "d_gw_id" int(10) unsigned NOT NULL,
+ "param_name" varchar(64) NOT NULL,
+ "param_value" varchar(64) NOT NULL,
+ PRIMARY KEY ("id"),
+ UNIQUE KEY "unique_gw_param" ("d_gw_id","param_name")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `directory_gateway_params`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `directory_global_params`
+--
+
+CREATE TABLE IF NOT EXISTS "directory_global_params" (
+ "id" int(10) unsigned NOT NULL,
+ "param_name" varchar(64) NOT NULL,
+ "param_value" varchar(128) NOT NULL,
+ "domain_id" int(10) unsigned NOT NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=2 ;
+
+--
+-- Dumping data for table `directory_global_params`
+--
+
+INSERT INTO `directory_global_params` (`id`, `param_name`, `param_value`, `domain_id`) VALUES
+(1, 'default_gateway', 'errors', 1);
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `directory_global_vars`
+--
+
+CREATE TABLE IF NOT EXISTS "directory_global_vars" (
+ "id" int(10) unsigned NOT NULL,
+ "var_name" varchar(64) NOT NULL,
+ "var_value" varchar(128) NOT NULL,
+ "domain_id" int(10) unsigned NOT NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `directory_global_vars`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `directory_params`
+--
+
+CREATE TABLE IF NOT EXISTS "directory_params" (
+ "id" int(11) NOT NULL,
+ "directory_id" int(11) default NULL,
+ "param_name" varchar(255) default NULL,
+ "param_value" varchar(255) default NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=23 ;
+
+--
+-- Dumping data for table `directory_params`
+--
+
+INSERT INTO `directory_params` (`id`, `directory_id`, `param_name`, `param_value`) VALUES
+(1, 1, 'password', '1234'),
+(2, 1, 'vm-password', '861000'),
+(3, 2, 'password', '1234'),
+(4, 2, 'vm-password', '861001'),
+(7, 5, 'password', '1234'),
+(8, 6, 'password', '1234'),
+(9, 7, 'password', '1234'),
+(10, 8, 'password', '123456'),
+(11, 9, 'password', '1234'),
+(12, 10, 'password', '123456'),
+(13, 11, 'password', '1234'),
+(14, 3, 'vm-password', '861002'),
+(15, 3, 'password', '1234'),
+(16, 11, 'vm-password', '861009'),
+(17, 10, 'vm-password', '1234'),
+(18, 9, 'vm-password', '861007'),
+(19, 8, 'vm-password', '861006'),
+(20, 7, 'vm-password', '861005'),
+(21, 6, 'vm-password', '861004'),
+(22, 5, 'vm-password', '861003');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `directory_vars`
+--
+
+CREATE TABLE IF NOT EXISTS "directory_vars" (
+ "id" int(11) NOT NULL,
+ "directory_id" int(11) default NULL,
+ "var_name" varchar(255) default NULL,
+ "var_value" varchar(255) default NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=6 ;
+
+--
+-- Dumping data for table `directory_vars`
+--
+
+INSERT INTO `directory_vars` (`id`, `directory_id`, `var_name`, `var_value`) VALUES
+(1, 1, 'numbering_plan', 'US'),
+(2, 2, 'numbering_plan', 'US'),
+(3, 3, 'numbering_plan', 'AU'),
+(4, 5, 'numbering_plan', 'US'),
+(5, 5, 'area_code', '434');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `iax_conf`
+--
+
+CREATE TABLE IF NOT EXISTS "iax_conf" (
+ "id" int(11) NOT NULL,
+ "profile_name" varchar(255) default NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=4 ;
+
+--
+-- Dumping data for table `iax_conf`
+--
+
+INSERT INTO `iax_conf` (`id`, `profile_name`) VALUES
+(3, 'test_profile');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `iax_settings`
+--
+
+CREATE TABLE IF NOT EXISTS "iax_settings" (
+ "id" int(11) NOT NULL,
+ "iax_id" int(11) default NULL,
+ "param_name" varchar(255) default NULL,
+ "param_value" varchar(255) default NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=43 ;
+
+--
+-- Dumping data for table `iax_settings`
+--
+
+INSERT INTO `iax_settings` (`id`, `iax_id`, `param_name`, `param_value`) VALUES
+(35, 3, 'debug', '1'),
+(36, 3, 'ip', '$${local_ip_v4}'),
+(37, 3, 'port', '4569'),
+(38, 3, 'context', 'public'),
+(39, 3, 'dialplan', 'enum,XML'),
+(40, 3, 'codec-prefs', '$${global_codec_prefs}'),
+(41, 3, 'codec-master', 'us'),
+(42, 3, 'codec-rate', '8');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `ivr_conf`
+--
+
+CREATE TABLE IF NOT EXISTS "ivr_conf" (
+ "id" int(10) unsigned NOT NULL,
+ "name" varchar(64) NOT NULL,
+ "greet_long" varchar(255) NOT NULL,
+ "greet_short" varchar(255) NOT NULL,
+ "invalid_sound" varchar(255) NOT NULL,
+ "exit_sound" varchar(255) NOT NULL,
+ "max_failures" int(10) unsigned NOT NULL default '3',
+ "timeout" int(11) NOT NULL default '5',
+ "tts_engine" varchar(64) default NULL,
+ "tts_voice" varchar(64) default NULL,
+ PRIMARY KEY ("id"),
+ UNIQUE KEY "unique_name" ("name")
+) AUTO_INCREMENT=4 ;
+
+--
+-- Dumping data for table `ivr_conf`
+--
+
+INSERT INTO `ivr_conf` (`id`, `name`, `greet_long`, `greet_short`, `invalid_sound`, `exit_sound`, `max_failures`, `timeout`, `tts_engine`, `tts_voice`) VALUES
+(1, 'demo', 'soundfiles/ivr/demo/greet-long.wav', 'soundfiles/ivr/demo/greet-short.wav', 'soundfiles/ivr/invalid.wav', 'soundfiles/ivr/exit.wav', 3, 5, 'cepstral', 'allison'),
+(2, 'demo2', 'soundfiles/ivr/demo2/greet-long.wav', 'soundfiles/ivr/demo2/greet-short.wav', 'soundfiles/ivr/invalid.wav', 'soundfiles/ivr/exit.wav', 3, 5, NULL, NULL),
+(3, 'menu8', 'soundfiles/ivr/menu8/greet-long.wav', 'soundfiles/ivr/menu8/greet-short.wav', 'soundfiles/ivr/menu8/invalid.wav', 'soundfiles/ivr/menu8/exit.wav', 3, 5, NULL, NULL);
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `ivr_entries`
+--
+
+CREATE TABLE IF NOT EXISTS "ivr_entries" (
+ "id" int(10) unsigned NOT NULL,
+ "ivr_id" int(10) unsigned NOT NULL,
+ "action" varchar(64) NOT NULL,
+ "digits" varchar(16) NOT NULL,
+ "params" varchar(255) default NULL,
+ PRIMARY KEY ("id"),
+ UNIQUE KEY "unique_ivr_digits" ("ivr_id","digits")
+) AUTO_INCREMENT=11 ;
+
+--
+-- Dumping data for table `ivr_entries`
+--
+
+INSERT INTO `ivr_entries` (`id`, `ivr_id`, `action`, `digits`, `params`) VALUES
+(1, 1, 'menu-play-sound', '1', 'soundfiles/features.wav'),
+(2, 1, 'menu-exit', '*', NULL),
+(3, 1, 'menu-sub', '2', 'demo2'),
+(4, 1, 'menu-exec-api', '3', 'bridge sofia/$${domain}/888(a)conference.freeswtich.org'),
+(5, 1, 'menu-call-transfer', '4', '888'),
+(6, 2, 'menu-back', '#', NULL),
+(7, 2, 'menu-top', '*', NULL),
+(8, 3, 'menu-back', '#', NULL),
+(9, 3, 'menu-top', '*', NULL),
+(10, 3, 'menu-playsound', '4', 'soundfiles/4.wav');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `limit_conf`
+--
+
+CREATE TABLE IF NOT EXISTS "limit_conf" (
+ "id" int(11) NOT NULL,
+ "name" varchar(255) default NULL,
+ "value" varchar(255) default NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=2 ;
+
+--
+-- Dumping data for table `limit_conf`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `limit_data`
+--
+
+CREATE TABLE IF NOT EXISTS "limit_data" (
+ "hostname" varchar(255) default NULL,
+ "realm" varchar(255) default NULL,
+ "id" varchar(255) default NULL,
+ "uuid" varchar(255) default NULL
+);
+
+--
+-- Dumping data for table `limit_data`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `local_stream_conf`
+--
+
+CREATE TABLE IF NOT EXISTS "local_stream_conf" (
+ "id" int(11) NOT NULL,
+ "directory_name" varchar(255) default NULL,
+ "directory_path" text,
+ "param_name" varchar(255) default NULL,
+ "param_value" varchar(255) default NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `local_stream_conf`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `modless_conf`
+--
+
+CREATE TABLE IF NOT EXISTS "modless_conf" (
+ "id" int(10) unsigned NOT NULL,
+ "conf_name" varchar(64) NOT NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=4 ;
+
+--
+-- Dumping data for table `modless_conf`
+--
+
+INSERT INTO `modless_conf` (`id`, `conf_name`) VALUES
+(1, 'acl.conf'),
+(2, 'postl_load_switch.conf'),
+(3, 'post_load_modules.conf');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `post_load_modules_conf`
+--
+
+CREATE TABLE IF NOT EXISTS "post_load_modules_conf" (
+ "id" int(10) unsigned NOT NULL,
+ "module_name" varchar(64) NOT NULL,
+ "load_module" tinyint(1) NOT NULL default '1',
+ "priority" int(10) unsigned NOT NULL default '1000',
+ PRIMARY KEY ("id"),
+ UNIQUE KEY "unique_mod" ("module_name")
+) AUTO_INCREMENT=54 ;
+
+--
+-- Dumping data for table `post_load_modules_conf`
+--
+
+INSERT INTO `post_load_modules_conf` (`id`, `module_name`, `load_module`, `priority`) VALUES
+(1, 'mod_sofia', 1, 2000),
+(2, 'mod_iax', 1, 2000),
+(3, 'mod_xml_rpc', 1, 100),
+(4, 'mod_portaudio', 1, 1000),
+(5, 'mod_enum', 1, 2000),
+(6, 'mod_xml_cdr', 1, 1000),
+(7, 'mod_spidermonkey', 1, 1000),
+(8, 'mod_alsa', 0, 1000),
+(9, 'mod_log_file', 1, 0),
+(10, 'mod_commands', 1, 1000),
+(11, 'mod_voicemail', 1, 1000),
+(12, 'mod_dialplan_xml', 1, 150),
+(13, 'mod_dialplan_asterisk', 1, 150),
+(14, 'mod_openzap', 0, 1000),
+(15, 'mod_woomera', 0, 1000),
+(17, 'mod_speex', 1, 500),
+(18, 'mod_ilbc', 0, 1000),
+(20, 'mod_g723_1', 1, 500),
+(21, 'mod_g729', 1, 500),
+(22, 'mod_g722', 1, 500),
+(23, 'mod_g726', 1, 500),
+(25, 'mod_amr', 1, 500),
+(26, 'mod_fifo', 1, 1000),
+(27, 'mod_limit', 1, 1000),
+(28, 'mod_syslog', 1, 0),
+(29, 'mod_dingaling', 1, 2000),
+(30, 'mod_cdr_csv', 1, 1000),
+(31, 'mod_event_socket', 1, 100),
+(32, 'mod_multicast', 0, 1000),
+(33, 'mod_zeroconf', 0, 1000),
+(34, 'mod_xmpp_event', 0, 1000),
+(35, 'mod_sndfile', 1, 1000),
+(36, 'mod_native_file', 1, 1000),
+(37, 'mod_shout', 1, 1000),
+(38, 'mod_local_stream', 1, 1000),
+(39, 'mod_perl', 0, 1000),
+(40, 'mod_python', 0, 1000),
+(41, 'mod_java', 0, 1000),
+(42, 'mod_cepstral', 0, 1000),
+(43, 'mod_openmrcp', 0, 1000),
+(44, 'mod_lumenvox', 0, 1000),
+(45, 'mod_rss', 0, 1000),
+(46, 'mod_say_de', 1, 1000),
+(47, 'mod_say_fr', 0, 1000),
+(48, 'mod_say_en', 1, 1000),
+(49, 'mod_conference', 1, 1000),
+(50, 'mod_ivr', 0, 1000),
+(51, 'mod_console', 1, 0),
+(52, 'mod_dptools', 1, 1500),
+(53, 'mod_voipcodecs', 1, 500);
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `rss_conf`
+--
+
+CREATE TABLE IF NOT EXISTS "rss_conf" (
+ "id" int(11) NOT NULL,
+ "directory_id" int(11) NOT NULL,
+ "feed" text NOT NULL,
+ "local_file" text NOT NULL,
+ "description" text,
+ "priority" int(11) NOT NULL default '1000',
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=15 ;
+
+--
+-- Dumping data for table `rss_conf`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `sip_authentication`
+--
+
+CREATE TABLE IF NOT EXISTS "sip_authentication" (
+ "nonce" varchar(255) default NULL,
+ "expires" int(11) default NULL
+);
+
+--
+-- Dumping data for table `sip_authentication`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `sip_dialogs`
+--
+
+CREATE TABLE IF NOT EXISTS "sip_dialogs" (
+ "call_id" varchar(255) default NULL,
+ "uuid" varchar(255) default NULL,
+ "sip_to_user" varchar(255) default NULL,
+ "sip_to_host" varchar(255) default NULL,
+ "sip_from_user" varchar(255) default NULL,
+ "sip_from_host" varchar(255) default NULL,
+ "contact_user" varchar(255) default NULL,
+ "contact_host" varchar(255) default NULL,
+ "state" varchar(255) default NULL,
+ "direction" varchar(255) default NULL,
+ "user_agent" varchar(255) default NULL
+);
+
+--
+-- Dumping data for table `sip_dialogs`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `sip_registrations`
+--
+
+CREATE TABLE IF NOT EXISTS "sip_registrations" (
+ "call_id" varchar(255) default NULL,
+ "sip_user" varchar(255) default NULL,
+ "sip_host" varchar(255) default NULL,
+ "contact" varchar(1024) default NULL,
+ "status" varchar(255) default NULL,
+ "rpid" varchar(255) default NULL,
+ "expires" int(11) default NULL,
+ "user_agent" varchar(255) default NULL
+);
+
+--
+-- Dumping data for table `sip_registrations`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `sip_subscriptions`
+--
+
+CREATE TABLE IF NOT EXISTS "sip_subscriptions" (
+ "proto" varchar(255) default NULL,
+ "sip_user" varchar(255) default NULL,
+ "sip_host" varchar(255) default NULL,
+ "sub_to_user" varchar(255) default NULL,
+ "sub_to_host" varchar(255) default NULL,
+ "event" varchar(255) default NULL,
+ "contact" varchar(1024) default NULL,
+ "call_id" varchar(255) default NULL,
+ "full_from" varchar(255) default NULL,
+ "full_via" varchar(255) default NULL,
+ "expires" int(11) default NULL,
+ "user_agent" varchar(255) default NULL,
+ "accept" varchar(255) default NULL
+);
+
+--
+-- Dumping data for table `sip_subscriptions`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `sofia_aliases`
+--
+
+CREATE TABLE IF NOT EXISTS "sofia_aliases" (
+ "id" int(10) unsigned NOT NULL,
+ "sofia_id" int(10) unsigned NOT NULL,
+ "alias_name" varchar(255) NOT NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=4 ;
+
+--
+-- Dumping data for table `sofia_aliases`
+--
+
+INSERT INTO `sofia_aliases` (`id`, `sofia_id`, `alias_name`) VALUES
+(1, 1, 'default'),
+(3, 1, 'sip.example.com');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `sofia_conf`
+--
+
+CREATE TABLE IF NOT EXISTS "sofia_conf" (
+ "id" int(11) NOT NULL,
+ "profile_name" varchar(255) default NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=2 ;
+
+--
+-- Dumping data for table `sofia_conf`
+--
+
+INSERT INTO `sofia_conf` (`id`, `profile_name`) VALUES
+(1, '$${domain}');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `sofia_domains`
+--
+
+CREATE TABLE IF NOT EXISTS "sofia_domains" (
+ "id" int(11) NOT NULL,
+ "sofia_id" int(11) default NULL,
+ "domain_name" varchar(255) default NULL,
+ "parse" tinyint(1) default NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `sofia_domains`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `sofia_gateways`
+--
+
+CREATE TABLE IF NOT EXISTS "sofia_gateways" (
+ "id" int(11) NOT NULL,
+ "sofia_id" int(11) default NULL,
+ "gateway_name" varchar(255) default NULL,
+ "gateway_param" varchar(255) default NULL,
+ "gateway_value" varchar(255) default NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=15 ;
+
+--
+-- Dumping data for table `sofia_gateways`
+--
+
+INSERT INTO `sofia_gateways` (`id`, `sofia_id`, `gateway_name`, `gateway_param`, `gateway_value`) VALUES
+(8, 1, 'default', 'proxy', 'asterlink.com'),
+(9, 1, 'default', 'realm', 'asterlink.com'),
+(10, 1, 'default', 'username', 'USERNAME_HERE'),
+(11, 1, 'default', 'register', 'false'),
+(12, 1, 'default', 'expire-seconds', '60'),
+(13, 1, 'default', 'retry_seconds', '2'),
+(14, 1, 'default', 'password', 'PASSWORD_HERE');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `sofia_settings`
+--
+
+CREATE TABLE IF NOT EXISTS "sofia_settings" (
+ "id" int(11) NOT NULL,
+ "sofia_id" int(11) default NULL,
+ "param_name" varchar(255) default NULL,
+ "param_value" varchar(255) default NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=37 ;
+
+--
+-- Dumping data for table `sofia_settings`
+--
+
+INSERT INTO `sofia_settings` (`id`, `sofia_id`, `param_name`, `param_value`) VALUES
+(1, 1, 'user-agent-string', 'RayUA 2.0pre4'),
+(2, 1, 'auth-calls', 'true'),
+(5, 1, 'debug', '1'),
+(6, 1, 'rfc2833-pt', '101'),
+(7, 1, 'sip-port', '5060'),
+(8, 1, 'dialplan', 'XML'),
+(9, 1, 'dtmf-duration', '100'),
+(10, 1, 'codec-prefs', '$${global_codec_prefs}'),
+(11, 1, 'rtp-timeout-sec', '300'),
+(12, 1, 'rtp-ip', '$${local_ip_v4}'),
+(13, 1, 'sip-ip', '$${local_ip_v4}'),
+(14, 1, 'context', 'default'),
+(15, 1, 'manage-presence', 'true'),
+(16, 1, 'force-register-domain', 'intralanman.servehttp.com'),
+(17, 1, 'inbound-codec-negotiation', 'generous'),
+(18, 1, 'rtp-rewrite-timestampes', 'true'),
+(19, 1, 'nonce-ttl', '60'),
+(20, 1, 'vad', 'out'),
+(36, 1, 'odbc-dsn', 'freeswitch-mysql:freeswitch:Fr33Sw1tch');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `voicemail_conf`
+--
+
+CREATE TABLE IF NOT EXISTS "voicemail_conf" (
+ "id" int(10) unsigned NOT NULL,
+ "vm_profile" varchar(64) NOT NULL,
+ PRIMARY KEY ("id"),
+ UNIQUE KEY "unique_profile" ("vm_profile")
+) AUTO_INCREMENT=2 ;
+
+--
+-- Dumping data for table `voicemail_conf`
+--
+
+INSERT INTO `voicemail_conf` (`id`, `vm_profile`) VALUES
+(1, 'default');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `voicemail_email`
+--
+
+CREATE TABLE IF NOT EXISTS "voicemail_email" (
+ "id" int(10) unsigned NOT NULL,
+ "voicemail_id" int(10) unsigned NOT NULL,
+ "param_name" varchar(64) NOT NULL,
+ "param_value" varchar(64) NOT NULL,
+ PRIMARY KEY ("id"),
+ UNIQUE KEY "unique_profile_param" ("param_name","voicemail_id")
+) AUTO_INCREMENT=4 ;
+
+--
+-- Dumping data for table `voicemail_email`
+--
+
+INSERT INTO `voicemail_email` (`id`, `voicemail_id`, `param_name`, `param_value`) VALUES
+(1, 1, 'template-file', 'voicemail.tpl'),
+(2, 1, 'date-fmt', '%A, %B %d %Y, %I %M %p'),
+(3, 1, 'email-from', '${voicemail_account}@${voicemail_domain}');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `voicemail_settings`
+--
+
+CREATE TABLE IF NOT EXISTS "voicemail_settings" (
+ "id" int(11) NOT NULL,
+ "voicemail_id" int(11) default NULL,
+ "param_name" varchar(255) default NULL,
+ "param_value" varchar(255) default NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=31 ;
+
+--
+-- Dumping data for table `voicemail_settings`
+--
+
+INSERT INTO `voicemail_settings` (`id`, `voicemail_id`, `param_name`, `param_value`) VALUES
+(1, 1, 'file-extension', 'wav'),
+(2, 1, 'terminator-key', '#'),
+(3, 1, 'max-login-attempts', '3'),
+(4, 1, 'digit-timeout', '10000'),
+(5, 1, 'max-record-length', '300'),
+(6, 1, 'tone-spec', '%(1000, 0, 640)'),
+(7, 1, 'callback-dialplan', 'XML'),
+(8, 1, 'callback-context', 'default'),
+(9, 1, 'play-new-messages-key', '1'),
+(10, 1, 'play-saved-messages-key', '2'),
+(11, 1, 'main-menu-key', '*'),
+(12, 1, 'config-menu-key', '5'),
+(13, 1, 'record-greeting-key', '1'),
+(14, 1, 'choose-greeting-key', '2'),
+(15, 1, 'record-file-key', '3'),
+(16, 1, 'listen-file-key', '1'),
+(17, 1, 'record-name-key', '3'),
+(18, 1, 'save-file-key', '9'),
+(19, 1, 'delete-file-key', '7'),
+(20, 1, 'undelete-file-key', '8'),
+(21, 1, 'email-key', '4'),
+(22, 1, 'pause-key', '0'),
+(23, 1, 'restart-key', '1'),
+(24, 1, 'ff-key', '6'),
+(25, 1, 'rew-key', '4'),
+(26, 1, 'record-silence-threshold', '200'),
+(27, 1, 'record-silence-hits', '2'),
+(28, 1, 'web-template-file', 'web-vm.tpl'),
+(29, 1, 'operator-extension', 'operator XML default'),
+(30, 1, 'operator-key', '9');
+
+--
+-- Constraints for dumped tables
+--
+
+--
+-- Constraints for table `dingaling_profile_params`
+--
+ALTER TABLE `dingaling_profile_params`
+ ADD CONSTRAINT "dingaling_profile" FOREIGN KEY ("dingaling_id") REFERENCES "dingaling_profiles" ("id") ON DELETE CASCADE ON UPDATE CASCADE;
Added: freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/sql/oracle.sql
==============================================================================
--- (empty file)
+++ freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/sql/oracle.sql Sun Feb 15 21:38:28 2009
@@ -0,0 +1,885 @@
+-- phpMyAdmin SQL Dump
+-- version 3.1.2deb1
+-- http://www.phpmyadmin.net
+--
+-- Host: localhost
+-- Generation Time: Feb 15, 2009 at 09:37 PM
+-- Server version: 5.0.75
+-- PHP Version: 5.2.6-3ubuntu2
+
+
+/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
+/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
+/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
+/*!40101 SET NAMES utf8 */;
+
+--
+-- Database: `freeswitch`
+--
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `acl_lists`
+--
+
+CREATE TABLE IF NOT EXISTS "acl_lists" (
+ "id" int(10) unsigned NOT NULL,
+ "acl_name" varchar(128) NOT NULL,
+ "default_policy" varchar(45) NOT NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `acl_lists`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `acl_nodes`
+--
+
+CREATE TABLE IF NOT EXISTS "acl_nodes" (
+ "id" int(10) unsigned NOT NULL,
+ "cidr" varchar(45) NOT NULL,
+ "type" varchar(16) NOT NULL,
+ "list_id" int(10) unsigned NOT NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `acl_nodes`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `conference_advertise`
+--
+
+CREATE TABLE IF NOT EXISTS "conference_advertise" (
+ "id" int(10) unsigned NOT NULL,
+ "room" varchar(64) NOT NULL,
+ "status" varchar(128) NOT NULL,
+ PRIMARY KEY ("id"),
+ UNIQUE KEY "unique_room" ("room")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `conference_advertise`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `conference_controls`
+--
+
+CREATE TABLE IF NOT EXISTS "conference_controls" (
+ "id" int(10) unsigned NOT NULL,
+ "conf_group" varchar(64) NOT NULL,
+ "action" varchar(64) NOT NULL,
+ "digits" varchar(16) NOT NULL,
+ PRIMARY KEY ("id"),
+ UNIQUE KEY "unique_group_action" ("conf_group","action")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `conference_controls`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `conference_profiles`
+--
+
+CREATE TABLE IF NOT EXISTS "conference_profiles" (
+ "id" int(10) unsigned NOT NULL,
+ "profile_name" varchar(64) NOT NULL,
+ "param_name" varchar(64) NOT NULL,
+ "param_value" varchar(64) NOT NULL,
+ PRIMARY KEY ("id"),
+ KEY "unique_profile_param" ("profile_name","param_name")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `conference_profiles`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dialplan`
+--
+
+CREATE TABLE IF NOT EXISTS "dialplan" (
+ "dialplan_id" int(11) NOT NULL,
+ "domain" varchar(128) NOT NULL,
+ "ip_address" varchar(15) NOT NULL,
+ PRIMARY KEY ("dialplan_id")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `dialplan`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dialplan_actions`
+--
+
+CREATE TABLE IF NOT EXISTS "dialplan_actions" (
+ "action_id" int(11) NOT NULL,
+ "condition_id" int(11) NOT NULL,
+ "application" varchar(256) NOT NULL,
+ "data" varchar(256) NOT NULL,
+ "type" varchar(32) NOT NULL,
+ "weight" int(11) NOT NULL,
+ PRIMARY KEY ("action_id")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `dialplan_actions`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dialplan_condition`
+--
+
+CREATE TABLE IF NOT EXISTS "dialplan_condition" (
+ "condition_id" int(11) NOT NULL,
+ "extension_id" int(11) NOT NULL,
+ "field" varchar(1238) NOT NULL,
+ "expression" varchar(128) NOT NULL,
+ "weight" int(11) NOT NULL,
+ PRIMARY KEY ("condition_id")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `dialplan_condition`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dialplan_context`
+--
+
+CREATE TABLE IF NOT EXISTS "dialplan_context" (
+ "context_id" int(11) NOT NULL,
+ "dialplan_id" int(11) NOT NULL,
+ "context" varchar(64) NOT NULL,
+ "weight" int(11) NOT NULL,
+ PRIMARY KEY ("context_id")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `dialplan_context`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dialplan_extension`
+--
+
+CREATE TABLE IF NOT EXISTS "dialplan_extension" (
+ "extension_id" int(11) NOT NULL,
+ "context_id" int(11) NOT NULL,
+ "name" varchar(128) NOT NULL,
+ "continue" varchar(32) NOT NULL,
+ "weight" int(11) NOT NULL,
+ PRIMARY KEY ("extension_id")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `dialplan_extension`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dialplan_special`
+--
+
+CREATE TABLE IF NOT EXISTS "dialplan_special" (
+ "id" int(11) NOT NULL,
+ "context" varchar(255) NOT NULL,
+ "class_file" varchar(255) NOT NULL,
+ PRIMARY KEY ("id"),
+ UNIQUE KEY "unique_context" ("context")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `dialplan_special`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dingaling_profiles`
+--
+
+CREATE TABLE IF NOT EXISTS "dingaling_profiles" (
+ "id" int(10) unsigned NOT NULL,
+ "profile_name" varchar(64) NOT NULL,
+ "type" varchar(64) NOT NULL,
+ PRIMARY KEY ("id"),
+ UNIQUE KEY "unique_name" ("profile_name")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `dingaling_profiles`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dingaling_profile_params`
+--
+
+CREATE TABLE IF NOT EXISTS "dingaling_profile_params" (
+ "id" int(10) unsigned NOT NULL,
+ "dingaling_id" int(10) unsigned NOT NULL,
+ "param_name" varchar(64) NOT NULL,
+ "param_value" varchar(64) NOT NULL,
+ PRIMARY KEY ("id"),
+ UNIQUE KEY "unique_type_name" ("dingaling_id","param_name")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `dingaling_profile_params`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `dingaling_settings`
+--
+
+CREATE TABLE IF NOT EXISTS "dingaling_settings" (
+ "id" int(10) unsigned NOT NULL,
+ "param_name" varchar(64) NOT NULL,
+ "param_value" varchar(64) NOT NULL,
+ PRIMARY KEY ("id"),
+ UNIQUE KEY "unique_param" ("param_name")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `dingaling_settings`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `directory`
+--
+
+CREATE TABLE IF NOT EXISTS "directory" (
+ "id" int(11) NOT NULL,
+ "username" varchar(255) NOT NULL,
+ "domain" varchar(255) NOT NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `directory`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `directory_domains`
+--
+
+CREATE TABLE IF NOT EXISTS "directory_domains" (
+ "id" int(10) unsigned NOT NULL,
+ "domain_name" varchar(128) NOT NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `directory_domains`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `directory_gateways`
+--
+
+CREATE TABLE IF NOT EXISTS "directory_gateways" (
+ "id" int(10) unsigned NOT NULL,
+ "directory_id" int(10) unsigned NOT NULL,
+ "gateway_name" varchar(128) NOT NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `directory_gateways`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `directory_gateway_params`
+--
+
+CREATE TABLE IF NOT EXISTS "directory_gateway_params" (
+ "id" int(10) unsigned NOT NULL,
+ "d_gw_id" int(10) unsigned NOT NULL,
+ "param_name" varchar(64) NOT NULL,
+ "param_value" varchar(64) NOT NULL,
+ PRIMARY KEY ("id"),
+ UNIQUE KEY "unique_gw_param" ("d_gw_id","param_name")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `directory_gateway_params`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `directory_global_params`
+--
+
+CREATE TABLE IF NOT EXISTS "directory_global_params" (
+ "id" int(10) unsigned NOT NULL,
+ "param_name" varchar(64) NOT NULL,
+ "param_value" varchar(128) NOT NULL,
+ "domain_id" int(10) unsigned NOT NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `directory_global_params`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `directory_global_vars`
+--
+
+CREATE TABLE IF NOT EXISTS "directory_global_vars" (
+ "id" int(10) unsigned NOT NULL,
+ "var_name" varchar(64) NOT NULL,
+ "var_value" varchar(128) NOT NULL,
+ "domain_id" int(10) unsigned NOT NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `directory_global_vars`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `directory_params`
+--
+
+CREATE TABLE IF NOT EXISTS "directory_params" (
+ "id" int(11) NOT NULL,
+ "directory_id" int(11) default NULL,
+ "param_name" varchar(255) default NULL,
+ "param_value" varchar(255) default NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `directory_params`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `directory_vars`
+--
+
+CREATE TABLE IF NOT EXISTS "directory_vars" (
+ "id" int(11) NOT NULL,
+ "directory_id" int(11) default NULL,
+ "var_name" varchar(255) default NULL,
+ "var_value" varchar(255) default NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `directory_vars`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `iax_conf`
+--
+
+CREATE TABLE IF NOT EXISTS "iax_conf" (
+ "id" int(11) NOT NULL,
+ "profile_name" varchar(255) default NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `iax_conf`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `iax_settings`
+--
+
+CREATE TABLE IF NOT EXISTS "iax_settings" (
+ "id" int(11) NOT NULL,
+ "iax_id" int(11) default NULL,
+ "param_name" varchar(255) default NULL,
+ "param_value" varchar(255) default NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `iax_settings`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `ivr_conf`
+--
+
+CREATE TABLE IF NOT EXISTS "ivr_conf" (
+ "id" int(10) unsigned NOT NULL,
+ "name" varchar(64) NOT NULL,
+ "greet_long" varchar(255) NOT NULL,
+ "greet_short" varchar(255) NOT NULL,
+ "invalid_sound" varchar(255) NOT NULL,
+ "exit_sound" varchar(255) NOT NULL,
+ "max_failures" int(10) unsigned NOT NULL default '3',
+ "timeout" int(11) NOT NULL default '5',
+ "tts_engine" varchar(64) default NULL,
+ "tts_voice" varchar(64) default NULL,
+ PRIMARY KEY ("id"),
+ UNIQUE KEY "unique_name" ("name")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `ivr_conf`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `ivr_entries`
+--
+
+CREATE TABLE IF NOT EXISTS "ivr_entries" (
+ "id" int(10) unsigned NOT NULL,
+ "ivr_id" int(10) unsigned NOT NULL,
+ "action" varchar(64) NOT NULL,
+ "digits" varchar(16) NOT NULL,
+ "params" varchar(255) default NULL,
+ PRIMARY KEY ("id"),
+ UNIQUE KEY "unique_ivr_digits" ("ivr_id","digits")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `ivr_entries`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `limit_conf`
+--
+
+CREATE TABLE IF NOT EXISTS "limit_conf" (
+ "id" int(11) NOT NULL,
+ "name" varchar(255) default NULL,
+ "value" varchar(255) default NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `limit_conf`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `limit_data`
+--
+
+CREATE TABLE IF NOT EXISTS "limit_data" (
+ "hostname" varchar(255) default NULL,
+ "realm" varchar(255) default NULL,
+ "id" varchar(255) default NULL,
+ "uuid" varchar(255) default NULL
+);
+
+--
+-- Dumping data for table `limit_data`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `local_stream_conf`
+--
+
+CREATE TABLE IF NOT EXISTS "local_stream_conf" (
+ "id" int(11) NOT NULL,
+ "directory_name" varchar(255) default NULL,
+ "directory_path" text,
+ "param_name" varchar(255) default NULL,
+ "param_value" varchar(255) default NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `local_stream_conf`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `modless_conf`
+--
+
+CREATE TABLE IF NOT EXISTS "modless_conf" (
+ "id" int(10) unsigned NOT NULL,
+ "conf_name" varchar(64) NOT NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `modless_conf`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `post_load_modules_conf`
+--
+
+CREATE TABLE IF NOT EXISTS "post_load_modules_conf" (
+ "id" int(10) unsigned NOT NULL,
+ "module_name" varchar(64) NOT NULL,
+ "load_module" tinyint(1) NOT NULL default '1',
+ "priority" int(10) unsigned NOT NULL default '1000',
+ PRIMARY KEY ("id"),
+ UNIQUE KEY "unique_mod" ("module_name")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `post_load_modules_conf`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `rss_conf`
+--
+
+CREATE TABLE IF NOT EXISTS "rss_conf" (
+ "id" int(11) NOT NULL,
+ "directory_id" int(11) NOT NULL,
+ "feed" text NOT NULL,
+ "local_file" text NOT NULL,
+ "description" text,
+ "priority" int(11) NOT NULL default '1000',
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `rss_conf`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `sip_authentication`
+--
+
+CREATE TABLE IF NOT EXISTS "sip_authentication" (
+ "nonce" varchar(255) default NULL,
+ "expires" int(11) default NULL
+);
+
+--
+-- Dumping data for table `sip_authentication`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `sip_dialogs`
+--
+
+CREATE TABLE IF NOT EXISTS "sip_dialogs" (
+ "call_id" varchar(255) default NULL,
+ "uuid" varchar(255) default NULL,
+ "sip_to_user" varchar(255) default NULL,
+ "sip_to_host" varchar(255) default NULL,
+ "sip_from_user" varchar(255) default NULL,
+ "sip_from_host" varchar(255) default NULL,
+ "contact_user" varchar(255) default NULL,
+ "contact_host" varchar(255) default NULL,
+ "state" varchar(255) default NULL,
+ "direction" varchar(255) default NULL,
+ "user_agent" varchar(255) default NULL
+);
+
+--
+-- Dumping data for table `sip_dialogs`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `sip_registrations`
+--
+
+CREATE TABLE IF NOT EXISTS "sip_registrations" (
+ "call_id" varchar(255) default NULL,
+ "sip_user" varchar(255) default NULL,
+ "sip_host" varchar(255) default NULL,
+ "contact" varchar(1024) default NULL,
+ "status" varchar(255) default NULL,
+ "rpid" varchar(255) default NULL,
+ "expires" int(11) default NULL,
+ "user_agent" varchar(255) default NULL
+);
+
+--
+-- Dumping data for table `sip_registrations`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `sip_subscriptions`
+--
+
+CREATE TABLE IF NOT EXISTS "sip_subscriptions" (
+ "proto" varchar(255) default NULL,
+ "sip_user" varchar(255) default NULL,
+ "sip_host" varchar(255) default NULL,
+ "sub_to_user" varchar(255) default NULL,
+ "sub_to_host" varchar(255) default NULL,
+ "event" varchar(255) default NULL,
+ "contact" varchar(1024) default NULL,
+ "call_id" varchar(255) default NULL,
+ "full_from" varchar(255) default NULL,
+ "full_via" varchar(255) default NULL,
+ "expires" int(11) default NULL,
+ "user_agent" varchar(255) default NULL,
+ "accept" varchar(255) default NULL
+);
+
+--
+-- Dumping data for table `sip_subscriptions`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `sofia_aliases`
+--
+
+CREATE TABLE IF NOT EXISTS "sofia_aliases" (
+ "id" int(10) unsigned NOT NULL,
+ "sofia_id" int(10) unsigned NOT NULL,
+ "alias_name" varchar(255) NOT NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `sofia_aliases`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `sofia_conf`
+--
+
+CREATE TABLE IF NOT EXISTS "sofia_conf" (
+ "id" int(11) NOT NULL,
+ "profile_name" varchar(255) default NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `sofia_conf`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `sofia_domains`
+--
+
+CREATE TABLE IF NOT EXISTS "sofia_domains" (
+ "id" int(11) NOT NULL,
+ "sofia_id" int(11) default NULL,
+ "domain_name" varchar(255) default NULL,
+ "parse" tinyint(1) default NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `sofia_domains`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `sofia_gateways`
+--
+
+CREATE TABLE IF NOT EXISTS "sofia_gateways" (
+ "id" int(11) NOT NULL,
+ "sofia_id" int(11) default NULL,
+ "gateway_name" varchar(255) default NULL,
+ "gateway_param" varchar(255) default NULL,
+ "gateway_value" varchar(255) default NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `sofia_gateways`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `sofia_settings`
+--
+
+CREATE TABLE IF NOT EXISTS "sofia_settings" (
+ "id" int(11) NOT NULL,
+ "sofia_id" int(11) default NULL,
+ "param_name" varchar(255) default NULL,
+ "param_value" varchar(255) default NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `sofia_settings`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `voicemail_conf`
+--
+
+CREATE TABLE IF NOT EXISTS "voicemail_conf" (
+ "id" int(10) unsigned NOT NULL,
+ "vm_profile" varchar(64) NOT NULL,
+ PRIMARY KEY ("id"),
+ UNIQUE KEY "unique_profile" ("vm_profile")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `voicemail_conf`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `voicemail_email`
+--
+
+CREATE TABLE IF NOT EXISTS "voicemail_email" (
+ "id" int(10) unsigned NOT NULL,
+ "voicemail_id" int(10) unsigned NOT NULL,
+ "param_name" varchar(64) NOT NULL,
+ "param_value" varchar(64) NOT NULL,
+ PRIMARY KEY ("id"),
+ UNIQUE KEY "unique_profile_param" ("param_name","voicemail_id")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `voicemail_email`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `voicemail_settings`
+--
+
+CREATE TABLE IF NOT EXISTS "voicemail_settings" (
+ "id" int(11) NOT NULL,
+ "voicemail_id" int(11) default NULL,
+ "param_name" varchar(255) default NULL,
+ "param_value" varchar(255) default NULL,
+ PRIMARY KEY ("id")
+) AUTO_INCREMENT=1 ;
+
+--
+-- Dumping data for table `voicemail_settings`
+--
+
+
+--
+-- Constraints for dumped tables
+--
+
+--
+-- Constraints for table `dingaling_profile_params`
+--
+ALTER TABLE `dingaling_profile_params`
+ ADD CONSTRAINT "dingaling_profile" FOREIGN KEY ("dingaling_id") REFERENCES "dingaling_profiles" ("id") ON DELETE CASCADE ON UPDATE CASCADE;
1
0
Author: shaneb
Date: Sun Feb 15 19:34:50 2009
New Revision: 12037
Log:
Add create of switch_version.h
Modified:
freeswitch/trunk/CMakeLists.txt
Modified: freeswitch/trunk/CMakeLists.txt
==============================================================================
--- freeswitch/trunk/CMakeLists.txt (original)
+++ freeswitch/trunk/CMakeLists.txt Sun Feb 15 19:34:50 2009
@@ -13,13 +13,11 @@
# project version
-SET( ${PROJECT_NAME}_MAJOR_VERSION 0 )
-SET( ${PROJECT_NAME}_MINOR_VERSION 1 )
+SET( ${PROJECT_NAME}_MAJOR_VERSION 1 )
+SET( ${PROJECT_NAME}_MINOR_VERSION 0 )
SET( ${PROJECT_NAME}_PATCH_LEVEL 0 )
-
-#ADD_DEFINITIONS( "-DSWITCH_VERSION_REVISION=${Project_WC_REVISION}" )
-
+configure_file(src/include/switch_version.h.cmake src/include/switch_version.h [@ONLY])
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules/")
INCLUDE (CheckSymbolExists)
@@ -33,10 +31,8 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
-# ADD_DEFINITIONS( "-Wall -ansi -pedantic" )
-
MESSAGE( STATUS )
-MESSAGE( STATUS "FREESWITCH CMAKE Build - Shane Burrell-----------------------------------------" )
+MESSAGE( STATUS "FREESWITCH CMAKE Build-----------------------------------------" )
MESSAGE( STATUS "BUILD_SHARED_LIBS = ${BUILD_SHARED_LIBS}" )
MESSAGE( STATUS "CMAKE_INSTALL_PREFIX = ${CMAKE_INSTALL_PREFIX}" )
MESSAGE( STATUS "CMAKE_BUILD_TYPE = ${CMAKE_BUILD_TYPE}" )
@@ -45,13 +41,9 @@
MESSAGE( STATUS "BUILD_WITH = \"${BUILD_WITH}\"" )
MESSAGE( STATUS "INSTALL_DOC = ${INSTALL_DOC}" )
MESSAGE( STATUS "Change a value with: cmake -D<Variable>=<Value>" )
-MESSAGE( STATUS "-------------------------------------------------------------------------------" )
+MESSAGE( STATUS "---------------------------------------------------------------" )
MESSAGE( STATUS )
-
-
-
-
# Configuration checks
check_symbol_exists (strncasecmp "string.h" HAVE_STRNCASECMP)
check_symbol_exists (strcasecmp "string.h" HAVE_STRCASECMP)
@@ -132,32 +124,7 @@
# the complete system name, e.g. "Linux-2.4.22", "FreeBSD-5.4-RELEASE" or "Windows 5.1"
MESSAGE( STATUS "CMAKE_SYSTEM: " ${CMAKE_SYSTEM} )
# the short system name, e.g. "Linux", "FreeBSD" or "Windows"
-MESSAGE( STATUS "CMAKE_SYSTEM_NAME: " ${CMAKE_SYSTEM_NAME} )
-# only the version part of CMAKE_SYSTEM
-MESSAGE( STATUS "CMAKE_SYSTEM_VERSION: " ${CMAKE_SYSTEM_VERSION} )
-# the processor name (e.g. "Intel(R) Pentium(R) M processor 2.00GHz")
-MESSAGE( STATUS "CMAKE_SYSTEM_PROCESSOR: " ${CMAKE_SYSTEM_PROCESSOR} )
-# is TRUE on all UNIX-like OS's, including Apple OS X and CygWin
-MESSAGE( STATUS "UNIX: " ${UNIX} )
-# is TRUE on Windows, including CygWin
-MESSAGE( STATUS "WIN32: " ${WIN32} )
-# is TRUE on Apple OS X
-MESSAGE( STATUS "APPLE: " ${APPLE} )
-
-# is TRUE when using the MinGW compiler in Windows
-MESSAGE( STATUS "MINGW: " ${MINGW} )
-# is TRUE on Windows when using the CygWin version of cmake
-MESSAGE( STATUS "CYGWIN: " ${CYGWIN} )
-# is TRUE on Windows when using a Borland compiler
-MESSAGE( STATUS "BORLAND: " ${BORLAND} )
-# Microsoft compiler
-MESSAGE( STATUS "MSVC: " ${MSVC} )
-MESSAGE( STATUS "MSVC_IDE: " ${MSVC_IDE} )
-MESSAGE( STATUS "MSVC60: " ${MSVC60} )
-MESSAGE( STATUS "MSVC70: " ${MSVC70} )
-MESSAGE( STATUS "MSVC71: " ${MSVC71} )
-MESSAGE( STATUS "MSVC80: " ${MSVC80} )
-MESSAGE( STATUS "CMAKE_COMPILER_2005: " ${CMAKE_COMPILER_2005} )
+
MESSAGE( STATUS "-------------------------------------------------------------------------------" )
MESSAGE( STATUS )
@@ -166,7 +133,6 @@
# DO APR
-
INCLUDE_DIRECTORIES ( ${CMAKE_SOURCE_DIR}/libs/apr/include/ ${CMAKE_SOURCE_DIR}/libs/apr-util/include/)
LINK_LIBRARIES (${CMAKE_SOURCE_DIR}/libs/apr/.libs/libapr-1.a)
LINK_LIBRARIES (${CMAKE_SOURCE_DIR}/libs/apr-util/.libs/libaprutil-1.a)
@@ -227,8 +193,6 @@
-configure_file(src/include/switch_version.h.in src/include/switch_version.h [@ONLY])
-
1
0
Author: shaneb
Date: Sun Feb 15 19:34:06 2009
New Revision: 12036
Log:
Name changes
Modified:
freeswitch/trunk/src/include/switch_version.h.cmake
Modified: freeswitch/trunk/src/include/switch_version.h.cmake
==============================================================================
--- freeswitch/trunk/src/include/switch_version.h.cmake (original)
+++ freeswitch/trunk/src/include/switch_version.h.cmake Sun Feb 15 19:34:06 2009
@@ -37,10 +37,10 @@
extern "C" {
#endif
-#define SWITCH_VERSION_MAJOR "@SWITCH_VERSION_MAJOR@"
-#define SWITCH_VERSION_MINOR "@SWITCH_VERSION_MINOR@"
-#define SWITCH_VERSION_MICRO "@SWITCH_VERSION_MICRO@"
-#define SWITCH_VERSION_REVISION "@SWITCH_VERSION_REVISION@"
+#define SWITCH_VERSION_MAJOR "@freeswitch_MAJOR_VERSION@"
+#define SWITCH_VERSION_MINOR "@freeswitch_MINOR_VERSION@"
+#define SWITCH_VERSION_MICRO "@freeswitch_PATCH_LEVEL@"
+#define SWITCH_VERSION_REVISION "@Project_WC_REVISION@"
#define SWITCH_VERSION_FULL SWITCH_VERSION_MAJOR "." SWITCH_VERSION_MINOR "." SWITCH_VERSION_MICRO " (" SWITCH_VERSION_REVISION ")"
#ifdef __cplusplus
1
0
Author: shaneb
Date: Sun Feb 15 19:28:03 2009
New Revision: 12035
Log:
Added new cmake template
Added:
freeswitch/trunk/src/include/switch_version.h.cmake
Added: freeswitch/trunk/src/include/switch_version.h.cmake
==============================================================================
--- (empty file)
+++ freeswitch/trunk/src/include/switch_version.h.cmake Sun Feb 15 19:28:03 2009
@@ -0,0 +1,50 @@
+/*
+ * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
+ * Copyright (C) 2005/2006, Anthony Minessale II <anthm(a)freeswitch.org>
+ *
+ * Version: MPL 1.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
+ *
+ * The Initial Developer of the Original Code is
+ * Anthony Minessale II <anthm(a)freeswitch.org>
+ * Portions created by the Initial Developer are Copyright (C)
+ * the Initial Developer. All Rights Reserved.
+ *
+ * Contributor(s):
+ *
+ * Anthony Minessale II <anthm(a)freeswitch.org>
+ * Michael Jerris <mike(a)jerris.com>
+ *
+ * switch_version.h -- Version Number Header
+ *
+ */
+
+#ifndef SWITCH_VERSION_H
+#define SWITCH_VERSION_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define SWITCH_VERSION_MAJOR "@SWITCH_VERSION_MAJOR@"
+#define SWITCH_VERSION_MINOR "@SWITCH_VERSION_MINOR@"
+#define SWITCH_VERSION_MICRO "@SWITCH_VERSION_MICRO@"
+#define SWITCH_VERSION_REVISION "@SWITCH_VERSION_REVISION@"
+#define SWITCH_VERSION_FULL SWITCH_VERSION_MAJOR "." SWITCH_VERSION_MINOR "." SWITCH_VERSION_MICRO " (" SWITCH_VERSION_REVISION ")"
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
1
0
[commit] r12031 - in freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl: . libs
by FreeSWITCH SVN 15 Feb '09
by FreeSWITCH SVN 15 Feb '09
15 Feb '09
Author: mphill
Date: Sun Feb 15 12:29:35 2009
New Revision: 12031
Log:
Created new libs directory and moved fs_pdo.php there
Added:
freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/libs/
freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/libs/fs_pdo.php (props changed)
- copied unchanged from r12030, /freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/fs_pdo.php
Removed:
freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/fs_pdo.php
Modified:
freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/fs_curl.php
Modified: freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/fs_curl.php
==============================================================================
--- freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/fs_curl.php (original)
+++ freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/fs_curl.php Sun Feb 15 12:29:35 2009
@@ -55,7 +55,7 @@
header('Content-Type: text/xml');
$this -> open_xml();
$this -> generate_request_array();
- $inc = array('required'=>'fs_pdo.php'); // include an external file. i.e. 'required'=>'important_file.php'
+ $inc = array('required'=>'libs/fs_pdo.php'); // include an external file. i.e. 'required'=>'important_file.php'
$this -> include_files($inc);
$this -> connect_db(DEFAULT_DSN, DEFAULT_DSN_LOGIN, DEFAULT_DSN_PASSWORD );
set_error_handler(array($this, 'error_handler'));
1
0
[commit] r12030 - freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl
by FreeSWITCH SVN 15 Feb '09
by FreeSWITCH SVN 15 Feb '09
15 Feb '09
Author: mphill
Date: Sun Feb 15 12:25:18 2009
New Revision: 12030
Log:
New class uses PDO for all database queries. Provides some MDB2 backwards compatibility.
Added:
freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/fs_pdo.php
Added: freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/fs_pdo.php
==============================================================================
--- (empty file)
+++ freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/fs_pdo.php Sun Feb 15 12:25:18 2009
@@ -0,0 +1,109 @@
+<?php
+/**
+ * FS_CURL was originally written using the MDB2 pear class for database interactions.
+ * MDB2 was deprecated in favor or PHP's PDO.
+ *
+ * This has been tested with MySQL but should work with many other RDBMSs
+ * @author Michael Phillips <michael.j.phillips(a)gmail.com>
+ * @license bsd http://www.opensource.org/licenses/bsd-license.php
+ */
+
+class FS_PDO extends PDO {
+ /**
+ * Default fetch mode. Associative arrays seem to be used most often
+ */
+ private $fetch_mode = PDO::FETCH_ASSOC;
+
+ /**
+ * Basic counter for profiling the number of queries executed.
+ */
+ public $counter = 0;
+
+ public function __construct($dsn, $login = NULL, $password = NULL, $options = NULL) {
+ parent::__construct($dsn, $login, $password, $options);
+ $this->setAttribute( PDO::ATTR_STATEMENT_CLASS, array( 'FS_PDOStatement', array() ) );
+ }
+
+ /**
+ * Set the fetch mode i.e. PDO::FETCH_ASSOC
+ * @param string $fetch_mode
+ */
+ public function setFetchMode($fetch_mode) {
+ $this->fetch_mode = $fetch_mode;
+ }
+
+ /**
+ * Return an associative array instead of a PDO statement object
+ * @param string $query Query to be executed
+ * @return mixed Associative array result set
+ */
+ public function queryAll($query) {
+ $this->counter++;
+ $res = $this->query($query);
+ if(!$res) {
+ return false;
+ } else {
+ return $res->fetchAll($this->fetch_mode);
+ }
+ }
+
+ /**
+ * Backwards compatibility for error checking with MDB2
+ * @static
+ * @param string $result The return status of a previous query operation
+ * @return bool
+ */
+ public static function isError($result) {
+ if($result === false) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+ /**
+ *
+ * @param string $query Query to be executed
+ * @return PDOStatement
+ */
+ public function query($query) {
+ $this->counter++;
+ return PDO::query($query);
+ }
+
+ /**
+ * Takes and array and converts to a string
+ * @return string $full_error A formated message
+ */
+ public function getMessage() {
+ $full_error = "";
+ foreach($this->errorInfo() as $error) {
+ $full_error .= $error . "\n";
+ }
+ return $full_error;
+ }
+}
+
+/**
+ * PDOStatment was extended to provide backwards compatible functions such as
+ * fetchRow and rowCount. At some point all references to numRow() should be
+ * replaced with rowCount()
+ */
+
+class FS_PDOStatement extends PDOStatement {
+
+ protected function __construct() {
+
+ }
+
+ public function fetchRow() {
+
+ return $this->fetch(PDO::FETCH_ASSOC);
+ }
+
+ public function numRows() {
+
+ return $this->rowCount();
+ }
+}
+?>
1
0