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

[#3649] Remove okd buildConfiguration from yaml parser

parent bb9135b9
Branches
Tags
No related merge requests found
......@@ -467,62 +467,4 @@ void YamlParser::mainNativeDataMapping(MappingNode *map) {
_debug("Done");
}
/*
void YamlParser::buildAccounts(SequenceNode *seq) {
// Each element in sequence is a new account to create
Sequence::iterator iterSeq = seq->getSequence()->begin();
MappingNode *map;
Key accTypeKey("type");
while(iterSeq != seq->getSequence()->end()) {
map = (MappingNode *)(*iterSeq);
ScalarNode * val = (ScalarNode *)(map->getValue(accTypeKey));
Value accountType = val->getValue();
iterSeq++;
if (accountType == "sip") {
// tmpAccount = AccountCreator::createAccount(AccountCreator::SIP_ACCOUNT, *iter);
_debug("Account is SIP!!!");
}
else if (accountType == "iax") {
// tmpAccount = AccountCreator::createAccount(AccountCreator::IAX_ACCOUNT, *iter);
}
std::string accountType;
accountType = getConfigString(*iter, CONFIG_ACCOUNT_TYPE);
if (accountType == "SIP") {
tmpAccount = AccountCreator::createAccount(
AccountCreator::SIP_ACCOUNT, *iter);
}
else if (accountType == "IAX") {
tmpAccount = AccountCreator::createAccount(
AccountCreator::IAX_ACCOUNT, *iter);
}
else {
_error ("Unknown %s param in config file (%s)", CONFIG_ACCOUNT_TYPE, accountType.c_str());
}
if (tmpAccount != NULL) {
_debug ("Loading account %s ", iter->c_str());
_accountMap[iter->c_str()] = tmpAccount;
// tmpAccount->setVoIPLink(SIPVoIPLink::instance (""));
tmpAccount->setVoIPLink();
nbAccount++;
}
iter++;
*/
// }
//}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment