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
53387b6a
Commit
53387b6a
authored
14 years ago
by
Alexandre Savard
Browse files
Options
Downloads
Patches
Plain Diff
[#3931] Fix TLS, remove old boolean _tlsEnabled
parent
d36d6b9e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sflphone-common/src/sip/sipaccount.cpp
+6
-4
6 additions, 4 deletions
sflphone-common/src/sip/sipaccount.cpp
sflphone-common/src/sip/sipaccount.h
+0
-10
0 additions, 10 deletions
sflphone-common/src/sip/sipaccount.h
with
6 additions
and
14 deletions
sflphone-common/src/sip/sipaccount.cpp
+
6
−
4
View file @
53387b6a
...
...
@@ -99,7 +99,7 @@ SIPAccount::SIPAccount (const AccountID& accountID)
,
_authenticationUsername
(
""
)
,
_tlsSetting
(
NULL
)
,
_dtmfType
(
OVERRTP
)
,
_tlsEnable
(
""
)
,
_tlsEnable
(
"
false
"
)
,
_tlsPortStr
(
DEFAULT_SIP_TLS_PORT
)
,
_tlsCaListFile
(
""
)
,
_tlsCertificateFile
(
""
)
...
...
@@ -114,7 +114,6 @@ SIPAccount::SIPAccount (const AccountID& accountID)
,
_tlsNegotiationTimeoutSec
(
"2"
)
,
_tlsNegotiationTimeoutMsec
(
"0"
)
,
_stunServer
(
DFT_STUN_SERVER
)
,
_tlsEnabled
(
false
)
,
_stunEnabled
(
false
)
,
_srtpEnabled
(
false
)
,
_srtpKeyExchange
(
"sdes"
)
...
...
@@ -1025,7 +1024,8 @@ int SIPAccount::registerVoIPLink()
initCredential
();
// Init TLS settings if the user wants to use TLS
if
(
_tlsEnabled
)
{
if
(
_tlsEnable
==
"true"
)
{
_debug
(
"Account: TLS is ennabled for accounr %s"
,
getAccountID
().
c_str
());
_transportType
=
PJSIP_TRANSPORT_TLS
;
initTlsConfiguration
();
}
...
...
@@ -1093,6 +1093,8 @@ pjsip_ssl_method SIPAccount::sslMethodStringToPjEnum (const std::string& method)
void
SIPAccount
::
initTlsConfiguration
(
void
)
{
_debug
(
"SipAccount: Init TLS configuration"
);
/*
* Initialize structure to zero
*/
...
...
@@ -1156,7 +1158,7 @@ void SIPAccount::loadConfig()
if
(
_registrationExpire
.
empty
())
_registrationExpire
=
DFT_EXPIRE_VALUE
;
if
(
_tlsEnable
d
)
{
if
(
_tlsEnable
==
"true"
)
{
initTlsConfiguration
();
_transportType
=
PJSIP_TRANSPORT_TLS
;
}
else
{
...
...
This diff is collapsed.
Click to expand it.
sflphone-common/src/sip/sipaccount.h
+
0
−
10
View file @
53387b6a
...
...
@@ -806,18 +806,8 @@ class SIPAccount : public Account
std
::
string
_tlsNegotiationTimeoutMsec
;
std
::
string
_stunServer
;
bool
_tlsEnabled
;
bool
_stunEnabled
;
// std::string _routeset;
// std::string _realm;
// std::string _tlsListenerPort;
// std::string _routeSet;
// std::string _dtmfType;
bool
_srtpEnabled
;
std
::
string
_srtpKeyExchange
;
bool
_srtpFallback
;
...
...
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