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()
void Account::loadConfig() {
std::string p;
p = Manager::instance().getConfigString (_accountID , CONFIG_ACCOUNT_TYPE);
#ifdef USE_IAX
_enabled = (Manager::instance().getConfigString (_accountID, CONFIG_ACCOUNT_ENABLE) == "true") ? true : false;
#else
if (p == "IAX")
// If IAX is not supported, do not register this account
#ifndef USE_IAX
if (_type == "IAX")
_enabled = false;
else
_enabled = (Manager::instance().getConfigString (_accountID, CONFIG_ACCOUNT_ENABLE) == "true") ? true : false;
#endif
loadAudioCodecs ();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment