Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
51898f2e
Commit
51898f2e
authored
10 years ago
by
Stepan Salenikovich
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
daemon/src/ringdht/ringaccount.cpp
+2
-0
2 additions, 0 deletions
daemon/src/ringdht/ringaccount.cpp
daemon/src/ringdht/ringaccount.h
+1
-0
1 addition, 0 deletions
daemon/src/ringdht/ringaccount.h
with
3 additions
and
0 deletions
daemon/src/ringdht/ringaccount.cpp
+
2
−
0
View file @
51898f2e
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
daemon/src/ringdht/ringaccount.h
+
1
−
0
View file @
51898f2e
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment