diff --git a/fscomm/conf/event_socket.conf.xml b/fscomm/conf/event_socket.conf.xml index 8f780ecf8f..613bfc68f5 100644 --- a/fscomm/conf/event_socket.conf.xml +++ b/fscomm/conf/event_socket.conf.xml @@ -1,3 +1,5 @@ + +
@@ -5,4 +7,6 @@ - + +
+
diff --git a/fscomm/conf/freeswitch.xml b/fscomm/conf/freeswitch.xml index 3ae6b1c81d..7f2912f061 100644 --- a/fscomm/conf/freeswitch.xml +++ b/fscomm/conf/freeswitch.xml @@ -49,7 +49,7 @@ - + @@ -83,7 +83,6 @@ - diff --git a/fscomm/conf/portaudio.conf.xml b/fscomm/conf/portaudio.conf.xml index 61a1f289d3..39caf9243b 100644 --- a/fscomm/conf/portaudio.conf.xml +++ b/fscomm/conf/portaudio.conf.xml @@ -1,17 +1,22 @@ - - - - - - - - - - - - - - - - - + +
+ + + + + + + + + + + + + + + + + +
+
+ diff --git a/fscomm/fshost.cpp b/fscomm/fshost.cpp index 77641c59d8..06db32c321 100644 --- a/fscomm/fshost.cpp +++ b/fscomm/fshost.cpp @@ -130,6 +130,7 @@ void FSHost::run(void) } QString res; sendCmd("load", "mod_event_socket", &res); + sendCmd("load", "mod_portaudio", &res); emit ready(); /* Go into the runtime loop. If the argument is true, this basically sets runtime.running = 1 and loops while that is set * If its false, it initializes the libedit for the console, then does the same thing diff --git a/fscomm/mainwindow.ui b/fscomm/mainwindow.ui index 3d08c612c7..c7d5dc6510 100644 --- a/fscomm/mainwindow.ui +++ b/fscomm/mainwindow.ui @@ -6,8 +6,8 @@ 0 0 - 580 - 563 + 670 + 541 @@ -310,8 +310,8 @@ 0 0 - 580 - 22 + 670 + 24 diff --git a/fscomm/mod_qsettings/mod_qsettings.cpp b/fscomm/mod_qsettings/mod_qsettings.cpp index b09b305fc4..38fbd9733e 100644 --- a/fscomm/mod_qsettings/mod_qsettings.cpp +++ b/fscomm/mod_qsettings/mod_qsettings.cpp @@ -45,19 +45,25 @@ switch_xml_t XMLBinding::getConfigXML(QString tmpl) switch_event_create_plain(&e, SWITCH_EVENT_REQUEST_PARAMS); switch_assert(e); - QFile tmplFile(QString("%1/templates/%2.xml").arg(QApplication::applicationDirPath(),tmpl)); - - if (!tmplFile.exists()) { + if (QFile::exists(QString("%1/.fscomm/templates/%2.xml").arg(QDir::homePath(),tmpl))) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, - "Template %s.xml, doesn't exist on directory, falling back to embedded template.\n", + "Using template %s.xml on .fscomm/.\n", tmpl.toAscii().constData()); - tmplFile.setFileName(QString(":/confs/%1.xml").arg(tmpl)); - return NULL; + } + else if(QFile::exists(QString(":/confs/%1.xml").arg(tmpl))) + { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, + "Template %s.xml, doesn't exist on directory, copying embedded template.\n", + tmpl.toAscii().constData()); + QString dest = QString("%1/.fscomm/templates/%2.xml").arg(QDir::homePath(),tmpl); + QString orig = QString(":/confs/%1.xml").arg(tmpl); + QFile::copy(orig, dest); } - if (tmplFile.open(QIODevice::ReadOnly | QIODevice::Text)) + QFile tmplFile(QString("%1/.fscomm/templates/%2.xml").arg(QDir::homePath(),tmpl)); + if (!tmplFile.open(QIODevice::ReadOnly | QIODevice::Text)) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Template %s could not be read.!\n", tmpl.toAscii().constData()); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Template %s could not be read!\n", tmpl.toAscii().constData()); return NULL; } @@ -72,6 +78,7 @@ switch_xml_t XMLBinding::getConfigXML(QString tmpl) } char *res = switch_event_expand_headers(e, tmplContents.toAscii().constData()); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Template %s as follows:\n%s", tmpl.toAscii().constData(), res); switch_safe_free(e); return switch_xml_parse_str(res, strlen(res)); } @@ -81,6 +88,8 @@ static switch_xml_t xml_url_fetch(const char *section, const char *tag_name, con { XMLBinding *binding = (XMLBinding *) user_data; + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "We are being requested -> section: %s | tag_name: %s | key_name: %s | key_value: %s!\n", + section, tag_name, key_name, key_value); if (!binding) { return NULL; } diff --git a/fscomm/resources/splash.png b/fscomm/resources/splash.png index 47e7acb06d..4fa579ca4e 100644 Binary files a/fscomm/resources/splash.png and b/fscomm/resources/splash.png differ