Skip to content
Snippets Groups Projects
Commit 0c198633 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

*# 7658: fixed compilation for --without-iax2

parent 241c4065
No related branches found
No related tags found
No related merge requests found
...@@ -2550,8 +2550,10 @@ std::string ManagerImpl::addAccount(const std::map<std::string, std::string>& de ...@@ -2550,8 +2550,10 @@ std::string ManagerImpl::addAccount(const std::map<std::string, std::string>& de
if (accountType == "SIP") if (accountType == "SIP")
newAccount = new SIPAccount(newAccountID); newAccount = new SIPAccount(newAccountID);
#if HAVE_IAX
else if (accountType == "IAX") else if (accountType == "IAX")
newAccount = new IAXAccount(newAccountID); newAccount = new IAXAccount(newAccountID);
#endif
else { else {
ERROR("Unknown %s param when calling addAccount(): %s", ERROR("Unknown %s param when calling addAccount(): %s",
CONFIG_ACCOUNT_TYPE, accountType.c_str()); CONFIG_ACCOUNT_TYPE, accountType.c_str());
...@@ -2735,9 +2737,11 @@ void ManagerImpl::loadAccountMap(Conf::YamlParser *parser) ...@@ -2735,9 +2737,11 @@ void ManagerImpl::loadAccountMap(Conf::YamlParser *parser)
Account *a; Account *a;
#if HAVE_IAX
if (accountType == "IAX") if (accountType == "IAX")
a = new IAXAccount(accountid); a = new IAXAccount(accountid);
else // assume SIP else // assume SIP
#endif
a = new SIPAccount(accountid); a = new SIPAccount(accountid);
accountMap_[accountid] = a; accountMap_[accountid] = a;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment