Skip to content
Snippets Groups Projects
Commit 174c963f authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#3649] Fix account registration protection in case IAX not supported

parent 8404fe28
No related branches found
No related tags found
No related merge requests found
...@@ -49,18 +49,10 @@ Account::~Account() ...@@ -49,18 +49,10 @@ Account::~Account()
void Account::loadConfig() { void Account::loadConfig() {
std::string p; // If IAX is not supported, do not register this account
#ifndef USE_IAX
p = Manager::instance().getConfigString (_accountID , CONFIG_ACCOUNT_TYPE); if (_type == "IAX")
#ifdef USE_IAX
_enabled = (Manager::instance().getConfigString (_accountID, CONFIG_ACCOUNT_ENABLE) == "true") ? true : false;
#else
if (p == "IAX")
_enabled = false; _enabled = false;
else
_enabled = (Manager::instance().getConfigString (_accountID, CONFIG_ACCOUNT_ENABLE) == "true") ? true : false;
#endif #endif
loadAudioCodecs (); loadAudioCodecs ();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment