Commit graph

67 commits

Author SHA1 Message Date
Sylvain Berfini
be6d6b47b3 Added a way to not dump some chosen sections/entries when converting lpc to xml 2016-04-27 12:19:38 +02:00
Gautier Pelloux-Prayer
1537a5228a lpconfig: add lp_config_dump 2016-04-05 11:56:48 +02:00
François Grisez
872fe00eda Fixes crash when starting a call at the first time 2016-01-08 17:29:18 +01:00
Sylvain Berfini
e82e187f9b Added set overwrite flags for section for convenience 2015-11-19 16:50:30 +01:00
Sylvain Berfini
07fd8f61fa Added methods to set/get overwrite flag in LpConfig (used when dumping config as xml) 2015-11-19 16:28:14 +01:00
Sylvain Berfini
67c22d57ee Changes to be able to call lp_config_get_sections_names from python wrapper 2015-10-21 15:10:02 +02:00
Sylvain Berfini
f999712c5b Added new functions in lpconfig to dump xml and get a list of sections' names 2015-10-21 13:58:36 +02:00
Gautier Pelloux-Prayer
8dd252fd7b lpconfig: avoid duplicate comments in linphonerc 2015-10-05 11:50:42 +02:00
Ghislain MARY
61ac1f8173 Fix compilation warnings when building for Windows 10. 2015-10-01 14:29:00 +02:00
Gautier Pelloux-Prayer
8a2f20ceae tester: add before_each / after_each methods to check memory leaks and fix various ones 2015-09-22 13:54:29 +02:00
Margaux Clerc
e369f0e284 Disable realpath for android 2015-08-14 13:18:08 +02:00
Sylvain Berfini
6ef6e97043 Merge branch 'dev_bb10'
Conflicts:
	mediastreamer2
	oRTP
2015-08-13 16:33:16 +02:00
François Grisez
4b9bb8f8e9 Fixes fopen() calls on NULL paths and likely memory corrupions concerning dirname() missuses 2015-08-10 00:16:14 +02:00
Ghislain MARY
f3a4fc6b4a Fix build with Visual Studio. 2015-08-03 11:35:25 +02:00
François Grisez
6d3d8a8f3d Fix regression concerning the reading and the creation of .linphonerc
The .linphonerc file was not created at the first launch of Linphone.
The realpath function fails and returns NULL when passing a path which points on
an empty file.
2015-08-02 23:16:10 +02:00
Sylvain Berfini
a58201f10a Fix crash on bb10 with current realpath use 2015-08-01 18:17:47 +02:00
Gautier Pelloux-Prayer
4eda45d82d lpconfig.c: use lp_realpath stub beacuse windows does not support/implement realpath and use proper string allocator 2015-07-28 13:03:22 +02:00
Gautier Pelloux-Prayer
6ce479b312 lpconfig.c: when reading linphonerc, we must follow symlinks 2015-07-28 11:48:32 +02:00
Ghislain MARY
8722f8a990 Add Visual Studio project for Windows 10. 2015-07-03 16:56:14 +02:00
Gautier Pelloux-Prayer
4e974956cb lpconfig.c: fix ISO C90 error 2015-05-11 17:00:04 +02:00
Gautier Pelloux-Prayer
d6cdbe46c4 lpconfig.c: add lp_config_relative_file_exists and use it to avoid false-positive logs for .linphone.ecstate file 2015-05-11 10:27:23 +02:00
Ghislain MARY
9133e161dd Fix crash on Windows when no linphonerc file is configured. 2015-04-07 15:08:26 +02:00
Guillaume BIENKOWSKI
13db966940 Fix comment handling when the comment is the last item in at the end of a file without endline 2015-04-01 13:12:51 +02:00
Ghislain MARY
706ed3cfa1 Test if the filename of the lpconfig is not NULL before trying to read a relative file. 2015-03-23 11:47:32 +01:00
Simon Morlat
8f633b21fc fix stack overflow. 2014-12-18 16:17:26 +01:00
François Grisez
db5fc6ea89 Fix the reading of .linpohne.ecstate 2014-12-12 12:12:44 +01:00
Simon Morlat
d184192b9f fix linphonerc renaming for windows 2014-10-15 15:08:51 +02:00
Simon Morlat
08539a0895 atomically sync the lpconfig on disk 2014-10-15 10:57:08 +02:00
Sylvain Berfini
a7e257bcab Fix compil for windows phone 2014-09-23 11:20:00 +02:00
Ghislain MARY
36de60130b Fix compilation on Windows. 2014-09-10 10:00:56 +02:00
François Grisez
112b93a790 Fix compilation for CentOS 2014-09-10 09:35:51 +02:00
François Grisez
92792ef19f Fix compilation with MinGW 2014-09-09 13:28:13 +02:00
François Grisez
75eee41a76 Fix bug #1426: Echo cancelation state blob is too big for being in linphonerc
The state of the echo canceler is stored in a file beside .linphonerc
The file is named .linphone.ecstate
2014-09-09 12:27:19 +02:00
Guillaume BIENKOWSKI
3c32fd4397 Fix remote provisioning zero-length values. Fixes #1457 again. 2014-09-04 16:10:34 +02:00
Guillaume BIENKOWSKI
6de4c89510 Don't allow values to be empty in a linphonerc file.
Added unit tests for this.

Fixes #1457
2014-09-04 15:35:44 +02:00
Simon Morlat
da54b475d7 improve management of comments in linphonerc parser 2014-05-21 15:43:58 +02:00
Ghislain MARY
28e99d08e1 Fix compilation with Visual Studio. 2014-04-22 16:34:43 +02:00
Simon Morlat
c1ef06eb8f add refcounting to LpConfig 2014-04-18 16:05:37 +02:00
Guillaume BIENKOWSKI
08645f8eea Add lp_config_new_from_buffer 2014-04-11 16:21:02 +02:00
Simon Morlat
3013fd8ae2 allow configuration of root_ca before provisioning, so that it can be used for https fetching 2014-03-26 17:51:47 +01:00
Sylvain Berfini
7630d39863 Added possibility to set parameters key=value for sections 2014-03-07 15:46:07 +01:00
Sylvain Berfini
cac1551acd Reworked lpconfig global default values section to have one default value for each section + use proxy default value when creating proxy config 2014-03-03 10:54:56 +01:00
Ghislain MARY
92f81c8d07 Use right functions to free and duplicate strings. 2014-02-03 17:47:50 +01:00
Ghislain MARY
ec2838cc96 Free memory allocated by ortp_strdup() with ortp_free() instead of free() to prevent crashes on Windows. 2014-01-15 14:50:44 +01:00
Simon Morlat
c53e94d504 update documentation for linphone-deps generation on windows
fix compile errors with mingw
2013-08-13 09:47:38 +02:00
Ghislain MARY
9c66aeb8b2 Merge branch 'master' of git.linphone.org:linphone into belle-sip 2013-04-11 14:02:08 +02:00
Ghislain MARY
dfb316ea7c Add the linphone_core_new_with_config() function to instantiate a LinphoneCore given an already existing LpConfig.
This enables the creation of the LpConfig before creating the LinphoneCore.
It is useful on some systems to read some configuration parameters and perform some customization before creating the LinphoneCore.

The LpConfig can now also be created given a factory config filename using the new lp_config_new_with_factory() function.
2013-04-11 15:41:43 +02:00
Ghislain MARY
6702bf8a32 Merge branch 'master' of git.linphone.org:linphone into belle-sip 2013-04-02 15:52:21 +02:00
Ghislain MARY
63117d28af Use correct mode parameter to fopen() call ("r+" instead of "rw"). 2013-04-02 15:41:14 +02:00
Jehan Monnier
d69d96a0ca Merge remote-tracking branch 'public/master' into belle-sip 2013-03-15 17:50:37 +01:00