<!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][16191] </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=16191">16191</a></dd>
<dt>Author</dt> <dd>jmesquita</dd>
<dt>Date</dt> <dd>2010-01-06 23:17:52 -0600 (Wed, 06 Jan 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Organizing code.</pre>

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

<h3>Added Paths</h3>
<ul>
<li>freeswitch/trunk/fscomm/preferences/</li>
<li><a href="#freeswitchtrunkfscommpreferencesprefsofiacpp">freeswitch/trunk/fscomm/preferences/prefsofia.cpp</a></li>
<li><a href="#freeswitchtrunkfscommpreferencesprefsofiah">freeswitch/trunk/fscomm/preferences/prefsofia.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 (16190 => 16191)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/fscomm/FSComm.pro        2010-01-07 03:50:18 UTC (rev 16190)
+++ freeswitch/trunk/fscomm/FSComm.pro        2010-01-07 05:17:52 UTC (rev 16191)
</span><span class="lines">@@ -27,13 +27,15 @@
</span><span class="cx">     call.cpp \
</span><span class="cx">     mod_qsettings/mod_qsettings.cpp \
</span><span class="cx">     prefdialog.cpp \
</span><del>-    prefportaudio.cpp
</del><ins>+    prefportaudio.cpp \
+    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><span class="cx">     prefdialog.h \
</span><del>-    prefportaudio.h
</del><ins>+    prefportaudio.h \
+    prefsofia.h
</ins><span class="cx"> FORMS += mainwindow.ui \
</span><span class="cx">     prefdialog.ui
</span><span class="cx"> RESOURCES += resources.qrc
</span></span></pre></div>
<a id="freeswitchtrunkfscommprefdialogui"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/fscomm/prefdialog.ui (16190 => 16191)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/fscomm/prefdialog.ui        2010-01-07 03:50:18 UTC (rev 16190)
+++ freeswitch/trunk/fscomm/prefdialog.ui        2010-01-07 05:17:52 UTC (rev 16191)
</span><span class="lines">@@ -6,8 +6,8 @@
</span><span class="cx">    &lt;rect&gt;
</span><span class="cx">     &lt;x&gt;0&lt;/x&gt;
</span><span class="cx">     &lt;y&gt;0&lt;/y&gt;
</span><del>-    &lt;width&gt;752&lt;/width&gt;
-    &lt;height&gt;496&lt;/height&gt;
</del><ins>+    &lt;width&gt;839&lt;/width&gt;
+    &lt;height&gt;613&lt;/height&gt;
</ins><span class="cx">    &lt;/rect&gt;
</span><span class="cx">   &lt;/property&gt;
</span><span class="cx">   &lt;property name=&quot;windowTitle&quot;&gt;
</span><span class="lines">@@ -87,7 +87,7 @@
</span><span class="cx">    &lt;item row=&quot;0&quot; column=&quot;1&quot;&gt;
</span><span class="cx">     &lt;widget class=&quot;QStackedWidget&quot; name=&quot;stackedWidget&quot;&gt;
</span><span class="cx">      &lt;property name=&quot;currentIndex&quot;&gt;
</span><del>-      &lt;number&gt;1&lt;/number&gt;
</del><ins>+      &lt;number&gt;0&lt;/number&gt;
</ins><span class="cx">      &lt;/property&gt;
</span><span class="cx">      &lt;widget class=&quot;QWidget&quot; name=&quot;page_3&quot;&gt;
</span><span class="cx">       &lt;layout class=&quot;QVBoxLayout&quot; name=&quot;verticalLayout_3&quot;&gt;
</span><span class="lines">@@ -127,7 +127,7 @@
</span><span class="cx">        &lt;item&gt;
</span><span class="cx">         &lt;widget class=&quot;QTabWidget&quot; name=&quot;tabWidget&quot;&gt;
</span><span class="cx">          &lt;property name=&quot;currentIndex&quot;&gt;
</span><del>-          &lt;number&gt;1&lt;/number&gt;
</del><ins>+          &lt;number&gt;0&lt;/number&gt;
</ins><span class="cx">          &lt;/property&gt;
</span><span class="cx">          &lt;widget class=&quot;QWidget&quot; name=&quot;tab&quot;&gt;
</span><span class="cx">           &lt;attribute name=&quot;title&quot;&gt;
</span><span class="lines">@@ -137,9 +137,12 @@
</span><span class="cx">            &lt;item&gt;
</span><span class="cx">             &lt;widget class=&quot;QGroupBox&quot; name=&quot;groupBox&quot;&gt;
</span><span class="cx">              &lt;property name=&quot;title&quot;&gt;
</span><del>-              &lt;string&gt;Global Settings&lt;/string&gt;
</del><ins>+              &lt;string&gt;Global&lt;/string&gt;
</ins><span class="cx">              &lt;/property&gt;
</span><span class="cx">              &lt;layout class=&quot;QFormLayout&quot; name=&quot;formLayout&quot;&gt;
</span><ins>+              &lt;property name=&quot;fieldGrowthPolicy&quot;&gt;
+               &lt;enum&gt;QFormLayout::AllNonFixedFieldsGrow&lt;/enum&gt;
+              &lt;/property&gt;
</ins><span class="cx">               &lt;item row=&quot;0&quot; column=&quot;0&quot;&gt;
</span><span class="cx">                &lt;widget class=&quot;QLabel&quot; name=&quot;label&quot;&gt;
</span><span class="cx">                 &lt;property name=&quot;text&quot;&gt;
</span><span class="lines">@@ -148,7 +151,7 @@
</span><span class="cx">                &lt;/widget&gt;
</span><span class="cx">               &lt;/item&gt;
</span><span class="cx">               &lt;item row=&quot;0&quot; column=&quot;1&quot;&gt;
</span><del>-               &lt;widget class=&quot;QSpinBox&quot; name=&quot;logLevelSpin&quot;/&gt;
</del><ins>+               &lt;widget class=&quot;QSpinBox&quot; name=&quot;sofiaLogLevelSpin&quot;/&gt;
</ins><span class="cx">               &lt;/item&gt;
</span><span class="cx">               &lt;item row=&quot;1&quot; column=&quot;0&quot;&gt;
</span><span class="cx">                &lt;widget class=&quot;QLabel&quot; name=&quot;label_2&quot;&gt;
</span><span class="lines">@@ -158,7 +161,7 @@
</span><span class="cx">                &lt;/widget&gt;
</span><span class="cx">               &lt;/item&gt;
</span><span class="cx">               &lt;item row=&quot;1&quot; column=&quot;1&quot;&gt;
</span><del>-               &lt;widget class=&quot;QComboBox&quot; name=&quot;autoRestartCombo&quot;&gt;
</del><ins>+               &lt;widget class=&quot;QComboBox&quot; name=&quot;sofiaAutoRestartCombo&quot;&gt;
</ins><span class="cx">                 &lt;item&gt;
</span><span class="cx">                  &lt;property name=&quot;text&quot;&gt;
</span><span class="cx">                   &lt;string&gt;true&lt;/string&gt;
</span><span class="lines">@@ -179,7 +182,7 @@
</span><span class="cx">                &lt;/widget&gt;
</span><span class="cx">               &lt;/item&gt;
</span><span class="cx">               &lt;item row=&quot;2&quot; column=&quot;1&quot;&gt;
</span><del>-               &lt;widget class=&quot;QSpinBox&quot; name=&quot;debugPresenceSpin&quot;/&gt;
</del><ins>+               &lt;widget class=&quot;QSpinBox&quot; name=&quot;sofiaDebugPresenceSpin&quot;/&gt;
</ins><span class="cx">               &lt;/item&gt;
</span><span class="cx">               &lt;item row=&quot;3&quot; column=&quot;0&quot;&gt;
</span><span class="cx">                &lt;widget class=&quot;QLabel&quot; name=&quot;label_15&quot;&gt;
</span><span class="lines">@@ -189,7 +192,7 @@
</span><span class="cx">                &lt;/widget&gt;
</span><span class="cx">               &lt;/item&gt;
</span><span class="cx">               &lt;item row=&quot;3&quot; column=&quot;1&quot;&gt;
</span><del>-               &lt;widget class=&quot;QComboBox&quot; name=&quot;comboBox&quot;&gt;
</del><ins>+               &lt;widget class=&quot;QComboBox&quot; name=&quot;sofiaRewriteMulticastedFsPathCombo&quot;&gt;
</ins><span class="cx">                 &lt;item&gt;
</span><span class="cx">                  &lt;property name=&quot;text&quot;&gt;
</span><span class="cx">                   &lt;string&gt;false&lt;/string&gt;
</span><span class="lines">@@ -205,11 +208,82 @@
</span><span class="cx">              &lt;/layout&gt;
</span><span class="cx">             &lt;/widget&gt;
</span><span class="cx">            &lt;/item&gt;
</span><ins>+           &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;
</ins><span class="cx">           &lt;/layout&gt;
</span><span class="cx">          &lt;/widget&gt;
</span><span class="cx">          &lt;widget class=&quot;QWidget&quot; name=&quot;tab_2&quot;&gt;
</span><span class="cx">           &lt;attribute name=&quot;title&quot;&gt;
</span><del>-           &lt;string&gt;Profiles&lt;/string&gt;
</del><ins>+           &lt;string&gt;Network&lt;/string&gt;
</ins><span class="cx">           &lt;/attribute&gt;
</span><span class="cx">           &lt;layout class=&quot;QVBoxLayout&quot; name=&quot;verticalLayout_4&quot;&gt;
</span><span class="cx">            &lt;item&gt;
</span><span class="lines">@@ -218,17 +292,193 @@
</span><span class="cx">               &lt;string&gt;Softphone Profile&lt;/string&gt;
</span><span class="cx">              &lt;/property&gt;
</span><span class="cx">              &lt;layout class=&quot;QFormLayout&quot; name=&quot;formLayout_2&quot;&gt;
</span><ins>+              &lt;property name=&quot;fieldGrowthPolicy&quot;&gt;
+               &lt;enum&gt;QFormLayout::AllNonFixedFieldsGrow&lt;/enum&gt;
+              &lt;/property&gt;
</ins><span class="cx">               &lt;item row=&quot;0&quot; column=&quot;0&quot;&gt;
</span><del>-               &lt;widget class=&quot;QLabel&quot; name=&quot;label_4&quot;&gt;
</del><ins>+               &lt;widget class=&quot;QLabel&quot; name=&quot;label_18&quot;&gt;
</ins><span class="cx">                 &lt;property name=&quot;text&quot;&gt;
</span><del>-                 &lt;string&gt;user-agent-string&lt;/string&gt;
</del><ins>+                 &lt;string&gt;sip-port&lt;/string&gt;
</ins><span class="cx">                 &lt;/property&gt;
</span><span class="cx">                &lt;/widget&gt;
</span><span class="cx">               &lt;/item&gt;
</span><span class="cx">               &lt;item row=&quot;0&quot; column=&quot;1&quot;&gt;
</span><del>-               &lt;widget class=&quot;QLineEdit&quot; name=&quot;userAgentStringEdit&quot;/&gt;
</del><ins>+               &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;
</ins><span class="cx">               &lt;/item&gt;
</span><span class="cx">               &lt;item row=&quot;1&quot; column=&quot;0&quot;&gt;
</span><ins>+               &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;
</ins><span class="cx">                &lt;widget class=&quot;QLabel&quot; name=&quot;label_5&quot;&gt;
</span><span class="cx">                 &lt;property name=&quot;text&quot;&gt;
</span><span class="cx">                  &lt;string&gt;debug&lt;/string&gt;
</span><span class="lines">@@ -236,7 +486,7 @@
</span><span class="cx">                &lt;/widget&gt;
</span><span class="cx">               &lt;/item&gt;
</span><span class="cx">               &lt;item row=&quot;1&quot; column=&quot;1&quot;&gt;
</span><del>-               &lt;widget class=&quot;QSpinBox&quot; name=&quot;debugSpin&quot;/&gt;
</del><ins>+               &lt;widget class=&quot;QSpinBox&quot; name=&quot;sofiaDebugSpin&quot;/&gt;
</ins><span class="cx">               &lt;/item&gt;
</span><span class="cx">               &lt;item row=&quot;2&quot; column=&quot;0&quot;&gt;
</span><span class="cx">                &lt;widget class=&quot;QLabel&quot; name=&quot;label_6&quot;&gt;
</span><span class="lines">@@ -246,7 +496,7 @@
</span><span class="cx">                &lt;/widget&gt;
</span><span class="cx">               &lt;/item&gt;
</span><span class="cx">               &lt;item row=&quot;2&quot; column=&quot;1&quot;&gt;
</span><del>-               &lt;widget class=&quot;QComboBox&quot; name=&quot;sipTraceCombo&quot;&gt;
</del><ins>+               &lt;widget class=&quot;QComboBox&quot; name=&quot;sofiaSipTraceCombo&quot;&gt;
</ins><span class="cx">                 &lt;item&gt;
</span><span class="cx">                  &lt;property name=&quot;text&quot;&gt;
</span><span class="cx">                   &lt;string&gt;false&lt;/string&gt;
</span><span class="lines">@@ -259,6 +509,204 @@
</span><span class="cx">                 &lt;/item&gt;
</span><span class="cx">                &lt;/widget&gt;
</span><span class="cx">               &lt;/item&gt;
</span><ins>+              &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;
</ins><span class="cx">              &lt;/layout&gt;
</span><span class="cx">             &lt;/widget&gt;
</span><span class="cx">            &lt;/item&gt;
</span></span></pre></div>
<a id="freeswitchtrunkfscommpreferencesprefsofiacpp"></a>
<div class="addfile"><h4>Added: freeswitch/trunk/fscomm/preferences/prefsofia.cpp (0 => 16191)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/fscomm/preferences/prefsofia.cpp                                (rev 0)
+++ freeswitch/trunk/fscomm/preferences/prefsofia.cpp        2010-01-07 05:17:52 UTC (rev 16191)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+#include &lt;QtGui&gt;
+#include &lt;fshost.h&gt;
+#include &quot;prefsofia.h&quot;
+
+PrefSofia::PrefSofia(Ui::PrefDialog *ui, QObject *parent) :
+        QObject(parent),
+        _ui(ui)
+{
+    _settings = new QSettings();
+}
+
+void PrefSofia::readConfig()
+{
+}
+
+void PrefSofia::writeConfig()
+{
+    _settings-&gt;beginGroup(&quot;FreeSWITCH/conf&quot;);
+    _settings-&gt;beginGroup(&quot;sofia.conf&quot;);
+
+
+
+    _settings-&gt;endGroup();
+    _settings-&gt;endGroup();
+}
</ins></span></pre></div>
<a id="freeswitchtrunkfscommpreferencesprefsofiah"></a>
<div class="addfile"><h4>Added: freeswitch/trunk/fscomm/preferences/prefsofia.h (0 => 16191)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/fscomm/preferences/prefsofia.h                                (rev 0)
+++ freeswitch/trunk/fscomm/preferences/prefsofia.h        2010-01-07 05:17:52 UTC (rev 16191)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+#ifndef PREFSOFIA_H
+#define PREFSOFIA_H
+
+#include &lt;QObject&gt;
+#include &quot;ui_prefdialog.h&quot;
+
+class QSettings;
+
+class PrefSofia : public QObject
+{
+Q_OBJECT
+public:
+    explicit PrefSofia(Ui::PrefDialog *ui, QObject *parent = 0);
+    void writeConfig();
+    void readConfig();
+
+private:
+    QSettings *_settings;
+    Ui::PrefDialog *_ui;
+
+};
+
+#endif // PREFSOFIA_H
</ins></span></pre>
</div>
</div>
<div id="footer">See you at ClueCon</div>

</body>
</html>