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
3e14b2fd
Commit
3e14b2fd
authored
17 years ago
by
Emmanuel Milou
Browse files
Options
Downloads
Patches
Plain Diff
Clean the user config file from unuseful stuff (.sflphone/sflphonedrc)
parent
ac6ad940
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/managerimpl.cpp
+2
-5
2 additions, 5 deletions
src/managerimpl.cpp
src/user_cfg.h
+17
-30
17 additions, 30 deletions
src/user_cfg.h
with
19 additions
and
35 deletions
src/managerimpl.cpp
+
2
−
5
View file @
3e14b2fd
...
...
@@ -1081,13 +1081,10 @@ ManagerImpl::initConfigFile (void)
fill_config_int
(
VOLUME_MICRO
,
DFT_VOL_MICRO_STR
);
section
=
PREFERENCES
;
fill_config_str
(
SKIN_CHOICE
,
DFT_SKIN
);
fill_config_int
(
CONFIRM_QUIT
,
YES_STR
);
fill_config_str
(
ZONE_TONE
,
DFT_ZONE
);
fill_config_int
(
CHECKED_TRAY
,
NO_STR
);
fill_config_str
(
VOICEMAIL_NUM
,
DFT_VOICEMAIL
);
fill_config_int
(
CONFIG_ZEROCONF
,
CONFIG_ZEROCONF_DEFAULT_STR
);
fill_config_int
(
CONFIG_RINGTONE
,
CONFIG_RINGTONE_DEFAULT
);
fill_config_int
(
CONFIG_RINGTONE
,
YES_STR
);
// Loads config from ~/.sflphone/sflphonedrc or so..
if
(
createSettingsPath
()
==
1
)
{
...
...
@@ -1375,7 +1372,7 @@ ManagerImpl::isRingtoneEnabled( void )
void
ManagerImpl
::
ringtoneEnabled
(
void
)
{
(
getConfigInt
(
PREFERENCES
,
CONFIG_RINGTONE
)
==
RINGTONE_ENABLED
)
?
setConfig
(
PREFERENCES
,
CONFIG_RINGTONE
,
0
)
:
setConfig
(
PREFERENCES
,
CONFIG_RINGTONE
,
1
);
(
getConfigInt
(
PREFERENCES
,
CONFIG_RINGTONE
)
==
RINGTONE_ENABLED
)
?
setConfig
(
PREFERENCES
,
CONFIG_RINGTONE
,
NO_STR
)
:
setConfig
(
PREFERENCES
,
CONFIG_RINGTONE
,
YES_STR
);
}
int
...
...
This diff is collapsed.
Click to expand it.
src/user_cfg.h
+
17
−
30
View file @
3e14b2fd
...
...
@@ -42,16 +42,8 @@
// Fields to fill
//#define VOIP_LINK_ID "VoIPLink.index"
#define SYMMETRIC "VoIPLink.symmetric"
//#define FULL_NAME "SIP.fullName"
//#define USER_PART "SIP.userPart"
//#define AUTH_USER_NAME "SIP.username"
//#define PASSWORD "SIP.password"
//#define HOST_PART "SIP.hostPart"
//#define PROXY "SIP.proxy"
//#define AUTO_REGISTER "SIP.autoregister"
#define PLAY_DTMF "DTMF.playDtmf"
#define PLAY_TONES "DTMF.playTones"
#define PULSE_LENGTH "DTMF.pulseLength"
...
...
@@ -71,10 +63,7 @@
// speakers and volume 0 to 100
#define VOLUME_SPKR "Volume.speakers"
#define VOLUME_MICRO "Volume.micro"
#define SKIN_CHOICE "Themes.skinChoice"
#define CONFIRM_QUIT "Options.confirmQuit"
#define ZONE_TONE "Options.zoneToneChoice"
#define CHECKED_TRAY "Options.checkedTray"
#define VOICEMAIL_NUM "Options.voicemailNumber"
// zeroconfig module
#define CONFIG_ZEROCONF "Zeroconf.enable"
...
...
@@ -83,7 +72,6 @@
// Default values
#define EMPTY_FIELD ""
#define DFT_STUN_SERVER "stun.fwdnet.net:3478"
#define CONFIG_RINGTONE_DEFAULT "1"
#define YES_STR "1"
#define NO_STR "0"
#define DFT_PULSE_LENGTH_STR "250"
...
...
@@ -94,7 +82,6 @@
#define DFT_VOL_MICRO_STR "100"
#define DFT_RINGTONE "konga.ul"
#define DFT_SKIN "metal"
#define DFT_ZONE "North America"
#define DFT_VOICEMAIL "888"
#define DFT_FRAME_SIZE "20"
...
...
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