Changeset 137:a77c3add5299

Show
Ignore:
Timestamp:
08/22/08 22:27:08 (3 months ago)
Author:
Ralf Schlatterbeck <rsc@…>
Message:

Use getSipAudioTestCall (sip.testcall.audio in advanced config) from
config.xml instead of using a hard-coded test-call number "333" for the
"Make a test call" button in Tools/Configuration/Audio

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • wengophone/src/presentation/qt/config/QtAudioSettings.cpp

    r121 r137  
    4242#include <QtGui/QtGui> 
    4343 
    44 static const char * AUDIO_TEST_CALL = "333"; 
    45  
    4644static AudioDevice getAudioDeviceFromComboBox(QComboBox* comboBox, const std::list<AudioDevice> deviceList) { 
    4745        std::string concatString = comboBox->itemData(comboBox->currentIndex()).toString().toStdString(); 
     
    261259        CUserProfile * cUserProfile = _cWengoPhone.getCUserProfileHandler().getCUserProfile(); 
    262260        if ((cUserProfile) && (cUserProfile->getUserProfile().getActivePhoneLine())) { 
    263                 cUserProfile->getUserProfile().getActivePhoneLine()->makeCall(AUDIO_TEST_CALL); 
     261                Config & config = ConfigManager::getInstance().getCurrentConfig(); 
     262                std::string testnumber = config.getSipAudioTestCall (); 
     263                cUserProfile->getUserProfile().getActivePhoneLine()->makeCall(testnumber); 
    264264                QtWengoPhone* qWengoPhone = static_cast<QtWengoPhone*>(_cWengoPhone.getPresentation()); 
    265265                qWengoPhone->getWidget()->raise();