Module: kamailio
Branch: master
Commit: 26ed56da94fde2df51fa0e12e67a790922116d37
URL:
https://github.com/kamailio/kamailio/commit/26ed56da94fde2df51fa0e12e67a790…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-10-15T18:31:32+02:00
ctl: split the definition of default ctl socket
---
Modified: modules/ctl/ctl_defaults.h
---
Diff:
https://github.com/kamailio/kamailio/commit/26ed56da94fde2df51fa0e12e67a790…
Patch:
https://github.com/kamailio/kamailio/commit/26ed56da94fde2df51fa0e12e67a790…
---
diff --git a/modules/ctl/ctl_defaults.h b/modules/ctl/ctl_defaults.h
index b41aa53..c20fd17 100644
--- a/modules/ctl/ctl_defaults.h
+++ b/modules/ctl/ctl_defaults.h
@@ -2,13 +2,19 @@
#ifndef __ctl_defaults_h
#define __ctl_defaults_h
/*listen by default on: */
+
+#define DEFAULT_CTL_SOCKET_PROTO "unixs:"
+
#ifdef SRNAME
/* this is used when compiling sercmd tool */
-#define DEFAULT_CTL_SOCKET "unixs:" RUN_DIR "/" SRNAME
"_ctl"
+#define DEFAULT_CTL_SOCKET_NAME SRNAME "_ctl"
#else
/* this is used when compiling sip server */
-#define DEFAULT_CTL_SOCKET "unixs:" RUN_DIR "/" NAME
"_ctl"
+#define DEFAULT_CTL_SOCKET_NAME NAME "_ctl"
#endif
+
+#define DEFAULT_CTL_SOCKET DEFAULT_CTL_SOCKET_PROTO RUN_DIR "/"
DEFAULT_CTL_SOCKET_NAME
+
/* port used by default for tcp/udp if no port is explicitely specified */
#define DEFAULT_CTL_PORT 2049