Skip to content
Snippets Groups Projects
Commit 51898f2e authored by Stepan Salenikovich's avatar Stepan Salenikovich
Browse files

daemon: add default RING bootstrap

Resf #63741

Change-Id: Ida90c129a94ec4aca059ab791c0009bb81594535
parent 54988138
No related branches found
No related tags found
No related merge requests found
...@@ -494,6 +494,8 @@ parseInt(const std::map<std::string, std::string> &details, const char *key, T & ...@@ -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) void RingAccount::setAccountDetails(const std::map<std::string, std::string> &details)
{ {
SIPAccountBase::setAccountDetails(details); SIPAccountBase::setAccountDetails(details);
if (hostname_ == "")
hostname_ = DHT_DEFAULT_BOOTSTRAP;
parseInt(details, CONFIG_DHT_PORT, dhtPort_); parseInt(details, CONFIG_DHT_PORT, dhtPort_);
if (dhtPort_ == 0) if (dhtPort_ == 0)
dhtPort_ = DHT_DEFAULT_PORT; dhtPort_ = DHT_DEFAULT_PORT;
......
...@@ -71,6 +71,7 @@ class RingAccount : public SIPAccountBase { ...@@ -71,6 +71,7 @@ class RingAccount : public SIPAccountBase {
public: public:
constexpr static const char * const ACCOUNT_TYPE = "RING"; constexpr static const char * const ACCOUNT_TYPE = "RING";
constexpr static const in_port_t DHT_DEFAULT_PORT = 4222; 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 { const char* getAccountType() const {
return ACCOUNT_TYPE; return ACCOUNT_TYPE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment