summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDmitrij D. Czarkoff <czarkoff@users.noreply.github.com>2016-11-27 18:14:44 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2016-11-27 18:14:44 +0100
commitf100272f6c6ecc6e7c4e2087ebaf71c903532458 (patch)
tree38e9270412b8ad000a37363b2079795c94899e06 /src
parent1203abd362a212b6cb6a02ff54f466d3a23dbf83 (diff)
config: if defined, use PREFIX in absolue paths (#177)
Diffstat (limited to 'src')
-rw-r--r--src/config.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c
index a13584a..cd6430a 100644
--- a/src/config.c
+++ b/src/config.c
@@ -433,7 +433,11 @@ static int core_config_template(struct re_printf *pf, const struct config *cfg)
"call_max_calls\t%u\n"
"\n"
"# Audio\n"
+#if defined (PREFIX)
+ "#audio_path\t\t" PREFIX "/share/baresip\n"
+#else
"#audio_path\t\t/usr/share/baresip\n"
+#endif
"audio_player\t\t%s\n"
"audio_source\t\t%s\n"
"audio_alert\t\t%s\n"