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
e8ad9bad
Commit
e8ad9bad
authored
12 years ago
by
Alexandre Savard
Committed by
Tristan Matthews
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
#9623: fix storing tls port in config for normal account
parent
fe7739f7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
daemon/src/sip/sipaccount.cpp
+4
-5
4 additions, 5 deletions
daemon/src/sip/sipaccount.cpp
daemon/src/sip/sipaccount.h
+0
-5
0 additions, 5 deletions
daemon/src/sip/sipaccount.h
with
4 additions
and
10 deletions
daemon/src/sip/sipaccount.cpp
+
4
−
5
View file @
e8ad9bad
...
...
@@ -75,7 +75,6 @@ SIPAccount::SIPAccount(const std::string& accountID)
,
stunPort_
(
PJ_STUN_PORT
)
,
dtmfType_
(
OVERRTP_STR
)
,
tlsEnable_
(
"false"
)
,
tlsPort_
(
DEFAULT_SIP_TLS_PORT
)
,
tlsCaListFile_
()
,
tlsCertificateFile_
()
,
tlsPrivateKeyFile_
()
...
...
@@ -154,7 +153,7 @@ void SIPAccount::serialize(Conf::YamlEmitter *emitter)
ScalarNode
notSuppWarning
(
zrtpNotSuppWarning_
);
portstr
.
str
(
""
);
portstr
<<
tlsPort_
;
portstr
<<
tls
Listener
Port_
;
ScalarNode
tlsport
(
portstr
.
str
());
ScalarNode
certificate
(
tlsCertificateFile_
);
ScalarNode
calist
(
tlsCaListFile_
);
...
...
@@ -366,7 +365,9 @@ void SIPAccount::unserialize(const Conf::MappingNode *map)
if
(
tlsMap
)
{
tlsMap
->
getValue
(
TLS_ENABLE_KEY
,
&
tlsEnable_
);
tlsMap
->
getValue
(
TLS_PORT_KEY
,
&
tlsPort_
);
std
::
string
tlsPort
;
tlsMap
->
getValue
(
TLS_PORT_KEY
,
&
tlsPort
);
tlsListenerPort_
=
atoi
(
tlsPort
.
c_str
());
tlsMap
->
getValue
(
CERTIFICATE_KEY
,
&
tlsCertificateFile_
);
tlsMap
->
getValue
(
CALIST_KEY
,
&
tlsCaListFile_
);
tlsMap
->
getValue
(
CIPHERS_KEY
,
&
tlsCiphers_
);
...
...
@@ -639,8 +640,6 @@ pjsip_ssl_method SIPAccount::sslMethodStringToPjEnum(const std::string& method)
void
SIPAccount
::
initTlsConfiguration
()
{
// TLS listener is unique and should be only modified through IP2IP_PROFILE
tlsListenerPort_
=
tlsPort_
;
pjsip_tls_setting_default
(
&
tlsSetting_
);
pj_cstr
(
&
tlsSetting_
.
ca_list_file
,
tlsCaListFile_
.
c_str
());
...
...
This diff is collapsed.
Click to expand it.
daemon/src/sip/sipaccount.h
+
0
−
5
View file @
e8ad9bad
...
...
@@ -639,11 +639,6 @@ class SIPAccount : public Account {
*/
std
::
string
tlsEnable_
;
/**
* Specify the TLS port
*/
int
tlsPort_
;
/**
* Certificate autority file
*/
...
...
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