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
420f1af2
Commit
420f1af2
authored
13 years ago
by
Rafaël Carré
Browse files
Options
Downloads
Patches
Plain Diff
* #6408 : store/restore authenticationUsername from config file
parent
8d5f2fce
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sflphone-common/src/account.h
+1
-0
1 addition, 0 deletions
sflphone-common/src/account.h
sflphone-common/src/sip/sipaccount.cpp
+3
-0
3 additions, 0 deletions
sflphone-common/src/sip/sipaccount.cpp
with
4 additions
and
0 deletions
sflphone-common/src/account.h
+
1
−
0
View file @
420f1af2
...
...
@@ -139,6 +139,7 @@ const std::string aliasKey ("alias");
const
std
::
string
typeKey
(
"type"
);
const
std
::
string
idKey
(
"id"
);
const
std
::
string
usernameKey
(
"username"
);
const
std
::
string
authenticationUsernameKey
(
"authenticationUsername"
);
const
std
::
string
passwordKey
(
"password"
);
const
std
::
string
hostnameKey
(
"hostname"
);
const
std
::
string
accountEnableKey
(
"enable"
);
...
...
This diff is collapsed.
Click to expand it.
sflphone-common/src/sip/sipaccount.cpp
+
3
−
0
View file @
420f1af2
...
...
@@ -165,6 +165,7 @@ void SIPAccount::serialize (Conf::YamlEmitter *emitter)
Conf
::
ScalarNode
id
(
Account
::
_accountID
);
Conf
::
ScalarNode
username
(
Account
::
_username
);
Conf
::
ScalarNode
authenticationUsername
(
_authenticationUsername
);
Conf
::
ScalarNode
password
(
Account
::
_password
);
Conf
::
ScalarNode
alias
(
Account
::
_alias
);
Conf
::
ScalarNode
hostname
(
Account
::
_hostname
);
...
...
@@ -223,6 +224,7 @@ void SIPAccount::serialize (Conf::YamlEmitter *emitter)
accountmap
.
setKeyValue
(
typeKey
,
&
type
);
accountmap
.
setKeyValue
(
idKey
,
&
id
);
accountmap
.
setKeyValue
(
usernameKey
,
&
username
);
accountmap
.
setKeyValue
(
authenticationUsernameKey
,
&
authenticationUsername
);
accountmap
.
setKeyValue
(
passwordKey
,
&
password
);
accountmap
.
setKeyValue
(
hostnameKey
,
&
hostname
);
accountmap
.
setKeyValue
(
accountEnableKey
,
&
enable
);
...
...
@@ -294,6 +296,7 @@ void SIPAccount::unserialize (Conf::MappingNode *map)
map
->
getValue
(
typeKey
,
&
_type
);
map
->
getValue
(
idKey
,
&
_accountID
);
map
->
getValue
(
usernameKey
,
&
_username
);
map
->
getValue
(
authenticationUsernameKey
,
&
_authenticationUsername
);
map
->
getValue
(
passwordKey
,
&
_password
);
map
->
getValue
(
hostnameKey
,
&
_hostname
);
map
->
getValue
(
accountEnableKey
,
&
_enabled
);
...
...
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