char recovery_sql[] =
"CREATE TABLE sip_recovery (\n"
" runtime_uuid VARCHAR(255),\n"
- " profile_name VARCHAR(255),\n" " hostname VARCHAR(255),\n" " uuid VARCHAR(255),\n" " metadata text\n" ");\n";
+ " profile_name VARCHAR(255),\n"
+ " hostname VARCHAR(255),\n"
+ " uuid VARCHAR(255),\n"
+ " metadata text\n" ");\n";
char pres_sql[] =
"CREATE TABLE sip_presence (\n"
" expires INTEGER,\n"
" user_agent VARCHAR(255),\n"
" profile_name VARCHAR(255),\n"
- " hostname VARCHAR(255),\n" " network_ip VARCHAR(255),\n" " network_port VARCHAR(6)\n" ");\n";
+ " hostname VARCHAR(255),\n"
+ " network_ip VARCHAR(255),\n"
+ " network_port VARCHAR(6)\n"
+ ");\n";
char dialog_sql[] =
"CREATE TABLE sip_dialogs (\n"
" contact VARCHAR(255),\n"
" presence_id VARCHAR(255),\n"
" presence_data VARCHAR(255),\n"
- " call_info VARCHAR(255),\n" " call_info_state VARCHAR(255),\n" " expires INTEGER default 0\n" ");\n";
+ " call_info VARCHAR(255),\n"
+ " call_info_state VARCHAR(255),\n"
+ " expires INTEGER default 0\n"
+ ");\n";
char sub_sql[] =
"CREATE TABLE sip_subscriptions (\n"
" user_agent VARCHAR(255),\n"
" accept VARCHAR(255),\n"
" profile_name VARCHAR(255),\n"
- " hostname VARCHAR(255),\n" " network_port VARCHAR(6),\n" " network_ip VARCHAR(255)\n" ");\n";
+ " hostname VARCHAR(255),\n"
+ " network_port VARCHAR(6),\n"
+ " network_ip VARCHAR(255)\n"
+ ");\n";
char auth_sql[] =
"CREATE TABLE sip_authentication (\n"
" nonce VARCHAR(255),\n"
- " expires INTEGER," " profile_name VARCHAR(255),\n" " hostname VARCHAR(255),\n" " last_nc INTEGER\n" ");\n";
+ " expires INTEGER,"
+ " profile_name VARCHAR(255),\n"
+ " hostname VARCHAR(255),\n"
+ " last_nc INTEGER\n"
+ ");\n";
/* should we move this glue to sofia_sla or keep it here where all db init happens? XXX MTK */
char shared_appearance_sql[] =
" call_id VARCHAR(255),\n"
" aor VARCHAR(255),\n"
" profile_name VARCHAR(255),\n"
- " hostname VARCHAR(255),\n" " contact_str VARCHAR(255),\n" " network_ip VARCHAR(255)\n" ");\n";
+ " hostname VARCHAR(255),\n"
+ " contact_str VARCHAR(255),\n"
+ " network_ip VARCHAR(255)\n"
+ ");\n";
char shared_appearance_dialogs_sql[] =
"CREATE TABLE sip_shared_appearance_dialogs (\n"
" profile_name VARCHAR(255),\n"
" hostname VARCHAR(255),\n"
" contact_str VARCHAR(255),\n"
- " call_id VARCHAR(255),\n" " network_ip VARCHAR(255),\n" " expires INTEGER\n" ");\n";
+ " call_id VARCHAR(255),\n"
+ " network_ip VARCHAR(255),\n"
+ " expires INTEGER\n"
+ ");\n";
if (switch_odbc_available() && profile->odbc_dsn) {
int x;
" a4 VARCHAR(128),\n"
" a5 VARCHAR(128),\n"
" a6 VARCHAR(128),\n"
- " a7 VARCHAR(128),\n" " a8 VARCHAR(128),\n" " a9 VARCHAR(128),\n" " a10 VARCHAR(128),\n" " hostname VARCHAR(256)\n" ");\n";
+ " a7 VARCHAR(128),\n"
+ " a8 VARCHAR(128),\n"
+ " a9 VARCHAR(128),\n"
+ " a10 VARCHAR(128),\n"
+ " hostname VARCHAR(256)\n"
+ ");\n";
static char create_alias_sql[] =
- "CREATE TABLE aliases (\n" " sticky INTEGER,\n" " alias VARCHAR(128),\n" " command VARCHAR(4096),\n" " hostname VARCHAR(256)\n" ");\n";
+ "CREATE TABLE aliases (\n"
+ " sticky INTEGER,\n"
+ " alias VARCHAR(128),\n"
+ " command VARCHAR(4096),\n"
+ " hostname VARCHAR(256)\n"
+ ");\n";
static char create_channels_sql[] =
"CREATE TABLE channels (\n"
" write_rate VARCHAR(32),\n"
" secure VARCHAR(32),\n"
" hostname VARCHAR(256),\n"
- " presence_id VARCHAR(4096),\n" " presence_data VARCHAR(4096)\n" ");\ncreate index uuindex on channels (uuid,hostname);\n";
+ " presence_id VARCHAR(4096),\n"
+ " presence_data VARCHAR(4096)\n"
+ ");\ncreate index uuindex on channels (uuid,hostname);\n";
+
static char create_calls_sql[] =
"CREATE TABLE calls (\n"
" call_created VARCHAR(128),\n"
" callee_uuid VARCHAR(256),\n"
" hostname VARCHAR(256)\n"
");\n" "create index eruuindex on calls (caller_uuid,hostname);\n" "create index eeuuindex on calls (callee_uuid,hostname);\n";
+
static char create_interfaces_sql[] =
"CREATE TABLE interfaces (\n"
" type VARCHAR(128),\n"
" name VARCHAR(1024),\n"
" description VARCHAR(4096),\n"
" ikey VARCHAR(1024),\n"
- " filename VARCHAR(4096),\n" " syntax VARCHAR(4096),\n" " hostname VARCHAR(256)\n" ");\n";
+ " filename VARCHAR(4096),\n"
+ " syntax VARCHAR(4096),\n"
+ " hostname VARCHAR(256)\n"
+ ");\n";
+
static char create_tasks_sql[] =
"CREATE TABLE tasks (\n"
" task_id INTEGER,\n"
" task_desc VARCHAR(4096),\n"
- " task_group VARCHAR(1024),\n" " task_sql_manager INTEGER,\n" " hostname VARCHAR(256)\n" ");\n";
+ " task_group VARCHAR(1024),\n"
+ " task_sql_manager INTEGER,\n"
+ " hostname VARCHAR(256)\n"
+ ");\n";
+
static char create_nat_sql[] =
- "CREATE TABLE nat (\n" " sticky INTEGER,\n" " port INTEGER,\n" " proto INTEGER,\n" " hostname VARCHAR(256)\n" ");\n";
+ "CREATE TABLE nat (\n"
+ " sticky INTEGER,\n"
+ " port INTEGER,\n"
+ " proto INTEGER,\n"
+ " hostname VARCHAR(256)\n"
+ ");\n";
switch_status_t switch_core_sqldb_start(switch_memory_pool_t *pool, switch_bool_t manage)
{