<!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][16297] </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=16297">16297</a></dd>
<dt>Author</dt> <dd>jmesquita</dd>
<dt>Date</dt> <dd>2010-01-13 20:32:20 -0600 (Wed, 13 Jan 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Quite a big commit that might break a lot of things. Will fix tomorrow if it does. There is now the possibility of adding accounts. Make sure to remove your configs before trying this.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#freeswitchtrunkfscommFSCommpro">freeswitch/trunk/fscomm/FSComm.pro</a></li>
<li><a href="#freeswitchtrunkfscommconffreeswitchxml">freeswitch/trunk/fscomm/conf/freeswitch.xml</a></li>
<li><a href="#freeswitchtrunkfscommfshostcpp">freeswitch/trunk/fscomm/fshost.cpp</a></li>
<li><a href="#freeswitchtrunkfscommmod_qsettingsmod_qsettingscpp">freeswitch/trunk/fscomm/mod_qsettings/mod_qsettings.cpp</a></li>
<li><a href="#freeswitchtrunkfscommmod_qsettingsmod_qsettingsh">freeswitch/trunk/fscomm/mod_qsettings/mod_qsettings.h</a></li>
<li><a href="#freeswitchtrunkfscommpreferencesaccountdialogcpp">freeswitch/trunk/fscomm/preferences/accountdialog.cpp</a></li>
<li><a href="#freeswitchtrunkfscommpreferencesaccountdialogh">freeswitch/trunk/fscomm/preferences/accountdialog.h</a></li>
<li><a href="#freeswitchtrunkfscommpreferencesprefaccountscpp">freeswitch/trunk/fscomm/preferences/prefaccounts.cpp</a></li>
<li><a href="#freeswitchtrunkfscommpreferencesprefaccountsh">freeswitch/trunk/fscomm/preferences/prefaccounts.h</a></li>
<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="#freeswitchtrunkfscommpreferencesprefsofiacpp">freeswitch/trunk/fscomm/preferences/prefsofia.cpp</a></li>
<li><a href="#freeswitchtrunkfscommresourcesqrc">freeswitch/trunk/fscomm/resources.qrc</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#freeswitchtrunkfscommconfaccountconfxml">freeswitch/trunk/fscomm/conf/account.conf.xml</a></li>
<li><a href="#freeswitchtrunkfscommconfevent_socketconfxml">freeswitch/trunk/fscomm/conf/event_socket.conf.xml</a></li>
<li><a href="#freeswitchtrunkfscommconfportaudioconfxml">freeswitch/trunk/fscomm/conf/portaudio.conf.xml</a></li>
<li><a href="#freeswitchtrunkfscommconfsofiaconfxml">freeswitch/trunk/fscomm/conf/sofia.conf.xml</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="freeswitchtrunkfscommFSCommpro"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/fscomm/FSComm.pro (16296 => 16297)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/fscomm/FSComm.pro        2010-01-14 00:39:32 UTC (rev 16296)
+++ freeswitch/trunk/fscomm/FSComm.pro        2010-01-14 02:32:20 UTC (rev 16297)
</span><span class="lines">@@ -1,7 +1,7 @@
</span><span class="cx"> # #####################################
</span><span class="cx"> # version check qt
</span><span class="cx"> # #####################################
</span><del>-contains(QT_VERSION, ^4\.[0-4]\..*) {
</del><ins>+contains(QT_VERSION, ^4\.[0-4]\..*) { 
</ins><span class="cx">     message(&quot;Cannot build FsGui with Qt version $$QT_VERSION.&quot;)
</span><span class="cx">     error(&quot;Use at least Qt 4.5.&quot;)
</span><span class="cx"> }
</span><span class="lines">@@ -38,13 +38,10 @@
</span><span class="cx">     preferences/prefdialog.h \
</span><span class="cx">     preferences/prefportaudio.h \
</span><span class="cx">     preferences/prefsofia.h \
</span><del>-    preferences/accountdialog.h
</del><ins>+    preferences/accountdialog.h \
+    preferences/prefaccounts.h
</ins><span class="cx"> FORMS += mainwindow.ui \
</span><span class="cx">     preferences/prefdialog.ui \
</span><span class="cx">     preferences/accountdialog.ui
</span><span class="cx"> RESOURCES += resources.qrc
</span><del>-OTHER_FILES += conf/portaudio.conf.xml \
-    conf/event_socket.conf.xml \
-    conf/freeswitch.xml \
-    conf/sofia.conf.xml \
-    conf/account.conf.xml
</del><ins>+OTHER_FILES += conf/freeswitch.xml
</ins></span></pre></div>
<a id="freeswitchtrunkfscommconfaccountconfxml"></a>
<div class="delfile"><h4>Deleted: freeswitch/trunk/fscomm/conf/account.conf.xml</h4></div>
<a id="freeswitchtrunkfscommconfevent_socketconfxml"></a>
<div class="delfile"><h4>Deleted: freeswitch/trunk/fscomm/conf/event_socket.conf.xml</h4></div>
<a id="freeswitchtrunkfscommconffreeswitchxml"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/fscomm/conf/freeswitch.xml (16296 => 16297)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/fscomm/conf/freeswitch.xml        2010-01-14 00:39:32 UTC (rev 16296)
+++ freeswitch/trunk/fscomm/conf/freeswitch.xml        2010-01-14 02:32:20 UTC (rev 16297)
</span><span class="lines">@@ -99,6 +99,33 @@
</span><span class="cx">                         &lt;/modules&gt;
</span><span class="cx">                 &lt;/configuration&gt;
</span><span class="cx"> 
</span><ins>+                &lt;configuration name=&quot;portaudio.conf&quot; description=&quot;Soundcard Endpoint&quot;&gt;
+                  &lt;settings&gt;
+                    &lt;param name=&quot;indev&quot; value=&quot;&quot;/&gt;
+                    &lt;!-- device to use for output --&gt;
+                    &lt;param name=&quot;outdev&quot; value=&quot;&quot;/&gt;
+                    &lt;!--&lt;param name=&quot;ringdev&quot; value=&quot;&quot;/&gt;--&gt;
+                    &lt;param name=&quot;ring-file&quot; value=&quot;tone_stream://%(2000,4000,440.0,480.0);loops=20&quot;/&gt;
+                    &lt;param name=&quot;ring-interval&quot; value=&quot;5&quot;/&gt;
+                    &lt;param name=&quot;hold-file&quot; value=&quot;$${hold_music}&quot;/&gt;
+                    &lt;!--&lt;param name=&quot;timer-name&quot; value=&quot;soft&quot;/&gt;--&gt;
+                    &lt;param name=&quot;dialplan&quot; value=&quot;XML&quot;/&gt;
+                    &lt;param name=&quot;cid-name&quot; value=&quot;$${outbound_caller_name}&quot;/&gt;
+                    &lt;param name=&quot;cid-num&quot; value=&quot;$${outbound_caller_number}&quot;/&gt;
+                    &lt;param name=&quot;sample-rate&quot; value=&quot;48000&quot;/&gt;
+                    &lt;param name=&quot;codec-ms&quot; value=&quot;10&quot;/&gt;
+                  &lt;/settings&gt;
+                &lt;/configuration&gt;
+
+                &lt;configuration name=&quot;event_socket.conf&quot; description=&quot;Socket Client&quot;&gt;
+                      &lt;settings&gt;
+                            &lt;param name=&quot;nat-map&quot; value=&quot;false&quot;/&gt;
+                            &lt;param name=&quot;listen-ip&quot; value=&quot;127.0.0.1&quot;/&gt;
+                            &lt;param name=&quot;listen-port&quot; value=&quot;8022&quot;/&gt;
+                            &lt;param name=&quot;password&quot; value=&quot;ClueCon&quot;/&gt;
+                      &lt;/settings&gt;
+                &lt;/configuration&gt;
+
</ins><span class="cx">                 &lt;configuration name=&quot;post_load_modules.conf&quot; description=&quot;Modules&quot;&gt;
</span><span class="cx">                         &lt;modules&gt;
</span><span class="cx">                         &lt;/modules&gt;
</span></span></pre></div>
<a id="freeswitchtrunkfscommconfportaudioconfxml"></a>
<div class="delfile"><h4>Deleted: freeswitch/trunk/fscomm/conf/portaudio.conf.xml</h4></div>
<a id="freeswitchtrunkfscommconfsofiaconfxml"></a>
<div class="delfile"><h4>Deleted: freeswitch/trunk/fscomm/conf/sofia.conf.xml</h4></div>
<a id="freeswitchtrunkfscommfshostcpp"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/fscomm/fshost.cpp (16296 => 16297)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/fscomm/fshost.cpp        2010-01-14 00:39:32 UTC (rev 16296)
+++ freeswitch/trunk/fscomm/fshost.cpp        2010-01-14 02:32:20 UTC (rev 16297)
</span><span class="lines">@@ -56,7 +56,6 @@
</span><span class="cx">         conf_dir.mkpath(&quot;.fscomm/conf/accounts&quot;);
</span><span class="cx">         conf_dir.mkpath(&quot;.fscomm/sounds&quot;);
</span><span class="cx">         QFile::copy(&quot;:/sounds/test.wav&quot;, QString(&quot;%1/.fscomm/sounds/test.wav&quot;).arg(QDir::homePath()));
</span><del>-        conf_dir.mkpath(&quot;.fscomm/templates&quot;);
</del><span class="cx">         QFile rootXML(&quot;:/confs/freeswitch.xml&quot;);
</span><span class="cx">         QString dest = QString(&quot;%1/.fscomm/conf/freeswitch.xml&quot;).arg(conf_dir.absolutePath());
</span><span class="cx">         rootXML.copy(dest);
</span></span></pre></div>
<a id="freeswitchtrunkfscommmod_qsettingsmod_qsettingscpp"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/fscomm/mod_qsettings/mod_qsettings.cpp (16296 => 16297)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/fscomm/mod_qsettings/mod_qsettings.cpp        2010-01-14 00:39:32 UTC (rev 16296)
+++ freeswitch/trunk/fscomm/mod_qsettings/mod_qsettings.cpp        2010-01-14 02:32:20 UTC (rev 16297)
</span><span class="lines">@@ -33,128 +33,106 @@
</span><span class="cx"> #include &lt;QString&gt;
</span><span class="cx"> #include &lt;QtGui&gt;
</span><span class="cx"> #include &lt;QDir&gt;
</span><del>-#include &lt;QDomDocument&gt;
-#include &lt;QDomNodeList&gt;
</del><ins>+#include &lt;QXmlStreamWriter&gt;
</ins><span class="cx"> #include &quot;mod_qsettings/mod_qsettings.h&quot;
</span><span class="cx"> 
</span><span class="cx"> switch_xml_t XMLBinding::getConfigXML(QString tmpl)
</span><span class="cx"> {
</span><del>-    switch_event_t *e;
-    switch_event_create_plain(&amp;e, SWITCH_EVENT_REQUEST_PARAMS);
-    switch_assert(e);
-
-    if (QFile::exists(QString(&quot;%1/.fscomm/templates/%2.xml&quot;).arg(QDir::homePath(),tmpl))) {
-        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO,
-                          &quot;Using template %s.xml on .fscomm/.\n&quot;,
-                          tmpl.toAscii().constData());
-    }
-    else if(QFile::exists(QString(&quot;:/confs/%1.xml&quot;).arg(tmpl)))
</del><ins>+    _settings-&gt;beginGroup(&quot;FreeSWITCH/conf&quot;);
+    if (!_settings-&gt;childGroups().contains(tmpl))
</ins><span class="cx">     {
</span><del>-        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO,
-                          &quot;Template %s.xml, doesn't exist on directory, copying embedded template.\n&quot;,
-                          tmpl.toAscii().constData());
-        QString dest = QString(&quot;%1/.fscomm/templates/%2.xml&quot;).arg(QDir::homePath(),tmpl);
-        QString orig = QString(&quot;:/confs/%1.xml&quot;).arg(tmpl);
-        QFile::copy(orig, dest);
-    }
-
-    QFile tmplFile(QString(&quot;%1/.fscomm/templates/%2.xml&quot;).arg(QDir::homePath(),tmpl));
-    if (!tmplFile.open(QIODevice::ReadOnly | QIODevice::Text))
-    {
-        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;Template %s could not be read!\n&quot;, tmpl.toAscii().constData());
</del><ins>+        _settings-&gt;endGroup();
</ins><span class="cx">         return NULL;
</span><span class="cx">     }
</span><ins>+    _settings-&gt;beginGroup(tmpl);
</ins><span class="cx"> 
</span><del>-    /* Open template file and expand all strings based on QSettings */
-    QByteArray tmplContents(tmplFile.readAll());
-    tmplFile.close();
</del><ins>+    QByteArray *finalXML = new QByteArray();
+    QXmlStreamWriter streamWriter(finalXML);
</ins><span class="cx"> 
</span><del>-    _settings-&gt;beginGroup(&quot;FreeSWITCH/conf&quot;);
-    _settings-&gt;beginGroup(tmpl);
-    foreach(QString k, _settings-&gt;childKeys())
</del><ins>+    streamWriter.setAutoFormatting(true);
+    streamWriter.writeStartElement(&quot;document&quot;);
+    streamWriter.writeAttribute(&quot;type&quot;, &quot;freeswitch/xml&quot;);
+
+    streamWriter.writeStartElement(&quot;section&quot;);
+    streamWriter.writeAttribute(&quot;name&quot;, &quot;configuration&quot;);
+
+    streamWriter.writeStartElement(&quot;configuration&quot;);
+    streamWriter.writeAttribute(&quot;name&quot;, tmpl);
+    streamWriter.writeAttribute(&quot;description&quot;, &quot;Configuration generated by QSettings&quot;);
+
+    foreach (QString group, _settings-&gt;childGroups())
</ins><span class="cx">     {
</span><del>-        switch_event_add_header_string(e, SWITCH_STACK_BOTTOM, k.toAscii().constData(), _settings-&gt;value(k).toByteArray().constData());
</del><ins>+        parseGroup(&amp;streamWriter, group);
</ins><span class="cx">     }
</span><ins>+
+    streamWriter.writeEndElement();
+    streamWriter.writeEndElement();
+    streamWriter.writeEndElement();
+
+    switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, &quot;Config for %s requested. Providing the following XML:\n%s\n&quot;,
+                      tmpl.toAscii().constData(), finalXML-&gt;data());
+
</ins><span class="cx">     _settings-&gt;endGroup();
</span><span class="cx">     _settings-&gt;endGroup();
</span><span class="cx"> 
</span><del>-    char *res = switch_event_expand_headers(e, tmplContents.data());
-    switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, &quot;Template %s as follows:\n%s&quot;, tmpl.toAscii().constData(), res);
-    switch_safe_free(e);
-    if (tmpl == &quot;sofia.conf&quot;)
-    {
-        return proccessAccounts(tmpl, res);
-    }
-    return switch_xml_parse_str(res, strlen(res));
</del><ins>+    return switch_xml_parse_str(finalXML-&gt;data(), strlen(finalXML-&gt;data()));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-switch_xml_t XMLBinding::proccessAccounts(QString tmpl, QByteArray xml)
</del><ins>+void XMLBinding::parseGroup(QXmlStreamWriter *streamWriter, QString group)
</ins><span class="cx"> {
</span><del>-    char *res = NULL;
-
-    QDomDocument xmlDom;
-
-    /* Process sofia accounts */
-    if (tmpl == &quot;sofia.conf&quot;)
</del><ins>+    if (group == &quot;attrs&quot;)
</ins><span class="cx">     {
</span><del>-        int errorLine, errorColumn;
-        QString errorMsg;
-
-        if (!xmlDom.setContent(xml, &amp;errorMsg, &amp;errorLine, &amp;errorColumn))
</del><ins>+        _settings-&gt;beginGroup(group);
+        foreach (QString k, _settings-&gt;childKeys())
</ins><span class="cx">         {
</span><del>-            switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;Could not parse the xml template from sofia.conf.xml to add the accounts!\n&quot;);
</del><ins>+            streamWriter-&gt;writeAttribute(k, _settings-&gt;value(k).toString());
</ins><span class="cx">         }
</span><del>-        QDomNodeList gatewaysNodeList = xmlDom.elementsByTagName(&quot;gateways&quot;);
-        if (gatewaysNodeList.isEmpty() || gatewaysNodeList.count() &gt; 1)
</del><ins>+        _settings-&gt;endGroup();
+        return;
+    }
+
+    if (group == &quot;params&quot;)
+    {
+        _settings-&gt;beginGroup(group);
+        foreach(QString param, _settings-&gt;childKeys())
</ins><span class="cx">         {
</span><del>-            switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;Where is my gateways tag? Or do we have more then one match?\n&quot;);
</del><ins>+            streamWriter-&gt;writeStartElement(&quot;param&quot;);
+            streamWriter-&gt;writeAttribute(&quot;name&quot;, param);
+            streamWriter-&gt;writeAttribute(&quot;value&quot;, _settings-&gt;value(param).toString());
+            streamWriter-&gt;writeEndElement();
</ins><span class="cx">         }
</span><ins>+        _settings-&gt;endGroup();
+        return;
+    }
</ins><span class="cx"> 
</span><del>-        QDomNode gatewaysNode = gatewaysNodeList.at(0);
-
-        _settings-&gt;beginGroup(&quot;FreeSWITCH/conf/accounts&quot;);
-        foreach (QString account, _settings-&gt;childGroups())
</del><ins>+    if (group == &quot;gateways&quot;)
+    {
+        streamWriter-&gt;writeStartElement(group);
+        _settings-&gt;beginGroup(group);
+        foreach (QString gw, _settings-&gt;childGroups())
</ins><span class="cx">         {
</span><del>-            switch_event_t *e;
-            switch_event_create_plain(&amp;e, SWITCH_EVENT_REQUEST_PARAMS);
-            switch_assert(e);
-
-            _settings-&gt;beginGroup(account);
-            switch_event_add_header_string(e, SWITCH_STACK_BOTTOM, &quot;name&quot;, account.toAscii().data());
-            foreach (QString k, _settings-&gt;childKeys())
</del><ins>+            _settings-&gt;beginGroup(gw);
+            foreach(QString g, _settings-&gt;childGroups())
</ins><span class="cx">             {
</span><del>-                switch_event_add_header_string(e, SWITCH_STACK_BOTTOM, k.toAscii().constData(), _settings-&gt;value(k).toByteArray().constData());
</del><ins>+                parseGroup(streamWriter, g);
</ins><span class="cx">             }
</span><span class="cx">             _settings-&gt;endGroup();
</span><del>-
-            /* Open template file and expand all strings based on QSettings */
-            QFile tmplFile(QString(&quot;%1/.fscomm/templates/account.conf.xml&quot;).arg(QDir::homePath()));
-            if (!tmplFile.open(QIODevice::ReadOnly | QIODevice::Text))
-            {
-                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;Template for accounts could not be read!\n&quot;);
-                return NULL;
-            }
-
-            QByteArray tmplContents(tmplFile.readAll());
-            tmplFile.close();
-
-            res = switch_event_expand_headers(e, tmplContents.data());
-
-            switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, &quot;Template of account %s as follows:\n%s&quot;, account.toAscii().data(), res);
-
-            QDomDocument gatewayXML;
-            if (!gatewayXML.setContent(QByteArray(res), &amp;errorMsg, &amp;errorLine, &amp;errorColumn))
-            {
-                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;We could not parse the XML for the account!\n&quot;);
-            }
-
-            gatewaysNode.appendChild(gatewayXML);
-            switch_safe_free(e);
</del><span class="cx">         }
</span><span class="cx">         _settings-&gt;endGroup();
</span><ins>+        streamWriter-&gt;writeEndElement();
+        return;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    return switch_xml_parse_str(xmlDom.toByteArray().data(), strlen(xmlDom.toByteArray().data()));
</del><ins>+    _settings-&gt;beginGroup(group);
+    streamWriter-&gt;writeStartElement(group);
+
+    foreach (QString group2, _settings-&gt;childGroups())
+    {
+        parseGroup(streamWriter, group2);
+    }
+
+    streamWriter-&gt;writeEndElement();
+    _settings-&gt;endGroup();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> static switch_xml_t xml_url_fetch(const char *section, const char *tag_name, const char *key_name, const char *key_value, switch_event_t *params,
</span></span></pre></div>
<a id="freeswitchtrunkfscommmod_qsettingsmod_qsettingsh"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/fscomm/mod_qsettings/mod_qsettings.h (16296 => 16297)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/fscomm/mod_qsettings/mod_qsettings.h        2010-01-14 00:39:32 UTC (rev 16296)
+++ freeswitch/trunk/fscomm/mod_qsettings/mod_qsettings.h        2010-01-14 02:32:20 UTC (rev 16297)
</span><span class="lines">@@ -43,7 +43,7 @@
</span><span class="cx">     QString getBinding(void) { return _binding; }
</span><span class="cx">     switch_xml_t getConfigXML(QString);
</span><span class="cx"> private:
</span><del>-    switch_xml_t proccessAccounts(QString, QByteArray);
</del><ins>+    void parseGroup(QXmlStreamWriter *,QString);
</ins><span class="cx">     QString _binding;
</span><span class="cx">     QSettings* _settings;
</span><span class="cx"> };
</span></span></pre></div>
<a id="freeswitchtrunkfscommpreferencesaccountdialogcpp"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/fscomm/preferences/accountdialog.cpp (16296 => 16297)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/fscomm/preferences/accountdialog.cpp        2010-01-14 00:39:32 UTC (rev 16296)
+++ freeswitch/trunk/fscomm/preferences/accountdialog.cpp        2010-01-14 02:32:20 UTC (rev 16297)
</span><span class="lines">@@ -2,9 +2,11 @@
</span><span class="cx"> #include &lt;QtGui&gt;
</span><span class="cx"> #include &quot;accountdialog.h&quot;
</span><span class="cx"> #include &quot;ui_accountdialog.h&quot;
</span><ins>+#include &quot;fshost.h&quot;
</ins><span class="cx"> 
</span><del>-AccountDialog::AccountDialog(QWidget *parent) :
</del><ins>+AccountDialog::AccountDialog(int accId, QWidget *parent) :
</ins><span class="cx">     QDialog(parent),
</span><ins>+    _accId(accId),
</ins><span class="cx">     ui(new Ui::AccountDialog)
</span><span class="cx"> {
</span><span class="cx">     ui-&gt;setupUi(this);
</span><span class="lines">@@ -57,9 +59,16 @@
</span><span class="cx"> 
</span><span class="cx"> void AccountDialog::writeConfig()
</span><span class="cx"> {
</span><del>-    _settings-&gt;beginGroup(&quot;FreeSWITCH/conf/accounts&quot;);
</del><ins>+    _settings-&gt;beginGroup(&quot;FreeSWITCH/conf/sofia.conf/profiles/profile/gateways&quot;);
</ins><span class="cx"> 
</span><del>-    _settings-&gt;beginGroup(ui-&gt;sofiaGwNameEdit-&gt;text());
</del><ins>+    _settings-&gt;beginGroup(QString::number(_accId));
+    
+    _settings-&gt;beginGroup(&quot;gateway/attrs&quot;);
+    _settings-&gt;setValue(&quot;name&quot;, ui-&gt;sofiaGwNameEdit-&gt;text());
+    _settings-&gt;endGroup();
+
+
+    _settings-&gt;beginGroup(&quot;gateway/params&quot;);
</ins><span class="cx">     _settings-&gt;setValue(&quot;username&quot;, ui-&gt;sofiaGwUsernameEdit-&gt;text());
</span><span class="cx">     _settings-&gt;setValue(&quot;realm&quot;, ui-&gt;sofiaGwRealmEdit-&gt;text());
</span><span class="cx">     _settings-&gt;setValue(&quot;password&quot;, ui-&gt;sofiaGwPasswordEdit-&gt;text());
</span><span class="lines">@@ -67,9 +76,7 @@
</span><span class="cx">     _settings-&gt;setValue(&quot;expire-seconds&quot;, ui-&gt;sofiaGwExpireSecondsSpin-&gt;value());
</span><span class="cx">     _settings-&gt;setValue(&quot;register&quot;, ui-&gt;sofiaGwRegisterCombo-&gt;currentText());
</span><span class="cx">     _settings-&gt;setValue(&quot;register-transport&quot;, ui-&gt;sofiaGwRegisterTransportCombo-&gt;currentText());
</span><del>-    _settings-&gt;setValue(&quot;retry-seconds&quot;, ui-&gt;sofiaGwRetrySecondsSpin-&gt;value());
-
-    _settings-&gt;beginGroup(&quot;customParams&quot;);
</del><ins>+    _settings-&gt;setValue(&quot;retry-seconds&quot;, ui-&gt;sofiaGwRetrySecondsSpin-&gt;value());    
</ins><span class="cx">     for (int i = 0; i&lt; ui-&gt;sofiaExtraParamTable-&gt;rowCount(); i++)
</span><span class="cx">     {
</span><span class="cx">         _settings-&gt;setValue(ui-&gt;sofiaExtraParamTable-&gt;item(i, 0)-&gt;text(),
</span><span class="lines">@@ -80,6 +87,14 @@
</span><span class="cx">     _settings-&gt;endGroup();
</span><span class="cx"> 
</span><span class="cx">     _settings-&gt;endGroup();
</span><ins>+
+    QString res;
+    if (g_FSHost.sendCmd(&quot;sofia&quot;, &quot;profile softphone rescan&quot;, &amp;res) != SWITCH_STATUS_SUCCESS)
+    {
+        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;Could not rescan the softphone profile.\n&quot;);
+        return;
+    }
+    emit gwAdded();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void AccountDialog::changeEvent(QEvent *e)
</span></span></pre></div>
<a id="freeswitchtrunkfscommpreferencesaccountdialogh"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/fscomm/preferences/accountdialog.h (16296 => 16297)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/fscomm/preferences/accountdialog.h        2010-01-14 00:39:32 UTC (rev 16296)
+++ freeswitch/trunk/fscomm/preferences/accountdialog.h        2010-01-14 02:32:20 UTC (rev 16297)
</span><span class="lines">@@ -12,9 +12,12 @@
</span><span class="cx"> class AccountDialog : public QDialog {
</span><span class="cx">     Q_OBJECT
</span><span class="cx"> public:
</span><del>-    AccountDialog(QWidget *parent = 0);
</del><ins>+    AccountDialog(int accId, QWidget *parent = 0);
</ins><span class="cx">     ~AccountDialog();
</span><span class="cx"> 
</span><ins>+signals:
+    void gwAdded();
+
</ins><span class="cx"> private slots:
</span><span class="cx">     void writeConfig();
</span><span class="cx">     void addExtraParam();
</span><span class="lines">@@ -24,6 +27,7 @@
</span><span class="cx">     void changeEvent(QEvent *e);
</span><span class="cx"> 
</span><span class="cx"> private:
</span><ins>+    int _accId;
</ins><span class="cx">     Ui::AccountDialog *ui;
</span><span class="cx">     QSettings *_settings;
</span><span class="cx"> };
</span></span></pre></div>
<a id="freeswitchtrunkfscommpreferencesprefaccountscpp"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/fscomm/preferences/prefaccounts.cpp (16296 => 16297)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/fscomm/preferences/prefaccounts.cpp        2010-01-14 00:39:32 UTC (rev 16296)
+++ freeswitch/trunk/fscomm/preferences/prefaccounts.cpp        2010-01-14 02:32:20 UTC (rev 16297)
</span><span class="lines">@@ -1,12 +1,28 @@
</span><span class="cx"> #include &lt;QtGui&gt;
</span><span class="cx"> #include &quot;prefaccounts.h&quot;
</span><ins>+#include &quot;accountdialog.h&quot;
</ins><span class="cx"> 
</span><span class="cx"> PrefAccounts::PrefAccounts(Ui::PrefDialog *ui) :
</span><span class="cx">         _ui(ui)
</span><span class="cx"> {
</span><span class="cx">     _settings = new QSettings();
</span><ins>+    _accDlg = NULL;
+    connect(_ui-&gt;sofiaGwAddBtn, SIGNAL(clicked()), this, SLOT(addAccountBtnClicked()));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><ins>+void PrefAccounts::addAccountBtnClicked()
+{
+    if (!_accDlg)
+    {
+        _accDlg = new AccountDialog(_ui-&gt;accountsTable-&gt;rowCount());
+        connect(_accDlg, SIGNAL(gwAdded()), this, SLOT(readConfig()));
+    }
+
+    _accDlg-&gt;show();
+    _accDlg-&gt;raise();
+    _accDlg-&gt;activateWindow();
+}
+
</ins><span class="cx"> void PrefAccounts::writeConfig()
</span><span class="cx"> {
</span><span class="cx">     return;
</span><span class="lines">@@ -14,13 +30,22 @@
</span><span class="cx"> 
</span><span class="cx"> void PrefAccounts::readConfig()
</span><span class="cx"> {
</span><del>-    _settings-&gt;beginGroup(&quot;FreeSWITCH/conf/accounts&quot;);
-    foreach(QString accountName, _settings-&gt;childGroups())
</del><ins>+
+    _ui-&gt;accountsTable-&gt;clearContents();
+    _ui-&gt;accountsTable-&gt;setRowCount(0);
+
+    _settings-&gt;beginGroup(&quot;FreeSWITCH/conf/sofia.conf/profiles/profile/gateways&quot;);
+    
+    foreach(QString accId, _settings-&gt;childGroups())
</ins><span class="cx">     {
</span><del>-        _settings-&gt;beginGroup(accountName);
-        QTableWidgetItem *item0 = new QTableWidgetItem(accountName);
</del><ins>+        _settings-&gt;beginGroup(accId);
+        _settings-&gt;beginGroup(&quot;gateway/attrs&quot;);
+        QTableWidgetItem *item0 = new QTableWidgetItem(_settings-&gt;value(&quot;name&quot;).toString());
+        _settings-&gt;endGroup();
+        _settings-&gt;beginGroup(&quot;gateway/params&quot;);
</ins><span class="cx">         QTableWidgetItem *item1 = new QTableWidgetItem(_settings-&gt;value(&quot;username&quot;).toString());
</span><span class="cx">         _settings-&gt;endGroup();
</span><ins>+        _settings-&gt;endGroup();
</ins><span class="cx">         _ui-&gt;accountsTable-&gt;setRowCount(_ui-&gt;accountsTable-&gt;rowCount()+1);
</span><span class="cx">         _ui-&gt;accountsTable-&gt;setItem(_ui-&gt;accountsTable-&gt;rowCount()-1, 0, item0);
</span><span class="cx">         _ui-&gt;accountsTable-&gt;setItem(_ui-&gt;accountsTable-&gt;rowCount()-1, 1, item1);
</span></span></pre></div>
<a id="freeswitchtrunkfscommpreferencesprefaccountsh"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/fscomm/preferences/prefaccounts.h (16296 => 16297)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/fscomm/preferences/prefaccounts.h        2010-01-14 00:39:32 UTC (rev 16296)
+++ freeswitch/trunk/fscomm/preferences/prefaccounts.h        2010-01-14 02:32:20 UTC (rev 16297)
</span><span class="lines">@@ -5,16 +5,23 @@
</span><span class="cx"> #include &quot;ui_prefdialog.h&quot;
</span><span class="cx"> 
</span><span class="cx"> class QSettings;
</span><ins>+class AccountDialog;
</ins><span class="cx"> 
</span><del>-class PrefAccounts
-{
</del><ins>+class PrefAccounts : public QObject {
+    Q_OBJECT
</ins><span class="cx"> public:
</span><span class="cx">     explicit PrefAccounts(Ui::PrefDialog *ui);
</span><del>-    void readConfig();
</del><span class="cx">     void writeConfig();
</span><span class="cx"> 
</span><ins>+public slots:
+    void readConfig();
+
+private slots:
+    void addAccountBtnClicked();
+
</ins><span class="cx"> private:
</span><span class="cx">     Ui::PrefDialog *_ui;
</span><ins>+    AccountDialog *_accDlg;
</ins><span class="cx">     QSettings *_settings;
</span><span class="cx"> };
</span><span class="cx"> 
</span></span></pre></div>
<a id="freeswitchtrunkfscommpreferencesprefdialogcpp"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/fscomm/preferences/prefdialog.cpp (16296 => 16297)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/fscomm/preferences/prefdialog.cpp        2010-01-14 00:39:32 UTC (rev 16296)
+++ freeswitch/trunk/fscomm/preferences/prefdialog.cpp        2010-01-14 02:32:20 UTC (rev 16297)
</span><span class="lines">@@ -3,7 +3,6 @@
</span><span class="cx"> #include &quot;ui_prefdialog.h&quot;
</span><span class="cx"> #include &quot;prefportaudio.h&quot;
</span><span class="cx"> #include &quot;prefsofia.h&quot;
</span><del>-#include &quot;accountdialog.h&quot;
</del><span class="cx"> #include &quot;prefaccounts.h&quot;
</span><span class="cx"> 
</span><span class="cx"> PrefDialog::PrefDialog(QWidget *parent) :
</span><span class="lines">@@ -13,12 +12,10 @@
</span><span class="cx">     ui-&gt;setupUi(this);
</span><span class="cx">     _settings = new QSettings();
</span><span class="cx">     connect(this, SIGNAL(accepted()), this, SLOT(writeConfig()));
</span><del>-    connect(ui-&gt;sofiaGwAddBtn, SIGNAL(clicked()), this, SLOT(addAccountBtnClicked()));
</del><span class="cx"> 
</span><del>-    _accDlg = NULL;
-    /*_pref_accounts = new PrefAccounts(ui);*/
</del><ins>+    _pref_accounts = new PrefAccounts(ui);
</ins><span class="cx">     _mod_portaudio = new PrefPortaudio(ui, this);
</span><del>-    /*_mod_sofia = new PrefSofia(ui, this);*/
</del><ins>+    _mod_sofia = new PrefSofia(ui, this);
</ins><span class="cx">     readConfig();
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -27,20 +24,10 @@
</span><span class="cx">     delete ui;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void PrefDialog::addAccountBtnClicked()
-{
-    if (!_accDlg)
-        _accDlg = new AccountDialog();
-
-    _accDlg-&gt;show();
-    _accDlg-&gt;raise();
-    _accDlg-&gt;activateWindow();
-}
-
</del><span class="cx"> void PrefDialog::writeConfig()
</span><span class="cx"> {    
</span><span class="cx">     _mod_portaudio-&gt;writeConfig();
</span><del>-    /*_mod_sofia-&gt;writeConfig();*/
</del><ins>+    _mod_sofia-&gt;writeConfig();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void PrefDialog::changeEvent(QEvent *e)
</span><span class="lines">@@ -57,7 +44,7 @@
</span><span class="cx"> 
</span><span class="cx"> void PrefDialog::readConfig()
</span><span class="cx"> {
</span><del>-    /*_pref_accounts-&gt;readConfig();*/
</del><ins>+    _pref_accounts-&gt;readConfig();
</ins><span class="cx">     _mod_portaudio-&gt;readConfig();
</span><del>-    /*_mod_sofia-&gt;readConfig();*/
</del><ins>+    _mod_sofia-&gt;readConfig();
</ins><span class="cx"> }
</span></span></pre></div>
<a id="freeswitchtrunkfscommpreferencesprefdialogh"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/fscomm/preferences/prefdialog.h (16296 => 16297)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/fscomm/preferences/prefdialog.h        2010-01-14 00:39:32 UTC (rev 16296)
+++ freeswitch/trunk/fscomm/preferences/prefdialog.h        2010-01-14 02:32:20 UTC (rev 16297)
</span><span class="lines">@@ -9,7 +9,6 @@
</span><span class="cx"> class PrefPortaudio;
</span><span class="cx"> class PrefSofia;
</span><span class="cx"> class PrefAccounts;
</span><del>-class AccountDialog;
</del><span class="cx"> 
</span><span class="cx"> namespace Ui {
</span><span class="cx">     class PrefDialog;
</span><span class="lines">@@ -25,17 +24,15 @@
</span><span class="cx">     void changeEvent(QEvent *e);
</span><span class="cx"> 
</span><span class="cx"> private slots:
</span><del>-    void addAccountBtnClicked();
</del><span class="cx">     void writeConfig();
</span><span class="cx"> 
</span><span class="cx"> private:
</span><span class="cx">     void readConfig();
</span><span class="cx">     QSettings *_settings;
</span><del>-    AccountDialog *_accDlg;
-/*    PrefAccounts *_pref_accounts;*/
</del><ins>+    PrefAccounts *_pref_accounts;
</ins><span class="cx">     Ui::PrefDialog *ui;
</span><span class="cx">     PrefPortaudio *_mod_portaudio;
</span><del>-/*    PrefSofia *_mod_sofia;*/
</del><ins>+    PrefSofia *_mod_sofia;
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> 
</span></span></pre></div>
<a id="freeswitchtrunkfscommpreferencesprefdialogui"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/fscomm/preferences/prefdialog.ui (16296 => 16297)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/fscomm/preferences/prefdialog.ui        2010-01-14 00:39:32 UTC (rev 16296)
+++ freeswitch/trunk/fscomm/preferences/prefdialog.ui        2010-01-14 02:32:20 UTC (rev 16297)
</span><span class="lines">@@ -72,9 +72,6 @@
</span><span class="cx">        &lt;iconset resource=&quot;../resources.qrc&quot;&gt;
</span><span class="cx">         &lt;normaloff&gt;:/images/pref_accounts.jpg&lt;/normaloff&gt;:/images/pref_accounts.jpg&lt;/iconset&gt;
</span><span class="cx">       &lt;/property&gt;
</span><del>-      &lt;property name=&quot;flags&quot;&gt;
-       &lt;set&gt;ItemIsSelectable|ItemIsDragEnabled|ItemIsUserCheckable&lt;/set&gt;
-      &lt;/property&gt;
</del><span class="cx">      &lt;/item&gt;
</span><span class="cx">      &lt;item&gt;
</span><span class="cx">       &lt;property name=&quot;text&quot;&gt;
</span><span class="lines">@@ -84,9 +81,6 @@
</span><span class="cx">        &lt;iconset resource=&quot;../resources.qrc&quot;&gt;
</span><span class="cx">         &lt;normaloff&gt;:/images/pref_sip.png&lt;/normaloff&gt;:/images/pref_sip.png&lt;/iconset&gt;
</span><span class="cx">       &lt;/property&gt;
</span><del>-      &lt;property name=&quot;flags&quot;&gt;
-       &lt;set&gt;ItemIsSelectable|ItemIsDragEnabled|ItemIsUserCheckable&lt;/set&gt;
-      &lt;/property&gt;
</del><span class="cx">      &lt;/item&gt;
</span><span class="cx">      &lt;item&gt;
</span><span class="cx">       &lt;property name=&quot;text&quot;&gt;
</span></span></pre></div>
<a id="freeswitchtrunkfscommpreferencesprefportaudiocpp"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/fscomm/preferences/prefportaudio.cpp (16296 => 16297)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/fscomm/preferences/prefportaudio.cpp        2010-01-14 00:39:32 UTC (rev 16296)
+++ freeswitch/trunk/fscomm/preferences/prefportaudio.cpp        2010-01-14 02:32:20 UTC (rev 16297)
</span><span class="lines">@@ -72,7 +72,7 @@
</span><span class="cx"> void PrefPortaudio::writeConfig()
</span><span class="cx"> {
</span><span class="cx">     _settings-&gt;beginGroup(&quot;FreeSWITCH/conf&quot;);
</span><del>-    _settings-&gt;beginGroup(&quot;portaudio.conf&quot;);
</del><ins>+    _settings-&gt;beginGroup(&quot;portaudio.conf/settings/params&quot;);
</ins><span class="cx"> 
</span><span class="cx">     QString cid_name = _settings-&gt;value(&quot;cid-name&quot;).toString();
</span><span class="cx">     QString ncid_name = _ui-&gt;PaCallerIdNameEdit-&gt;text();
</span><span class="lines">@@ -155,7 +155,7 @@
</span><span class="cx">     getPaDevlist();
</span><span class="cx">     _settings-&gt;beginGroup(&quot;FreeSWITCH/conf&quot;);
</span><span class="cx"> 
</span><del>-    _settings-&gt;beginGroup(&quot;portaudio.conf&quot;);
</del><ins>+    _settings-&gt;beginGroup(&quot;portaudio.conf/settings/params&quot;);
</ins><span class="cx">     _ui-&gt;PaCallerIdNameEdit-&gt;setText(_settings-&gt;value(&quot;cid-name&quot;).toString());
</span><span class="cx">     _ui-&gt;PaCallerIdNumEdit-&gt;setText(_settings-&gt;value(&quot;cid-num&quot;).toString());
</span><span class="cx">     _ui-&gt;PaHoldFileEdit-&gt;setText(_settings-&gt;value(&quot;hold-file&quot;).toString());
</span></span></pre></div>
<a id="freeswitchtrunkfscommpreferencesprefsofiacpp"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/fscomm/preferences/prefsofia.cpp (16296 => 16297)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/fscomm/preferences/prefsofia.cpp        2010-01-14 00:39:32 UTC (rev 16296)
+++ freeswitch/trunk/fscomm/preferences/prefsofia.cpp        2010-01-14 02:32:20 UTC (rev 16297)
</span><span class="lines">@@ -24,12 +24,22 @@
</span><span class="cx">     _settings-&gt;beginGroup(&quot;sofia.conf&quot;);
</span><span class="cx"> 
</span><span class="cx">     /* General Settings */
</span><ins>+    _settings-&gt;beginGroup(&quot;global_settings/params&quot;);
</ins><span class="cx">     _settings-&gt;setValue(&quot;log-level&quot;, _ui-&gt;sofiaLogLevelSpin-&gt;value());
</span><span class="cx">     _settings-&gt;setValue(&quot;auto-restart&quot;, _ui-&gt;sofiaAutoRestartCombo-&gt;currentText());
</span><span class="cx">     _settings-&gt;setValue(&quot;debug-presence&quot;, _ui-&gt;sofiaDebugPresenceSpin-&gt;value());
</span><span class="cx">     _settings-&gt;setValue(&quot;rewrite-multicasted-fs-path&quot;, _ui-&gt;sofiaRewriteMulticastedFsPathCombo-&gt;currentText());
</span><ins>+    _settings-&gt;endGroup();
</ins><span class="cx"> 
</span><span class="cx">     /* Profile settings */
</span><ins>+    _settings-&gt;beginGroup(&quot;profiles&quot;);
+    _settings-&gt;beginGroup(&quot;profile&quot;);
+
+    _settings-&gt;beginGroup(&quot;attrs&quot;);
+    _settings-&gt;setValue(&quot;name&quot;, &quot;softphone&quot;);
+    _settings-&gt;endGroup();
+
+    _settings-&gt;beginGroup(&quot;settings/params&quot;);
</ins><span class="cx">     _settings-&gt;setValue(&quot;user-agent-string&quot;, _ui-&gt;sofiaUserAgentStringEdit-&gt;text());
</span><span class="cx">     _settings-&gt;setValue(&quot;debug&quot;, _ui-&gt;sofiaDebugSpin-&gt;value());
</span><span class="cx">     _settings-&gt;setValue(&quot;sip-trace&quot;, _ui-&gt;sofiaSipTraceCombo-&gt;currentText());
</span><span class="lines">@@ -57,8 +67,8 @@
</span><span class="cx">     _settings-&gt;setValue(&quot;rtp-hold-timeout-sec&quot;, _ui-&gt;sofiaRtpHoldTimeoutSecSpin-&gt;value());
</span><span class="cx">     _settings-&gt;setValue(&quot;disable-register&quot;, _ui-&gt;sofiaDisableRegisterCombo-&gt;currentText());
</span><span class="cx">     _settings-&gt;setValue(&quot;challenge-realm&quot;, _ui-&gt;sofiaChallengeRealmCombo-&gt;currentText());
</span><ins>+    _settings-&gt;endGroup();
</ins><span class="cx"> 
</span><del>-
</del><span class="cx">     _settings-&gt;endGroup();
</span><span class="cx">     _settings-&gt;endGroup();
</span><span class="cx"> }
</span></span></pre></div>
<a id="freeswitchtrunkfscommresourcesqrc"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/fscomm/resources.qrc (16296 => 16297)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/fscomm/resources.qrc        2010-01-14 00:39:32 UTC (rev 16296)
+++ freeswitch/trunk/fscomm/resources.qrc        2010-01-14 02:32:20 UTC (rev 16297)
</span><span class="lines">@@ -8,11 +8,6 @@
</span><span class="cx">     &lt;/qresource&gt;
</span><span class="cx">     &lt;qresource prefix=&quot;/confs&quot;&gt;
</span><span class="cx">         &lt;file alias=&quot;freeswitch.xml&quot;&gt;conf/freeswitch.xml&lt;/file&gt;
</span><del>-        &lt;file alias=&quot;example.xml&quot;&gt;conf/accounts/example.xml&lt;/file&gt;
-        &lt;file alias=&quot;event_socket.conf.xml&quot;&gt;conf/event_socket.conf.xml&lt;/file&gt;
-        &lt;file alias=&quot;portaudio.conf.xml&quot;&gt;conf/portaudio.conf.xml&lt;/file&gt;
-        &lt;file alias=&quot;sofia.conf.xml&quot;&gt;conf/sofia.conf.xml&lt;/file&gt;
-        &lt;file alias=&quot;account.conf.xml&quot;&gt;conf/account.conf.xml&lt;/file&gt;
</del><span class="cx">     &lt;/qresource&gt;
</span><span class="cx">     &lt;qresource prefix=&quot;/sounds&quot;&gt;
</span><span class="cx">         &lt;file alias=&quot;test.wav&quot;&gt;resources/test.wav&lt;/file&gt;
</span></span></pre>
</div>
</div>
<div id="footer">See you at ClueCon</div>

</body>
</html>