diff --git a/sflphone-common/src/config/yamlparser.cpp b/sflphone-common/src/config/yamlparser.cpp index a132d08f7c8e0ac41b9e802e330ec3ebfef9caf2..62f9ee23a4ab9fdc44edce3a59cd5d55db6a9e93 100644 --- a/sflphone-common/src/config/yamlparser.cpp +++ b/sflphone-common/src/config/yamlparser.cpp @@ -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++; - */ -// } - -//} }