Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
liblinphone
Commits
d963ea74
Commit
d963ea74
authored
13 years ago
by
Simon Morlat
Browse files
Options
Download
Patches
Plain Diff
zrtp cache for linphonec
parent
d3042884
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
console/linphonec.c
+6
-0
console/linphonec.c
with
6 additions
and
0 deletions
console/linphonec.c
+
6
−
0
View file @
d963ea74
...
...
@@ -160,6 +160,7 @@ LPC_AUTH_STACK auth_stack;
static
int
trace_level
=
0
;
static
char
*
logfile_name
=
NULL
;
static
char
configfile_name
[
PATH_MAX
];
static
char
zrtpsecrets
[
PATH_MAX
];
static
const
char
*
factory_configfile_name
=
NULL
;
static
char
*
sip_addr_to_call
=
NULL
;
/* for autocall */
static
int
window_id
=
0
;
/* 0=standalone window, or window id for embedding video */
...
...
@@ -667,6 +668,8 @@ linphonec_init(int argc, char **argv)
#ifndef _WIN32
snprintf
(
configfile_name
,
PATH_MAX
,
"%s/.linphonerc"
,
getenv
(
"HOME"
));
snprintf
(
zrtpsecrets
,
PATH_MAX
,
"%s/.linphone-zidcache"
,
getenv
(
"HOME"
));
#elif defined(_WIN32_WCE)
strncpy
(
configfile_name
,
PACKAGE_DIR
"
\\
linphonerc"
,
PATH_MAX
);
mylogfile
=
fopen
(
PACKAGE_DIR
"
\\
"
"linphonec.log"
,
"w"
);
...
...
@@ -674,6 +677,8 @@ linphonec_init(int argc, char **argv)
#else
snprintf
(
configfile_name
,
PATH_MAX
,
"%s/Linphone/linphonerc"
,
getenv
(
"APPDATA"
));
snprintf
(
zrtpsecrets
,
PATH_MAX
,
"%s/Linphone/linphone-zidcache"
,
getenv
(
"APPDATA"
));
#endif
/* Handle configuration filename changes */
switch
(
handle_configfile_migration
())
...
...
@@ -728,6 +733,7 @@ linphonec_init(int argc, char **argv)
* Initialize linphone core
*/
linphonec
=
linphone_core_new
(
&
linphonec_vtable
,
configfile_name
,
factory_configfile_name
,
NULL
);
linphone_core_set_zrtp_secrets_file
(
linphonec
,
zrtpsecrets
);
linphone_core_enable_video
(
linphonec
,
vcap_enabled
,
display_enabled
);
if
(
display_enabled
&&
window_id
!=
0
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets