Module: kamailio
Branch: master
Commit: 084e68b337f3afbc841347a6d27398bacfaf191b
URL: https://github.com/kamailio/kamailio/commit/084e68b337f3afbc841347a6d27398b…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2015-02-17T10:02:20+01:00
ctl: use RUN_DIR env to set DEFAULT_CTL_SOCKET
---
Modified: modules/ctl/ctl_defaults.h
---
Diff: https://github.com/kamailio/kamailio/commit/084e68b337f3afbc841347a6d27398b…
Patch: https://github.com/kamailio/kamailio/commit/084e68b337f3afbc841347a6d27398b…
---
diff --git a/modules/ctl/ctl_defaults.h b/modules/ctl/ctl_defaults.h
index 01b6680..10498e3 100644
--- a/modules/ctl/ctl_defaults.h
+++ b/modules/ctl/ctl_defaults.h
@@ -4,10 +4,10 @@
/*listen by default on: */
#ifdef SRNAME
/* this is used when compiling sercmd tool */
-#define DEFAULT_CTL_SOCKET "unixs:/tmp/" SRNAME "_ctl"
+#define DEFAULT_CTL_SOCKET "unixs:" RUN_DIR "/" SRNAME "/" SRNAME "_ctl"
#else
/* this is used when compiling sip server */
-#define DEFAULT_CTL_SOCKET "unixs:/tmp/" NAME "_ctl"
+#define DEFAULT_CTL_SOCKET "unixs:" RUN_DIR "/" NAME "_ctl"
#endif
/* port used by default for tcp/udp if no port is explicitely specified */
#define DEFAULT_CTL_PORT 2049
Following #48 and #80
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/89
-- Commit Summary --
* ctl: use RUN_DIR env to set DEFAULT_CTL_SOCKET
* etc: set ctl "binrpc" to new /var/run/kamailio default value
* utils/kamctl: change fifo default path to /var/run/kamailio
* etc: change fifo default to /var/run/kamailio
-- File Changes --
M etc/kamailio-basic.cfg (4)
M etc/kamailio-oob.cfg (4)
M etc/kamailio.cfg (4)
M modules/ctl/ctl_defaults.h (4)
M utils/kamctl/kamctl.fifo (2)
M utils/kamctl/kamctlrc (4)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/89.patchhttps://github.com/kamailio/kamailio/pull/89.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/89