<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[Freeswitch-trunk][16192] </title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<div id="header">FreeSWITCH Subversion</div>
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://fisheye.freeswitch.org/changelog/FreeSWITCH?cs=16192">16192</a></dd>
<dt>Author</dt> <dd>jmesquita</dd>
<dt>Date</dt> <dd>2010-01-06 23:19:36 -0600 (Wed, 06 Jan 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Some more house cleaning.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#freeswitchtrunkfscommFSCommpro">freeswitch/trunk/fscomm/FSComm.pro</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#freeswitchtrunkfscommpreferencesprefdialogcpp">freeswitch/trunk/fscomm/preferences/prefdialog.cpp</a></li>
<li><a href="#freeswitchtrunkfscommpreferencesprefdialogh">freeswitch/trunk/fscomm/preferences/prefdialog.h</a></li>
<li><a href="#freeswitchtrunkfscommpreferencesprefdialogui">freeswitch/trunk/fscomm/preferences/prefdialog.ui</a></li>
<li><a href="#freeswitchtrunkfscommpreferencesprefportaudiocpp">freeswitch/trunk/fscomm/preferences/prefportaudio.cpp</a></li>
<li><a href="#freeswitchtrunkfscommpreferencesprefportaudioh">freeswitch/trunk/fscomm/preferences/prefportaudio.h</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#freeswitchtrunkfscommprefdialogcpp">freeswitch/trunk/fscomm/prefdialog.cpp</a></li>
<li><a href="#freeswitchtrunkfscommprefdialogh">freeswitch/trunk/fscomm/prefdialog.h</a></li>
<li><a href="#freeswitchtrunkfscommprefdialogui">freeswitch/trunk/fscomm/prefdialog.ui</a></li>
<li><a href="#freeswitchtrunkfscommprefportaudiocpp">freeswitch/trunk/fscomm/prefportaudio.cpp</a></li>
<li><a href="#freeswitchtrunkfscommprefportaudioh">freeswitch/trunk/fscomm/prefportaudio.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="freeswitchtrunkfscommFSCommpro"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/fscomm/FSComm.pro (16191 => 16192)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/fscomm/FSComm.pro        2010-01-07 05:17:52 UTC (rev 16191)
+++ freeswitch/trunk/fscomm/FSComm.pro        2010-01-07 05:19:36 UTC (rev 16192)
</span><span class="lines">@@ -26,18 +26,18 @@
</span><span class="cx">     fshost.cpp \
</span><span class="cx">     call.cpp \
</span><span class="cx">     mod_qsettings/mod_qsettings.cpp \
</span><del>-    prefdialog.cpp \
-    prefportaudio.cpp \
-    prefsofia.cpp
</del><ins>+    preferences/prefdialog.cpp \
+    preferences/prefportaudio.cpp \
+    preferences/prefsofia.cpp
</ins><span class="cx"> HEADERS += mainwindow.h \
</span><span class="cx">     fshost.h \
</span><span class="cx">     call.h \
</span><span class="cx">     mod_qsettings/mod_qsettings.h \
</span><del>-    prefdialog.h \
-    prefportaudio.h \
-    prefsofia.h
</del><ins>+    preferences/prefdialog.h \
+    preferences/prefportaudio.h \
+    preferences/prefsofia.h
</ins><span class="cx"> FORMS += mainwindow.ui \
</span><del>-    prefdialog.ui
</del><ins>+    preferences/prefdialog.ui
</ins><span class="cx"> RESOURCES += resources.qrc
</span><span class="cx"> OTHER_FILES += conf/portaudio.conf.xml \
</span><span class="cx">     conf/event_socket.conf.xml \
</span></span></pre></div>
<a id="freeswitchtrunkfscommprefdialogcpp"></a>
<div class="delfile"><h4>Deleted: freeswitch/trunk/fscomm/prefdialog.cpp</h4></div>
<a id="freeswitchtrunkfscommprefdialogh"></a>
<div class="delfile"><h4>Deleted: freeswitch/trunk/fscomm/prefdialog.h</h4></div>
<a id="freeswitchtrunkfscommprefdialogui"></a>
<div class="delfile"><h4>Deleted: freeswitch/trunk/fscomm/prefdialog.ui</h4></div>
<a id="freeswitchtrunkfscommpreferencesprefdialogcppfromrev16190freeswitchtrunkfscommprefdialogcpp"></a>
<div class="copfile"><h4>Copied: freeswitch/trunk/fscomm/preferences/prefdialog.cpp (from rev 16190, freeswitch/trunk/fscomm/prefdialog.cpp) (0 => 16192)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/fscomm/preferences/prefdialog.cpp                                (rev 0)
+++ freeswitch/trunk/fscomm/preferences/prefdialog.cpp        2010-01-07 05:19:36 UTC (rev 16192)
</span><span class="lines">@@ -0,0 +1,43 @@
</span><ins>+#include &lt;QtGui&gt;
+#include &quot;prefdialog.h&quot;
+#include &quot;ui_prefdialog.h&quot;
+#include &quot;prefportaudio.h&quot;
+
+PrefDialog::PrefDialog(QWidget *parent) :
+    QDialog(parent),
+    ui(new Ui::PrefDialog)
+{
+    ui-&gt;setupUi(this);
+    _settings = new QSettings();
+    connect(this, SIGNAL(accepted()), this, SLOT(writeConfig()));
+
+    _mod_portaudio = new PrefPortaudio(ui, this);
+    readConfig();
+}
+
+PrefDialog::~PrefDialog()
+{
+    delete ui;
+}
+
+void PrefDialog::writeConfig()
+{    
+    _mod_portaudio-&gt;writeConfig();
+}
+
+void PrefDialog::changeEvent(QEvent *e)
+{
+    QDialog::changeEvent(e);
+    switch (e-&gt;type()) {
+    case QEvent::LanguageChange:
+        ui-&gt;retranslateUi(this);
+        break;
+    default:
+        break;
+    }
+}
+
+void PrefDialog::readConfig()
+{
+    _mod_portaudio-&gt;readConfig();
+}
</ins></span></pre></div>
<a id="freeswitchtrunkfscommpreferencesprefdialoghfromrev16190freeswitchtrunkfscommprefdialogh"></a>
<div class="copfile"><h4>Copied: freeswitch/trunk/fscomm/preferences/prefdialog.h (from rev 16190, freeswitch/trunk/fscomm/prefdialog.h) (0 => 16192)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/fscomm/preferences/prefdialog.h                                (rev 0)
+++ freeswitch/trunk/fscomm/preferences/prefdialog.h        2010-01-07 05:19:36 UTC (rev 16192)
</span><span class="lines">@@ -0,0 +1,35 @@
</span><ins>+#ifndef PREFDIALOG_H
+#define PREFDIALOG_H
+
+#include &lt;QDialog&gt;
+#include &lt;QDomDocument&gt;
+#include &lt;QSettings&gt;
+#include &lt;fshost.h&gt;
+
+class PrefPortaudio;
+
+namespace Ui {
+    class PrefDialog;
+}
+
+class PrefDialog : public QDialog {
+    Q_OBJECT
+public:
+    PrefDialog(QWidget *parent = 0);
+    ~PrefDialog();
+
+protected:
+    void changeEvent(QEvent *e);
+
+private slots:
+    void writeConfig();
+
+private:
+    void readConfig();
+    QSettings *_settings;
+    Ui::PrefDialog *ui;
+    PrefPortaudio *_mod_portaudio;
+};
+
+
+#endif // PREFDIALOG_H
</ins></span></pre></div>
<a id="freeswitchtrunkfscommpreferencesprefdialoguifromrev16191freeswitchtrunkfscommprefdialogui"></a>
<div class="copfile"><h4>Copied: freeswitch/trunk/fscomm/preferences/prefdialog.ui (from rev 16191, freeswitch/trunk/fscomm/prefdialog.ui) (0 => 16192)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/fscomm/preferences/prefdialog.ui                                (rev 0)
+++ freeswitch/trunk/fscomm/preferences/prefdialog.ui        2010-01-07 05:19:36 UTC (rev 16192)
</span><span class="lines">@@ -0,0 +1,942 @@
</span><ins>+&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
+&lt;ui version=&quot;4.0&quot;&gt;
+ &lt;class&gt;PrefDialog&lt;/class&gt;
+ &lt;widget class=&quot;QDialog&quot; name=&quot;PrefDialog&quot;&gt;
+  &lt;property name=&quot;geometry&quot;&gt;
+   &lt;rect&gt;
+    &lt;x&gt;0&lt;/x&gt;
+    &lt;y&gt;0&lt;/y&gt;
+    &lt;width&gt;839&lt;/width&gt;
+    &lt;height&gt;613&lt;/height&gt;
+   &lt;/rect&gt;
+  &lt;/property&gt;
+  &lt;property name=&quot;windowTitle&quot;&gt;
+   &lt;string&gt;Preferences&lt;/string&gt;
+  &lt;/property&gt;
+  &lt;layout class=&quot;QGridLayout&quot; name=&quot;gridLayout&quot;&gt;
+   &lt;item row=&quot;0&quot; column=&quot;0&quot;&gt;
+    &lt;widget class=&quot;QListWidget&quot; name=&quot;listSections&quot;&gt;
+     &lt;property name=&quot;minimumSize&quot;&gt;
+      &lt;size&gt;
+       &lt;width&gt;120&lt;/width&gt;
+       &lt;height&gt;0&lt;/height&gt;
+      &lt;/size&gt;
+     &lt;/property&gt;
+     &lt;property name=&quot;maximumSize&quot;&gt;
+      &lt;size&gt;
+       &lt;width&gt;120&lt;/width&gt;
+       &lt;height&gt;16777215&lt;/height&gt;
+      &lt;/size&gt;
+     &lt;/property&gt;
+     &lt;property name=&quot;showDropIndicator&quot; stdset=&quot;0&quot;&gt;
+      &lt;bool&gt;false&lt;/bool&gt;
+     &lt;/property&gt;
+     &lt;property name=&quot;dragDropMode&quot;&gt;
+      &lt;enum&gt;QAbstractItemView::NoDragDrop&lt;/enum&gt;
+     &lt;/property&gt;
+     &lt;property name=&quot;iconSize&quot;&gt;
+      &lt;size&gt;
+       &lt;width&gt;96&lt;/width&gt;
+       &lt;height&gt;84&lt;/height&gt;
+      &lt;/size&gt;
+     &lt;/property&gt;
+     &lt;property name=&quot;movement&quot;&gt;
+      &lt;enum&gt;QListView::Static&lt;/enum&gt;
+     &lt;/property&gt;
+     &lt;property name=&quot;flow&quot;&gt;
+      &lt;enum&gt;QListView::LeftToRight&lt;/enum&gt;
+     &lt;/property&gt;
+     &lt;property name=&quot;isWrapping&quot; stdset=&quot;0&quot;&gt;
+      &lt;bool&gt;true&lt;/bool&gt;
+     &lt;/property&gt;
+     &lt;property name=&quot;spacing&quot;&gt;
+      &lt;number&gt;12&lt;/number&gt;
+     &lt;/property&gt;
+     &lt;property name=&quot;viewMode&quot;&gt;
+      &lt;enum&gt;QListView::IconMode&lt;/enum&gt;
+     &lt;/property&gt;
+     &lt;item&gt;
+      &lt;property name=&quot;text&quot;&gt;
+       &lt;string&gt;General&lt;/string&gt;
+      &lt;/property&gt;
+      &lt;property name=&quot;icon&quot;&gt;
+       &lt;iconset resource=&quot;resources.qrc&quot;&gt;
+        &lt;normaloff&gt;:/images/pref_general.jpg&lt;/normaloff&gt;:/images/pref_general.jpg&lt;/iconset&gt;
+      &lt;/property&gt;
+     &lt;/item&gt;
+     &lt;item&gt;
+      &lt;property name=&quot;text&quot;&gt;
+       &lt;string&gt;Sofia&lt;/string&gt;
+      &lt;/property&gt;
+      &lt;property name=&quot;icon&quot;&gt;
+       &lt;iconset resource=&quot;resources.qrc&quot;&gt;
+        &lt;normaloff&gt;:/images/pref_sip.png&lt;/normaloff&gt;:/images/pref_sip.png&lt;/iconset&gt;
+      &lt;/property&gt;
+     &lt;/item&gt;
+     &lt;item&gt;
+      &lt;property name=&quot;text&quot;&gt;
+       &lt;string&gt;PortAudio&lt;/string&gt;
+      &lt;/property&gt;
+      &lt;property name=&quot;icon&quot;&gt;
+       &lt;iconset resource=&quot;resources.qrc&quot;&gt;
+        &lt;normaloff&gt;:/images/pref_audio.gif&lt;/normaloff&gt;:/images/pref_audio.gif&lt;/iconset&gt;
+      &lt;/property&gt;
+     &lt;/item&gt;
+    &lt;/widget&gt;
+   &lt;/item&gt;
+   &lt;item row=&quot;0&quot; column=&quot;1&quot;&gt;
+    &lt;widget class=&quot;QStackedWidget&quot; name=&quot;stackedWidget&quot;&gt;
+     &lt;property name=&quot;currentIndex&quot;&gt;
+      &lt;number&gt;0&lt;/number&gt;
+     &lt;/property&gt;
+     &lt;widget class=&quot;QWidget&quot; name=&quot;page_3&quot;&gt;
+      &lt;layout class=&quot;QVBoxLayout&quot; name=&quot;verticalLayout_3&quot;&gt;
+       &lt;item&gt;
+        &lt;widget class=&quot;QGroupBox&quot; name=&quot;groupBox_5&quot;&gt;
+         &lt;property name=&quot;title&quot;&gt;
+          &lt;string&gt;User Information&lt;/string&gt;
+         &lt;/property&gt;
+         &lt;layout class=&quot;QFormLayout&quot; name=&quot;formLayout_4&quot;&gt;
+          &lt;item row=&quot;0&quot; column=&quot;0&quot;&gt;
+           &lt;widget class=&quot;QLabel&quot; name=&quot;label_13&quot;&gt;
+            &lt;property name=&quot;text&quot;&gt;
+             &lt;string&gt;CallerID Name:&lt;/string&gt;
+            &lt;/property&gt;
+           &lt;/widget&gt;
+          &lt;/item&gt;
+          &lt;item row=&quot;0&quot; column=&quot;1&quot;&gt;
+           &lt;widget class=&quot;QLineEdit&quot; name=&quot;PaCallerIdNameEdit&quot;/&gt;
+          &lt;/item&gt;
+          &lt;item row=&quot;1&quot; column=&quot;0&quot;&gt;
+           &lt;widget class=&quot;QLabel&quot; name=&quot;label_14&quot;&gt;
+            &lt;property name=&quot;text&quot;&gt;
+             &lt;string&gt;CallerID Number:&lt;/string&gt;
+            &lt;/property&gt;
+           &lt;/widget&gt;
+          &lt;/item&gt;
+          &lt;item row=&quot;1&quot; column=&quot;1&quot;&gt;
+           &lt;widget class=&quot;QLineEdit&quot; name=&quot;PaCallerIdNumEdit&quot;/&gt;
+          &lt;/item&gt;
+         &lt;/layout&gt;
+        &lt;/widget&gt;
+       &lt;/item&gt;
+      &lt;/layout&gt;
+     &lt;/widget&gt;
+     &lt;widget class=&quot;QWidget&quot; name=&quot;page&quot;&gt;
+      &lt;layout class=&quot;QVBoxLayout&quot; name=&quot;verticalLayout_2&quot;&gt;
+       &lt;item&gt;
+        &lt;widget class=&quot;QTabWidget&quot; name=&quot;tabWidget&quot;&gt;
+         &lt;property name=&quot;currentIndex&quot;&gt;
+          &lt;number&gt;0&lt;/number&gt;
+         &lt;/property&gt;
+         &lt;widget class=&quot;QWidget&quot; name=&quot;tab&quot;&gt;
+          &lt;attribute name=&quot;title&quot;&gt;
+           &lt;string&gt;General&lt;/string&gt;
+          &lt;/attribute&gt;
+          &lt;layout class=&quot;QVBoxLayout&quot; name=&quot;verticalLayout_5&quot;&gt;
+           &lt;item&gt;
+            &lt;widget class=&quot;QGroupBox&quot; name=&quot;groupBox&quot;&gt;
+             &lt;property name=&quot;title&quot;&gt;
+              &lt;string&gt;Global&lt;/string&gt;
+             &lt;/property&gt;
+             &lt;layout class=&quot;QFormLayout&quot; name=&quot;formLayout&quot;&gt;
+              &lt;property name=&quot;fieldGrowthPolicy&quot;&gt;
+               &lt;enum&gt;QFormLayout::AllNonFixedFieldsGrow&lt;/enum&gt;
+              &lt;/property&gt;
+              &lt;item row=&quot;0&quot; column=&quot;0&quot;&gt;
+               &lt;widget class=&quot;QLabel&quot; name=&quot;label&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;log-level&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;0&quot; column=&quot;1&quot;&gt;
+               &lt;widget class=&quot;QSpinBox&quot; name=&quot;sofiaLogLevelSpin&quot;/&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;1&quot; column=&quot;0&quot;&gt;
+               &lt;widget class=&quot;QLabel&quot; name=&quot;label_2&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;auto-restart&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;1&quot; column=&quot;1&quot;&gt;
+               &lt;widget class=&quot;QComboBox&quot; name=&quot;sofiaAutoRestartCombo&quot;&gt;
+                &lt;item&gt;
+                 &lt;property name=&quot;text&quot;&gt;
+                  &lt;string&gt;true&lt;/string&gt;
+                 &lt;/property&gt;
+                &lt;/item&gt;
+                &lt;item&gt;
+                 &lt;property name=&quot;text&quot;&gt;
+                  &lt;string&gt;false&lt;/string&gt;
+                 &lt;/property&gt;
+                &lt;/item&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;2&quot; column=&quot;0&quot;&gt;
+               &lt;widget class=&quot;QLabel&quot; name=&quot;label_3&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;debug-presence&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;2&quot; column=&quot;1&quot;&gt;
+               &lt;widget class=&quot;QSpinBox&quot; name=&quot;sofiaDebugPresenceSpin&quot;/&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;3&quot; column=&quot;0&quot;&gt;
+               &lt;widget class=&quot;QLabel&quot; name=&quot;label_15&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;rewrite-multicasted-fs-path&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;3&quot; column=&quot;1&quot;&gt;
+               &lt;widget class=&quot;QComboBox&quot; name=&quot;sofiaRewriteMulticastedFsPathCombo&quot;&gt;
+                &lt;item&gt;
+                 &lt;property name=&quot;text&quot;&gt;
+                  &lt;string&gt;false&lt;/string&gt;
+                 &lt;/property&gt;
+                &lt;/item&gt;
+                &lt;item&gt;
+                 &lt;property name=&quot;text&quot;&gt;
+                  &lt;string&gt;true&lt;/string&gt;
+                 &lt;/property&gt;
+                &lt;/item&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+             &lt;/layout&gt;
+            &lt;/widget&gt;
+           &lt;/item&gt;
+           &lt;item&gt;
+            &lt;widget class=&quot;QGroupBox&quot; name=&quot;groupBox_6&quot;&gt;
+             &lt;property name=&quot;sizePolicy&quot;&gt;
+              &lt;sizepolicy hsizetype=&quot;Preferred&quot; vsizetype=&quot;Expanding&quot;&gt;
+               &lt;horstretch&gt;0&lt;/horstretch&gt;
+               &lt;verstretch&gt;0&lt;/verstretch&gt;
+              &lt;/sizepolicy&gt;
+             &lt;/property&gt;
+             &lt;property name=&quot;title&quot;&gt;
+              &lt;string&gt;Profile&lt;/string&gt;
+             &lt;/property&gt;
+             &lt;layout class=&quot;QFormLayout&quot; name=&quot;formLayout_6&quot;&gt;
+              &lt;item row=&quot;0&quot; column=&quot;0&quot;&gt;
+               &lt;widget class=&quot;QLabel&quot; name=&quot;label_4&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;user-agent-string&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;0&quot; column=&quot;1&quot;&gt;
+               &lt;widget class=&quot;QLineEdit&quot; name=&quot;sofiaUserAgentStringEdit&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;FreeSWITCH/FSComm&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;1&quot; column=&quot;0&quot;&gt;
+               &lt;widget class=&quot;QLabel&quot; name=&quot;label_26&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;hold-music&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;1&quot; column=&quot;1&quot;&gt;
+               &lt;widget class=&quot;QLineEdit&quot; name=&quot;sofiaHoldMusicEdit&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;localstream://moh&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;2&quot; column=&quot;0&quot;&gt;
+               &lt;widget class=&quot;QLabel&quot; name=&quot;label_16&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;context&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;2&quot; column=&quot;1&quot;&gt;
+               &lt;widget class=&quot;QLineEdit&quot; name=&quot;sofiaContextEdit&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;public&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;3&quot; column=&quot;0&quot;&gt;
+               &lt;widget class=&quot;QLabel&quot; name=&quot;label_19&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;dialplan&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;3&quot; column=&quot;1&quot;&gt;
+               &lt;widget class=&quot;QLineEdit&quot; name=&quot;lineEdit&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;XML&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+             &lt;/layout&gt;
+            &lt;/widget&gt;
+           &lt;/item&gt;
+          &lt;/layout&gt;
+         &lt;/widget&gt;
+         &lt;widget class=&quot;QWidget&quot; name=&quot;tab_2&quot;&gt;
+          &lt;attribute name=&quot;title&quot;&gt;
+           &lt;string&gt;Network&lt;/string&gt;
+          &lt;/attribute&gt;
+          &lt;layout class=&quot;QVBoxLayout&quot; name=&quot;verticalLayout_4&quot;&gt;
+           &lt;item&gt;
+            &lt;widget class=&quot;QGroupBox&quot; name=&quot;groupBox_2&quot;&gt;
+             &lt;property name=&quot;title&quot;&gt;
+              &lt;string&gt;Softphone Profile&lt;/string&gt;
+             &lt;/property&gt;
+             &lt;layout class=&quot;QFormLayout&quot; name=&quot;formLayout_2&quot;&gt;
+              &lt;property name=&quot;fieldGrowthPolicy&quot;&gt;
+               &lt;enum&gt;QFormLayout::AllNonFixedFieldsGrow&lt;/enum&gt;
+              &lt;/property&gt;
+              &lt;item row=&quot;0&quot; column=&quot;0&quot;&gt;
+               &lt;widget class=&quot;QLabel&quot; name=&quot;label_18&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;sip-port&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;0&quot; column=&quot;1&quot;&gt;
+               &lt;widget class=&quot;QSpinBox&quot; name=&quot;sofiaSipPortSpin&quot;&gt;
+                &lt;property name=&quot;minimum&quot;&gt;
+                 &lt;number&gt;1&lt;/number&gt;
+                &lt;/property&gt;
+                &lt;property name=&quot;maximum&quot;&gt;
+                 &lt;number&gt;65535&lt;/number&gt;
+                &lt;/property&gt;
+                &lt;property name=&quot;value&quot;&gt;
+                 &lt;number&gt;12345&lt;/number&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;1&quot; column=&quot;0&quot;&gt;
+               &lt;widget class=&quot;QLabel&quot; name=&quot;label_22&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;use-rtp-timer&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;1&quot; column=&quot;1&quot;&gt;
+               &lt;widget class=&quot;QComboBox&quot; name=&quot;sofiaUseRtpTimerCombo&quot;&gt;
+                &lt;item&gt;
+                 &lt;property name=&quot;text&quot;&gt;
+                  &lt;string&gt;true&lt;/string&gt;
+                 &lt;/property&gt;
+                &lt;/item&gt;
+                &lt;item&gt;
+                 &lt;property name=&quot;text&quot;&gt;
+                  &lt;string&gt;false&lt;/string&gt;
+                 &lt;/property&gt;
+                &lt;/item&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;2&quot; column=&quot;0&quot;&gt;
+               &lt;widget class=&quot;QLabel&quot; name=&quot;label_24&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;rtp-ip&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;2&quot; column=&quot;1&quot;&gt;
+               &lt;widget class=&quot;QLineEdit&quot; name=&quot;sofiaRtpIpEdit&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;$${local_ip_v4}&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;3&quot; column=&quot;0&quot;&gt;
+               &lt;widget class=&quot;QLabel&quot; name=&quot;label_25&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;sip-ip&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;3&quot; column=&quot;1&quot;&gt;
+               &lt;widget class=&quot;QLineEdit&quot; name=&quot;sofiaSipIpEdit&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;$${local_ip_v4}&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;4&quot; column=&quot;0&quot;&gt;
+               &lt;widget class=&quot;QLabel&quot; name=&quot;label_27&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;apply-nat-acl&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;4&quot; column=&quot;1&quot;&gt;
+               &lt;widget class=&quot;QLineEdit&quot; name=&quot;sofiaApplyNatAclEdit&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;rfc1918&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;5&quot; column=&quot;0&quot;&gt;
+               &lt;widget class=&quot;QLabel&quot; name=&quot;label_34&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;ext-rtp-ip&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;5&quot; column=&quot;1&quot;&gt;
+               &lt;widget class=&quot;QLineEdit&quot; name=&quot;sofiaExtRtpIpEdit&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;stun:stun.freeswitch.org&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;6&quot; column=&quot;0&quot;&gt;
+               &lt;widget class=&quot;QLabel&quot; name=&quot;label_35&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;ext-sip-ip&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;6&quot; column=&quot;1&quot;&gt;
+               &lt;widget class=&quot;QLineEdit&quot; name=&quot;sofiaExtSipIpEdit&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;stun:stun.freeswitch.org&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+             &lt;/layout&gt;
+            &lt;/widget&gt;
+           &lt;/item&gt;
+          &lt;/layout&gt;
+         &lt;/widget&gt;
+         &lt;widget class=&quot;QWidget&quot; name=&quot;tab_4&quot;&gt;
+          &lt;attribute name=&quot;title&quot;&gt;
+           &lt;string&gt;Codecs&lt;/string&gt;
+          &lt;/attribute&gt;
+          &lt;layout class=&quot;QFormLayout&quot; name=&quot;formLayout_7&quot;&gt;
+           &lt;item row=&quot;0&quot; column=&quot;0&quot;&gt;
+            &lt;widget class=&quot;QLabel&quot; name=&quot;label_21&quot;&gt;
+             &lt;property name=&quot;text&quot;&gt;
+              &lt;string&gt;codec-prefs&lt;/string&gt;
+             &lt;/property&gt;
+            &lt;/widget&gt;
+           &lt;/item&gt;
+           &lt;item row=&quot;0&quot; column=&quot;1&quot;&gt;
+            &lt;widget class=&quot;QLineEdit&quot; name=&quot;sofiaCodecPrefsEdit&quot;&gt;
+             &lt;property name=&quot;text&quot;&gt;
+              &lt;string&gt;CELT@48000h,G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM&lt;/string&gt;
+             &lt;/property&gt;
+            &lt;/widget&gt;
+           &lt;/item&gt;
+           &lt;item row=&quot;1&quot; column=&quot;0&quot;&gt;
+            &lt;widget class=&quot;QLabel&quot; name=&quot;label_30&quot;&gt;
+             &lt;property name=&quot;text&quot;&gt;
+              &lt;string&gt;inbound-codec-negotiation&lt;/string&gt;
+             &lt;/property&gt;
+            &lt;/widget&gt;
+           &lt;/item&gt;
+           &lt;item row=&quot;1&quot; column=&quot;1&quot;&gt;
+            &lt;widget class=&quot;QComboBox&quot; name=&quot;sofiaInboundCodecNegotiationCombo&quot;&gt;
+             &lt;item&gt;
+              &lt;property name=&quot;text&quot;&gt;
+               &lt;string&gt;generous&lt;/string&gt;
+              &lt;/property&gt;
+             &lt;/item&gt;
+             &lt;item&gt;
+              &lt;property name=&quot;text&quot;&gt;
+               &lt;string&gt;greedy&lt;/string&gt;
+              &lt;/property&gt;
+             &lt;/item&gt;
+            &lt;/widget&gt;
+           &lt;/item&gt;
+          &lt;/layout&gt;
+         &lt;/widget&gt;
+         &lt;widget class=&quot;QWidget&quot; name=&quot;tab_3&quot;&gt;
+          &lt;attribute name=&quot;title&quot;&gt;
+           &lt;string&gt;Advanced&lt;/string&gt;
+          &lt;/attribute&gt;
+          &lt;layout class=&quot;QVBoxLayout&quot; name=&quot;verticalLayout_6&quot;&gt;
+           &lt;item&gt;
+            &lt;widget class=&quot;QGroupBox&quot; name=&quot;groupBox_7&quot;&gt;
+             &lt;property name=&quot;title&quot;&gt;
+              &lt;string&gt;Profile&lt;/string&gt;
+             &lt;/property&gt;
+             &lt;layout class=&quot;QFormLayout&quot; name=&quot;formLayout_8&quot;&gt;
+              &lt;item row=&quot;0&quot; column=&quot;0&quot;&gt;
+               &lt;widget class=&quot;QLabel&quot; name=&quot;label_17&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;rfc2833-pt&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;0&quot; column=&quot;1&quot;&gt;
+               &lt;widget class=&quot;QLineEdit&quot; name=&quot;sofiaRfc2833PtEdit&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;101&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;1&quot; column=&quot;0&quot;&gt;
+               &lt;widget class=&quot;QLabel&quot; name=&quot;label_5&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;debug&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;1&quot; column=&quot;1&quot;&gt;
+               &lt;widget class=&quot;QSpinBox&quot; name=&quot;sofiaDebugSpin&quot;/&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;2&quot; column=&quot;0&quot;&gt;
+               &lt;widget class=&quot;QLabel&quot; name=&quot;label_6&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;sip-trace&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;2&quot; column=&quot;1&quot;&gt;
+               &lt;widget class=&quot;QComboBox&quot; name=&quot;sofiaSipTraceCombo&quot;&gt;
+                &lt;item&gt;
+                 &lt;property name=&quot;text&quot;&gt;
+                  &lt;string&gt;false&lt;/string&gt;
+                 &lt;/property&gt;
+                &lt;/item&gt;
+                &lt;item&gt;
+                 &lt;property name=&quot;text&quot;&gt;
+                  &lt;string&gt;true&lt;/string&gt;
+                 &lt;/property&gt;
+                &lt;/item&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;3&quot; column=&quot;0&quot;&gt;
+               &lt;widget class=&quot;QLabel&quot; name=&quot;label_20&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;dtmf-duration&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;3&quot; column=&quot;1&quot;&gt;
+               &lt;widget class=&quot;QSpinBox&quot; name=&quot;spinBox&quot;&gt;
+                &lt;property name=&quot;maximum&quot;&gt;
+                 &lt;number&gt;1000&lt;/number&gt;
+                &lt;/property&gt;
+                &lt;property name=&quot;value&quot;&gt;
+                 &lt;number&gt;100&lt;/number&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;4&quot; column=&quot;0&quot;&gt;
+               &lt;widget class=&quot;QLabel&quot; name=&quot;label_23&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;rtp-timer-name&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;4&quot; column=&quot;1&quot;&gt;
+               &lt;widget class=&quot;QLineEdit&quot; name=&quot;sofiaRtpTimerNameEdit&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;soft&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;5&quot; column=&quot;0&quot;&gt;
+               &lt;widget class=&quot;QLabel&quot; name=&quot;label_28&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;manage-presence&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;5&quot; column=&quot;1&quot;&gt;
+               &lt;widget class=&quot;QComboBox&quot; name=&quot;sofiaManagePresenceCombo&quot;&gt;
+                &lt;item&gt;
+                 &lt;property name=&quot;text&quot;&gt;
+                  &lt;string&gt;false&lt;/string&gt;
+                 &lt;/property&gt;
+                &lt;/item&gt;
+                &lt;item&gt;
+                 &lt;property name=&quot;text&quot;&gt;
+                  &lt;string&gt;true&lt;/string&gt;
+                 &lt;/property&gt;
+                &lt;/item&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;6&quot; column=&quot;0&quot;&gt;
+               &lt;widget class=&quot;QLabel&quot; name=&quot;label_29&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;max-proceeding&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;6&quot; column=&quot;1&quot;&gt;
+               &lt;widget class=&quot;QSpinBox&quot; name=&quot;sofiaMaxProceedingEdit&quot;&gt;
+                &lt;property name=&quot;value&quot;&gt;
+                 &lt;number&gt;3&lt;/number&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;7&quot; column=&quot;0&quot;&gt;
+               &lt;widget class=&quot;QLabel&quot; name=&quot;label_31&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;nonce-ttl&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;7&quot; column=&quot;1&quot;&gt;
+               &lt;widget class=&quot;QSpinBox&quot; name=&quot;sofiaNonceTtlSpin&quot;&gt;
+                &lt;property name=&quot;value&quot;&gt;
+                 &lt;number&gt;60&lt;/number&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;8&quot; column=&quot;0&quot;&gt;
+               &lt;widget class=&quot;QLabel&quot; name=&quot;label_36&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;rtp-timeout-sec&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;8&quot; column=&quot;1&quot;&gt;
+               &lt;widget class=&quot;QSpinBox&quot; name=&quot;sofiaRtpTimeoutSecSpin&quot;&gt;
+                &lt;property name=&quot;maximum&quot;&gt;
+                 &lt;number&gt;1000&lt;/number&gt;
+                &lt;/property&gt;
+                &lt;property name=&quot;value&quot;&gt;
+                 &lt;number&gt;300&lt;/number&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;9&quot; column=&quot;0&quot;&gt;
+               &lt;widget class=&quot;QLabel&quot; name=&quot;label_37&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;rtp-hold-timeout-sec&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;9&quot; column=&quot;1&quot;&gt;
+               &lt;widget class=&quot;QSpinBox&quot; name=&quot;sofiaRtpHoldTimeoutSecSpin&quot;&gt;
+                &lt;property name=&quot;maximum&quot;&gt;
+                 &lt;number&gt;5000&lt;/number&gt;
+                &lt;/property&gt;
+                &lt;property name=&quot;value&quot;&gt;
+                 &lt;number&gt;1800&lt;/number&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;10&quot; column=&quot;0&quot;&gt;
+               &lt;widget class=&quot;QLabel&quot; name=&quot;label_32&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;auth-calls&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;10&quot; column=&quot;1&quot;&gt;
+               &lt;widget class=&quot;QComboBox&quot; name=&quot;sofiaAuthCallsCombo&quot;&gt;
+                &lt;item&gt;
+                 &lt;property name=&quot;text&quot;&gt;
+                  &lt;string&gt;false&lt;/string&gt;
+                 &lt;/property&gt;
+                &lt;/item&gt;
+                &lt;item&gt;
+                 &lt;property name=&quot;text&quot;&gt;
+                  &lt;string&gt;true&lt;/string&gt;
+                 &lt;/property&gt;
+                &lt;/item&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;11&quot; column=&quot;0&quot;&gt;
+               &lt;widget class=&quot;QLabel&quot; name=&quot;label_33&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;auth-all-packets&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;11&quot; column=&quot;1&quot;&gt;
+               &lt;widget class=&quot;QComboBox&quot; name=&quot;sofiaAuthAllPacketsCombo&quot;&gt;
+                &lt;item&gt;
+                 &lt;property name=&quot;text&quot;&gt;
+                  &lt;string&gt;false&lt;/string&gt;
+                 &lt;/property&gt;
+                &lt;/item&gt;
+                &lt;item&gt;
+                 &lt;property name=&quot;text&quot;&gt;
+                  &lt;string&gt;true&lt;/string&gt;
+                 &lt;/property&gt;
+                &lt;/item&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;12&quot; column=&quot;0&quot;&gt;
+               &lt;widget class=&quot;QLabel&quot; name=&quot;label_38&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;disable-register&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;12&quot; column=&quot;1&quot;&gt;
+               &lt;widget class=&quot;QComboBox&quot; name=&quot;sofiaDisableRegisterCombo&quot;&gt;
+                &lt;item&gt;
+                 &lt;property name=&quot;text&quot;&gt;
+                  &lt;string&gt;true&lt;/string&gt;
+                 &lt;/property&gt;
+                &lt;/item&gt;
+                &lt;item&gt;
+                 &lt;property name=&quot;text&quot;&gt;
+                  &lt;string&gt;false&lt;/string&gt;
+                 &lt;/property&gt;
+                &lt;/item&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;13&quot; column=&quot;0&quot;&gt;
+               &lt;widget class=&quot;QLabel&quot; name=&quot;label_39&quot;&gt;
+                &lt;property name=&quot;text&quot;&gt;
+                 &lt;string&gt;challenge-realm&lt;/string&gt;
+                &lt;/property&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+              &lt;item row=&quot;13&quot; column=&quot;1&quot;&gt;
+               &lt;widget class=&quot;QComboBox&quot; name=&quot;sofiaChallengeRealmCombo&quot;&gt;
+                &lt;item&gt;
+                 &lt;property name=&quot;text&quot;&gt;
+                  &lt;string&gt;auto_from&lt;/string&gt;
+                 &lt;/property&gt;
+                &lt;/item&gt;
+                &lt;item&gt;
+                 &lt;property name=&quot;text&quot;&gt;
+                  &lt;string&gt;auto_to&lt;/string&gt;
+                 &lt;/property&gt;
+                &lt;/item&gt;
+               &lt;/widget&gt;
+              &lt;/item&gt;
+             &lt;/layout&gt;
+            &lt;/widget&gt;
+           &lt;/item&gt;
+          &lt;/layout&gt;
+         &lt;/widget&gt;
+        &lt;/widget&gt;
+       &lt;/item&gt;
+      &lt;/layout&gt;
+     &lt;/widget&gt;
+     &lt;widget class=&quot;QWidget&quot; name=&quot;page_2&quot;&gt;
+      &lt;layout class=&quot;QVBoxLayout&quot; name=&quot;verticalLayout&quot;&gt;
+       &lt;item&gt;
+        &lt;widget class=&quot;QGroupBox&quot; name=&quot;groupBox_3&quot;&gt;
+         &lt;property name=&quot;title&quot;&gt;
+          &lt;string&gt;Devices&lt;/string&gt;
+         &lt;/property&gt;
+         &lt;layout class=&quot;QFormLayout&quot; name=&quot;formLayout_3&quot;&gt;
+          &lt;item row=&quot;0&quot; column=&quot;0&quot;&gt;
+           &lt;widget class=&quot;QLabel&quot; name=&quot;label_7&quot;&gt;
+            &lt;property name=&quot;text&quot;&gt;
+             &lt;string&gt;indev&lt;/string&gt;
+            &lt;/property&gt;
+           &lt;/widget&gt;
+          &lt;/item&gt;
+          &lt;item row=&quot;0&quot; column=&quot;1&quot;&gt;
+           &lt;widget class=&quot;QComboBox&quot; name=&quot;PaIndevCombo&quot;/&gt;
+          &lt;/item&gt;
+          &lt;item row=&quot;1&quot; column=&quot;0&quot;&gt;
+           &lt;widget class=&quot;QLabel&quot; name=&quot;label_8&quot;&gt;
+            &lt;property name=&quot;text&quot;&gt;
+             &lt;string&gt;outdev&lt;/string&gt;
+            &lt;/property&gt;
+           &lt;/widget&gt;
+          &lt;/item&gt;
+          &lt;item row=&quot;1&quot; column=&quot;1&quot;&gt;
+           &lt;layout class=&quot;QHBoxLayout&quot; name=&quot;horizontalLayout_3&quot;&gt;
+            &lt;item&gt;
+             &lt;widget class=&quot;QComboBox&quot; name=&quot;PaOutdevCombo&quot;/&gt;
+            &lt;/item&gt;
+            &lt;item&gt;
+             &lt;widget class=&quot;QPushButton&quot; name=&quot;PaOutdevTestBtn&quot;&gt;
+              &lt;property name=&quot;enabled&quot;&gt;
+               &lt;bool&gt;false&lt;/bool&gt;
+              &lt;/property&gt;
+              &lt;property name=&quot;maximumSize&quot;&gt;
+               &lt;size&gt;
+                &lt;width&gt;86&lt;/width&gt;
+                &lt;height&gt;27&lt;/height&gt;
+               &lt;/size&gt;
+              &lt;/property&gt;
+              &lt;property name=&quot;text&quot;&gt;
+               &lt;string&gt;Test&lt;/string&gt;
+              &lt;/property&gt;
+             &lt;/widget&gt;
+            &lt;/item&gt;
+           &lt;/layout&gt;
+          &lt;/item&gt;
+          &lt;item row=&quot;2&quot; column=&quot;0&quot;&gt;
+           &lt;widget class=&quot;QLabel&quot; name=&quot;label_9&quot;&gt;
+            &lt;property name=&quot;text&quot;&gt;
+             &lt;string&gt;rindgev&lt;/string&gt;
+            &lt;/property&gt;
+           &lt;/widget&gt;
+          &lt;/item&gt;
+          &lt;item row=&quot;2&quot; column=&quot;1&quot;&gt;
+           &lt;layout class=&quot;QHBoxLayout&quot; name=&quot;horizontalLayout_2&quot;&gt;
+            &lt;item&gt;
+             &lt;widget class=&quot;QComboBox&quot; name=&quot;PaRingdevCombo&quot;/&gt;
+            &lt;/item&gt;
+            &lt;item&gt;
+             &lt;widget class=&quot;QPushButton&quot; name=&quot;PaRingdevTestBtn&quot;&gt;
+              &lt;property name=&quot;enabled&quot;&gt;
+               &lt;bool&gt;true&lt;/bool&gt;
+              &lt;/property&gt;
+              &lt;property name=&quot;maximumSize&quot;&gt;
+               &lt;size&gt;
+                &lt;width&gt;86&lt;/width&gt;
+                &lt;height&gt;27&lt;/height&gt;
+               &lt;/size&gt;
+              &lt;/property&gt;
+              &lt;property name=&quot;text&quot;&gt;
+               &lt;string&gt;Test&lt;/string&gt;
+              &lt;/property&gt;
+             &lt;/widget&gt;
+            &lt;/item&gt;
+           &lt;/layout&gt;
+          &lt;/item&gt;
+         &lt;/layout&gt;
+        &lt;/widget&gt;
+       &lt;/item&gt;
+       &lt;item&gt;
+        &lt;widget class=&quot;QGroupBox&quot; name=&quot;groupBox_4&quot;&gt;
+         &lt;property name=&quot;title&quot;&gt;
+          &lt;string&gt;Files&lt;/string&gt;
+         &lt;/property&gt;
+         &lt;layout class=&quot;QFormLayout&quot; name=&quot;formLayout_5&quot;&gt;
+          &lt;item row=&quot;0&quot; column=&quot;0&quot;&gt;
+           &lt;widget class=&quot;QLabel&quot; name=&quot;label_10&quot;&gt;
+            &lt;property name=&quot;text&quot;&gt;
+             &lt;string&gt;ring-file&lt;/string&gt;
+            &lt;/property&gt;
+           &lt;/widget&gt;
+          &lt;/item&gt;
+          &lt;item row=&quot;0&quot; column=&quot;1&quot;&gt;
+           &lt;layout class=&quot;QHBoxLayout&quot; name=&quot;horizontalLayout_4&quot;&gt;
+            &lt;item&gt;
+             &lt;widget class=&quot;QLineEdit&quot; name=&quot;PaRingFileEdit&quot;&gt;
+              &lt;property name=&quot;text&quot;&gt;
+               &lt;string&gt;tone_stream://%(2000,4000,440.0,480.0);loops=20&lt;/string&gt;
+              &lt;/property&gt;
+             &lt;/widget&gt;
+            &lt;/item&gt;
+            &lt;item&gt;
+             &lt;widget class=&quot;QPushButton&quot; name=&quot;PaRingFileBtn&quot;&gt;
+              &lt;property name=&quot;text&quot;&gt;
+               &lt;string&gt;Open&lt;/string&gt;
+              &lt;/property&gt;
+             &lt;/widget&gt;
+            &lt;/item&gt;
+           &lt;/layout&gt;
+          &lt;/item&gt;
+          &lt;item row=&quot;1&quot; column=&quot;0&quot;&gt;
+           &lt;widget class=&quot;QLabel&quot; name=&quot;label_12&quot;&gt;
+            &lt;property name=&quot;text&quot;&gt;
+             &lt;string&gt;ring-interval&lt;/string&gt;
+            &lt;/property&gt;
+           &lt;/widget&gt;
+          &lt;/item&gt;
+          &lt;item row=&quot;1&quot; column=&quot;1&quot;&gt;
+           &lt;widget class=&quot;QSpinBox&quot; name=&quot;PaRingIntervalSpin&quot;&gt;
+            &lt;property name=&quot;value&quot;&gt;
+             &lt;number&gt;5&lt;/number&gt;
+            &lt;/property&gt;
+           &lt;/widget&gt;
+          &lt;/item&gt;
+          &lt;item row=&quot;2&quot; column=&quot;0&quot;&gt;
+           &lt;widget class=&quot;QLabel&quot; name=&quot;label_11&quot;&gt;
+            &lt;property name=&quot;text&quot;&gt;
+             &lt;string&gt;hold-file&lt;/string&gt;
+            &lt;/property&gt;
+           &lt;/widget&gt;
+          &lt;/item&gt;
+          &lt;item row=&quot;2&quot; column=&quot;1&quot;&gt;
+           &lt;layout class=&quot;QHBoxLayout&quot; name=&quot;horizontalLayout&quot;&gt;
+            &lt;item&gt;
+             &lt;widget class=&quot;QLineEdit&quot; name=&quot;PaHoldFileEdit&quot;&gt;
+              &lt;property name=&quot;readOnly&quot;&gt;
+               &lt;bool&gt;true&lt;/bool&gt;
+              &lt;/property&gt;
+             &lt;/widget&gt;
+            &lt;/item&gt;
+            &lt;item&gt;
+             &lt;widget class=&quot;QPushButton&quot; name=&quot;PaHoldFileBtn&quot;&gt;
+              &lt;property name=&quot;text&quot;&gt;
+               &lt;string&gt;Open&lt;/string&gt;
+              &lt;/property&gt;
+             &lt;/widget&gt;
+            &lt;/item&gt;
+           &lt;/layout&gt;
+          &lt;/item&gt;
+         &lt;/layout&gt;
+        &lt;/widget&gt;
+       &lt;/item&gt;
+      &lt;/layout&gt;
+     &lt;/widget&gt;
+    &lt;/widget&gt;
+   &lt;/item&gt;
+   &lt;item row=&quot;1&quot; column=&quot;1&quot;&gt;
+    &lt;widget class=&quot;QDialogButtonBox&quot; name=&quot;buttonBox&quot;&gt;
+     &lt;property name=&quot;orientation&quot;&gt;
+      &lt;enum&gt;Qt::Horizontal&lt;/enum&gt;
+     &lt;/property&gt;
+     &lt;property name=&quot;standardButtons&quot;&gt;
+      &lt;set&gt;QDialogButtonBox::Cancel|QDialogButtonBox::Ok&lt;/set&gt;
+     &lt;/property&gt;
+    &lt;/widget&gt;
+   &lt;/item&gt;
+  &lt;/layout&gt;
+ &lt;/widget&gt;
+ &lt;resources&gt;
+  &lt;include location=&quot;resources.qrc&quot;/&gt;
+ &lt;/resources&gt;
+ &lt;connections&gt;
+  &lt;connection&gt;
+   &lt;sender&gt;buttonBox&lt;/sender&gt;
+   &lt;signal&gt;accepted()&lt;/signal&gt;
+   &lt;receiver&gt;PrefDialog&lt;/receiver&gt;
+   &lt;slot&gt;accept()&lt;/slot&gt;
+   &lt;hints&gt;
+    &lt;hint type=&quot;sourcelabel&quot;&gt;
+     &lt;x&gt;544&lt;/x&gt;
+     &lt;y&gt;224&lt;/y&gt;
+    &lt;/hint&gt;
+    &lt;hint type=&quot;destinationlabel&quot;&gt;
+     &lt;x&gt;157&lt;/x&gt;
+     &lt;y&gt;246&lt;/y&gt;
+    &lt;/hint&gt;
+   &lt;/hints&gt;
+  &lt;/connection&gt;
+  &lt;connection&gt;
+   &lt;sender&gt;buttonBox&lt;/sender&gt;
+   &lt;signal&gt;rejected()&lt;/signal&gt;
+   &lt;receiver&gt;PrefDialog&lt;/receiver&gt;
+   &lt;slot&gt;reject()&lt;/slot&gt;
+   &lt;hints&gt;
+    &lt;hint type=&quot;sourcelabel&quot;&gt;
+     &lt;x&gt;544&lt;/x&gt;
+     &lt;y&gt;230&lt;/y&gt;
+    &lt;/hint&gt;
+    &lt;hint type=&quot;destinationlabel&quot;&gt;
+     &lt;x&gt;286&lt;/x&gt;
+     &lt;y&gt;246&lt;/y&gt;
+    &lt;/hint&gt;
+   &lt;/hints&gt;
+  &lt;/connection&gt;
+  &lt;connection&gt;
+   &lt;sender&gt;listSections&lt;/sender&gt;
+   &lt;signal&gt;currentRowChanged(int)&lt;/signal&gt;
+   &lt;receiver&gt;stackedWidget&lt;/receiver&gt;
+   &lt;slot&gt;setCurrentIndex(int)&lt;/slot&gt;
+   &lt;hints&gt;
+    &lt;hint type=&quot;sourcelabel&quot;&gt;
+     &lt;x&gt;180&lt;/x&gt;
+     &lt;y&gt;83&lt;/y&gt;
+    &lt;/hint&gt;
+    &lt;hint type=&quot;destinationlabel&quot;&gt;
+     &lt;x&gt;524&lt;/x&gt;
+     &lt;y&gt;102&lt;/y&gt;
+    &lt;/hint&gt;
+   &lt;/hints&gt;
+  &lt;/connection&gt;
+ &lt;/connections&gt;
+&lt;/ui&gt;
</ins></span></pre></div>
<a id="freeswitchtrunkfscommpreferencesprefportaudiocppfromrev16190freeswitchtrunkfscommprefportaudiocpp"></a>
<div class="copfile"><h4>Copied: freeswitch/trunk/fscomm/preferences/prefportaudio.cpp (from rev 16190, freeswitch/trunk/fscomm/prefportaudio.cpp) (0 => 16192)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/fscomm/preferences/prefportaudio.cpp                                (rev 0)
+++ freeswitch/trunk/fscomm/preferences/prefportaudio.cpp        2010-01-07 05:19:36 UTC (rev 16192)
</span><span class="lines">@@ -0,0 +1,285 @@
</span><ins>+#include &lt;QtGui&gt;
+#include &lt;fshost.h&gt;
+#include &quot;prefportaudio.h&quot;
+
+PrefPortaudio::PrefPortaudio(Ui::PrefDialog *ui, QObject *parent) :
+        QObject(parent),
+        _ui(ui)
+{
+    _settings = new QSettings();
+    connect(_ui-&gt;PaRingFileBtn, SIGNAL(clicked()), this, SLOT(ringFileChoose()));
+    connect(_ui-&gt;PaHoldFileBtn, SIGNAL(clicked()), this, SLOT(holdFileChoose()));
+    connect(_ui-&gt;PaOutdevCombo, SIGNAL(currentIndexChanged(int)), this, SLOT(outdevChangeDev(int)));
+    connect(_ui-&gt;PaRingdevCombo, SIGNAL(currentIndexChanged(int)), this, SLOT(ringdevChangeDev(int)));
+    connect(_ui-&gt;PaRingdevTestBtn, SIGNAL(clicked()), this, SLOT(ringdevTest()));
+}
+
+void PrefPortaudio::ringdevTest()
+{
+    QString result;
+    if (g_FSHost.sendCmd(&quot;pa&quot;, QString(&quot;play %1/.fscomm/sounds/test.wav 0&quot;).arg(QDir::homePath()).toAscii().constData(), &amp;result) != SWITCH_STATUS_SUCCESS)
+    {
+        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;Error testing ringdev on mod_portaudio! %s\n&quot;,
+                          result.toAscii().constData());
+    }
+}
+
+void PrefPortaudio::ringdevChangeDev(int dev)
+{
+    QString result;
+    if (g_FSHost.sendCmd(&quot;pa&quot;, QString(&quot;ringdev #%1&quot;).arg(dev).toAscii().constData(), &amp;result) != SWITCH_STATUS_SUCCESS)
+    {
+        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;Error setting ringdev to #%d on mod_portaudio!\n&quot;, dev);
+        QMessageBox::critical(0, tr(&quot;Unable to change device.&quot;),
+                              tr(&quot;There was an error changing the ringdev.\nPlease report this bug.&quot;),
+                              QMessageBox::Ok);
+
+    }
+}
+
+void PrefPortaudio::outdevChangeDev(int dev)
+{
+    QString result;
+    if (g_FSHost.sendCmd(&quot;pa&quot;, QString(&quot;outdev #%1&quot;).arg(dev).toAscii().constData(), &amp;result) != SWITCH_STATUS_SUCCESS)
+    {
+        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;Error setting outdev to #%d on mod_portaudio!\n&quot;, dev);
+        QMessageBox::critical(0, tr(&quot;Unable to change device.&quot;),
+                              tr(&quot;There was an error changing the outdev.\nPlease report this bug.&quot;),
+                              QMessageBox::Ok);
+    }
+}
+
+void PrefPortaudio::holdFileChoose()
+{
+    QString fileName = QFileDialog::getOpenFileName(0,
+                                                    tr(&quot;Select file&quot;),
+                                                    QDir::homePath(),
+                                                    NULL);
+    if (!fileName.isNull())
+        _ui-&gt;PaHoldFileEdit-&gt;setText(fileName);
+}
+
+void PrefPortaudio::ringFileChoose()
+{
+    QString fileName = QFileDialog::getOpenFileName(0,
+                                                    tr(&quot;Select file&quot;),
+                                                    QDir::homePath(),
+                                                    NULL);
+    if (!fileName.isNull())
+        _ui-&gt;PaRingFileEdit-&gt;setText(fileName);
+}
+
+void PrefPortaudio::writeConfig()
+{
+    _settings-&gt;beginGroup(&quot;FreeSWITCH/conf&quot;);
+    _settings-&gt;beginGroup(&quot;portaudio.conf&quot;);
+
+    QString cid_name = _settings-&gt;value(&quot;cid-name&quot;).toString();
+    QString ncid_name = _ui-&gt;PaCallerIdNameEdit-&gt;text();
+
+    QString cid_num = _settings-&gt;value(&quot;cid-num&quot;).toString();
+    QString ncid_num = _ui-&gt;PaCallerIdNumEdit-&gt;text();
+
+    QString hold_file = _settings-&gt;value(&quot;hold-file&quot;).toString();
+    QString nhold_file =  _ui-&gt;PaHoldFileEdit-&gt;text();
+
+    QString ring_file = _settings-&gt;value(&quot;ring-file&quot;).toString();
+    QString nring_file = _ui-&gt;PaRingFileEdit-&gt;text();
+
+    int ring_interval = _settings-&gt;value(&quot;ring-interval&quot;).toInt();
+    int nring_interval = _ui-&gt;PaRingIntervalSpin-&gt;value();
+
+    QString result;
+
+    if (cid_name != ncid_name ||
+        cid_num != ncid_num ||
+        hold_file != nhold_file ||
+        ring_file != nring_file ||
+        ring_interval != nring_interval)
+    {
+        if (g_FSHost.sendCmd(&quot;reload&quot;, &quot;mod_portaudio&quot;, &amp;result) == SWITCH_STATUS_SUCCESS)
+        {
+            _settings-&gt;setValue(&quot;cid-name&quot;, ncid_name);
+            _settings-&gt;setValue(&quot;cid-num&quot;, ncid_num);
+            _settings-&gt;setValue(&quot;ring-file&quot;, nring_file);
+            _settings-&gt;setValue(&quot;ring-interval&quot;, nring_interval);
+            _settings-&gt;setValue(&quot;hold-file&quot;, nhold_file);
+        }
+        else
+        {
+            switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;Error while issuing reload command to mod_portaudio!\n&quot;);
+            QMessageBox::critical(0, tr(&quot;Unable to save settings&quot;),
+                                  tr(&quot;There was an error saving your settings.\nPlease report this bug.&quot;),
+                                  QMessageBox::Ok);
+        }
+    }
+
+    int nindev = _ui-&gt;PaIndevCombo-&gt;currentIndex();
+    int indev = _settings-&gt;value(&quot;indev&quot;).toInt();
+    int noutdev = _ui-&gt;PaOutdevCombo-&gt;currentIndex();
+    int outdev = _settings-&gt;value(&quot;outdev&quot;).toInt();
+    int nringdev = _ui-&gt;PaRingdevCombo-&gt;currentIndex();
+    int ringdev = _settings-&gt;value(&quot;ringdev&quot;).toInt();
+
+    if (nindev != indev)
+    {
+        if (g_FSHost.sendCmd(&quot;pa&quot;, QString(&quot;indev #%1&quot;).arg(nindev).toAscii().constData(), &amp;result) == SWITCH_STATUS_SUCCESS)
+        {
+            _settings-&gt;setValue(&quot;indev&quot;, nindev);
+        }
+        else
+        {
+            switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;Error setting indev from #%d to #%d on mod_portaudio!\n&quot;,
+                              indev, nindev);
+            QMessageBox::critical(0, tr(&quot;Unable to save settings&quot;),
+                                  tr(&quot;There was an error changing the indev.\nPlease report this bug.&quot;),
+                                  QMessageBox::Ok);
+        }
+    }
+
+    if (noutdev!= outdev)
+    {
+        _settings-&gt;setValue(&quot;outdev&quot;, noutdev);
+    }
+    if (nringdev != ringdev)
+    {
+        _settings-&gt;setValue(&quot;ringdev&quot;, nringdev);
+    }
+
+    _settings-&gt;endGroup();
+    _settings-&gt;endGroup();
+}
+
+void PrefPortaudio::readConfig()
+{
+    getPaDevlist();
+    _settings-&gt;beginGroup(&quot;FreeSWITCH/conf&quot;);
+
+    _settings-&gt;beginGroup(&quot;portaudio.conf&quot;);
+    _ui-&gt;PaCallerIdNameEdit-&gt;setText(_settings-&gt;value(&quot;cid-name&quot;).toString());
+    _ui-&gt;PaCallerIdNumEdit-&gt;setText(_settings-&gt;value(&quot;cid-num&quot;).toString());
+    _ui-&gt;PaHoldFileEdit-&gt;setText(_settings-&gt;value(&quot;hold-file&quot;).toString());
+    _ui-&gt;PaRingFileEdit-&gt;setText(_settings-&gt;value(&quot;ring-file&quot;).toString());
+    _ui-&gt;PaRingIntervalSpin-&gt;setValue(_settings-&gt;value(&quot;ring-interval&quot;).toInt());
+    _settings-&gt;endGroup();
+
+    _settings-&gt;endGroup();
+}
+
+void PrefPortaudio::getPaDevlist()
+{
+    QString result;
+    int errorLine, errorColumn;
+    QString errorMsg;
+
+    if (g_FSHost.sendCmd(&quot;pa&quot;, &quot;devlist xml&quot;, &amp;result) != SWITCH_STATUS_SUCCESS)
+    {
+        QMessageBox::critical(0, tr(&quot;PortAudio error&quot; ),
+                              tr(&quot;Error querying audio devices.&quot;),
+                              QMessageBox::Ok);
+        return;
+    }
+
+    if (!_xmlPaDevList.setContent(result, &amp;errorMsg, &amp;errorLine, &amp;errorColumn))
+    {
+        QMessageBox::critical(0, tr(&quot;PortAudio error&quot; ),
+                              tr(&quot;Error parsing output xml from pa devlist.\n%1 (Line:%2, Col:%3).&quot;).arg(errorMsg,
+                                                                                                         errorLine,
+                                                                                                         errorColumn),
+                              QMessageBox::Ok);
+        return;
+    }
+    QDomElement root = _xmlPaDevList.documentElement();
+    if (root.tagName() != &quot;xml&quot;)
+    {
+        QMessageBox::critical(0, tr(&quot;PortAudio error&quot; ),
+                              tr(&quot;Error parsing output xml from pa devlist. Root tag is not &lt;xml&gt;.&quot;),
+                              QMessageBox::Ok);
+        return;
+    }
+    QDomElement devices = root.firstChildElement(&quot;devices&quot;);
+    if (devices.isNull())
+    {
+        QMessageBox::critical(0, tr(&quot;PortAudio error&quot; ),
+                              tr(&quot;Error parsing output xml from pa devlist. There is no &lt;devices&gt; tag.&quot;),
+                              QMessageBox::Ok);
+        return;
+    }
+
+    QDomElement child = devices.firstChildElement();
+    if (child.isNull())
+    {
+        QMessageBox::critical(0, tr(&quot;PortAudio error&quot; ),
+                              tr(&quot;Error parsing output xml from pa devlist. There is no &lt;device&gt; tag.&quot;),
+                              QMessageBox::Ok);
+        return;
+    }
+
+    while (!child.isNull())
+    {
+        if (child.tagName() == &quot;device&quot;)
+        {
+            QString id, name, inputs, outputs;
+            id = child.attribute(&quot;id&quot;,&quot;-1&quot;);
+            name = child.attribute(&quot;name&quot;,&quot;Null&quot;);
+            inputs = child.attribute(&quot;inputs&quot;,&quot;0&quot;);
+            outputs = child.attribute(&quot;outputs&quot;,&quot;0&quot;);
+            if (inputs.toInt() != 0)
+                _ui-&gt;PaIndevCombo-&gt;addItem(name,id.toInt());
+            if (outputs.toInt() != 0)
+            {
+                _ui-&gt;PaOutdevCombo-&gt;addItem(name,id.toInt());
+                _ui-&gt;PaRingdevCombo-&gt;addItem(name,id.toInt());
+            }
+        }
+        child = child.nextSiblingElement();
+    }
+
+    QDomElement bindings = root.firstChildElement(&quot;bindings&quot;);
+    if (bindings.isNull())
+    {
+        QMessageBox::critical(0, tr(&quot;PortAudio error&quot; ),
+                              tr(&quot;Error parsing output xml from pa devlist. There is no &lt;bindings&gt; tag.&quot;),
+                              QMessageBox::Ok);
+        return;
+    }
+
+    child = bindings.firstChildElement();
+    if (child.isNull())
+    {
+        QMessageBox::critical(0, tr(&quot;PortAudio error&quot; ),
+                              tr(&quot;Error parsing output xml from pa devlist. There are no bindings.&quot;),
+                              QMessageBox::Ok);
+        return;
+    }
+
+    while (!child.isNull())
+    {
+        QString id = child.attribute(&quot;device&quot;,&quot;-1&quot;);
+        if (child.tagName() == &quot;ring&quot;)
+        {
+            for(int itemId=0; itemId&lt;_ui-&gt;PaRingdevCombo-&gt;count(); itemId++)
+            {
+                if (itemId == _ui-&gt;PaRingdevCombo-&gt;itemData(itemId,Qt::UserRole).toInt())
+                {
+                    _ui-&gt;PaRingdevCombo-&gt;setCurrentIndex(itemId);
+                    break;
+                }
+            }
+        }
+        else if (child.tagName() == &quot;input&quot;)
+            _ui-&gt;PaIndevCombo-&gt;setCurrentIndex(id.toInt());
+        else if (child.tagName() == &quot;output&quot;)
+            for(int itemId=0; itemId&lt;_ui-&gt;PaOutdevCombo-&gt;count(); itemId++)
+            {
+                if (itemId == _ui-&gt;PaOutdevCombo-&gt;itemData(itemId,Qt::UserRole).toInt())
+                {
+                    _ui-&gt;PaOutdevCombo-&gt;setCurrentIndex(itemId);
+                    break;
+                }
+            }
+
+        child = child.nextSiblingElement();
+    }
+
+}
</ins></span></pre></div>
<a id="freeswitchtrunkfscommpreferencesprefportaudiohfromrev16190freeswitchtrunkfscommprefportaudioh"></a>
<div class="copfile"><h4>Copied: freeswitch/trunk/fscomm/preferences/prefportaudio.h (from rev 16190, freeswitch/trunk/fscomm/prefportaudio.h) (0 => 16192)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/fscomm/preferences/prefportaudio.h                                (rev 0)
+++ freeswitch/trunk/fscomm/preferences/prefportaudio.h        2010-01-07 05:19:36 UTC (rev 16192)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+#ifndef PREFPORTAUDIO_H
+#define PREFPORTAUDIO_H
+
+#include &lt;QObject&gt;
+#include &lt;QDomDocument&gt;
+#include &quot;ui_prefdialog.h&quot;
+
+class QSettings;
+
+class PrefPortaudio : public QObject
+{
+Q_OBJECT
+public:
+    explicit PrefPortaudio(Ui::PrefDialog *ui, QObject *parent = 0);
+    void writeConfig();
+    void readConfig();
+
+private slots:
+    void ringFileChoose();
+    void holdFileChoose();
+    void outdevChangeDev(int);
+    void ringdevChangeDev(int);
+    void ringdevTest();
+
+private:
+    void getPaDevlist(void);
+    QSettings *_settings;
+    Ui::PrefDialog *_ui;
+    QDomDocument _xmlPaDevList;
+};
+
+#endif // PREFPORTAUDIO_H
</ins></span></pre></div>
<a id="freeswitchtrunkfscommprefportaudiocpp"></a>
<div class="delfile"><h4>Deleted: freeswitch/trunk/fscomm/prefportaudio.cpp</h4></div>
<a id="freeswitchtrunkfscommprefportaudioh"></a>
<div class="delfile"><h4>Deleted: freeswitch/trunk/fscomm/prefportaudio.h</h4></div>
</div>
<div id="footer">See you at ClueCon</div>

</body>
</html>