Commit 51898f2e authored by Stepan Salenikovich's avatar Stepan Salenikovich

daemon: add default RING bootstrap

Resf #63741

Change-Id: Ida90c129a94ec4aca059ab791c0009bb81594535
parent 54988138
......@@ -494,6 +494,8 @@ parseInt(const std::map<std::string, std::string> &details, const char *key, T &
void RingAccount::setAccountDetails(const std::map<std::string, std::string> &details)
{
SIPAccountBase::setAccountDetails(details);
if (hostname_ == "")
hostname_ = DHT_DEFAULT_BOOTSTRAP;
parseInt(details, CONFIG_DHT_PORT, dhtPort_);
if (dhtPort_ == 0)
dhtPort_ = DHT_DEFAULT_PORT;
......
......@@ -71,6 +71,7 @@ class RingAccount : public SIPAccountBase {
public:
constexpr static const char * const ACCOUNT_TYPE = "RING";
constexpr static const in_port_t DHT_DEFAULT_PORT = 4222;
constexpr static const char * const DHT_DEFAULT_BOOTSTRAP = "bootstrap.ring.cx";
const char* getAccountType() const {
return ACCOUNT_TYPE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment