Revision
17137
Author
jmesquita
Date
2010-03-29 22:52:45 -0500 (Mon, 29 Mar 2010)

Log Message

Initial codec configuration querying modules. Not functional yet.

Modified Paths

Diff

Modified: freeswitch/trunk/fscomm/mainwindow.cpp (17136 => 17137)


--- freeswitch/trunk/fscomm/mainwindow.cpp	2010-03-30 03:13:49 UTC (rev 17136)
+++ freeswitch/trunk/fscomm/mainwindow.cpp	2010-03-30 03:52:45 UTC (rev 17137)
@@ -297,6 +297,7 @@
                              tr("Portaudio could not be loaded. Please check if mod_portaudio is properly compiled."),
                              QMessageBox::Ok);
     }
+
 }
 
 void MainWindow::paAnswer()

Modified: freeswitch/trunk/fscomm/preferences/prefdialog.ui (17136 => 17137)


--- freeswitch/trunk/fscomm/preferences/prefdialog.ui	2010-03-30 03:13:49 UTC (rev 17136)
+++ freeswitch/trunk/fscomm/preferences/prefdialog.ui	2010-03-30 03:52:45 UTC (rev 17137)
@@ -201,7 +201,7 @@
        <item>
         <widget class="QTabWidget" name="tabWidget">
          <property name="currentIndex">
-          <number>0</number>
+          <number>2</number>
          </property>
          <widget class="QWidget" name="tab">
           <attribute name="title">
@@ -525,6 +525,16 @@
              </item>
             </widget>
            </item>
+           <item row="2" column="0">
+            <widget class="QLabel" name="label_42">
+             <property name="text">
+              <string>Codecs</string>
+             </property>
+            </widget>
+           </item>
+           <item row="2" column="1">
+            <widget class="QListWidget" name="listAvailableCodecs"/>
+           </item>
           </layout>
          </widget>
          <widget class="QWidget" name="tab_3">

Modified: freeswitch/trunk/fscomm/preferences/prefsofia.cpp (17136 => 17137)


--- freeswitch/trunk/fscomm/preferences/prefsofia.cpp	2010-03-30 03:13:49 UTC (rev 17136)
+++ freeswitch/trunk/fscomm/preferences/prefsofia.cpp	2010-03-30 03:52:45 UTC (rev 17137)
@@ -68,6 +68,15 @@
     settings.endGroup();
     settings.endGroup();
 
+    /* This is here to show the proper codec config! */
+    const switch_codec_implementation_t *codecs[SWITCH_MAX_CODECS];
+    uint32_t num_codecs = switch_loadable_module_get_codecs(codecs, sizeof(codecs) / sizeof(codecs[0]));
+    uint32_t x;
+
+    for (x = 0; x < num_codecs; x++) {
+        _ui->listAvailableCodecs->addItem(codecs[x]->iananame);
+    }
+
 }
 
 void PrefSofia::writeConfig()