[sr-dev] git:master:26ed56da: ctl: split the definition of default ctl socket

Daniel-Constantin Mierla miconda at gmail.com
Sat Oct 15 18:48:35 CEST 2016


Module: kamailio
Branch: master
Commit: 26ed56da94fde2df51fa0e12e67a790922116d37
URL: https://github.com/kamailio/kamailio/commit/26ed56da94fde2df51fa0e12e67a790922116d37

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/26ed56da94fde2df51fa0e12e67a790922116d37.diff
Patch: https://github.com/kamailio/kamailio/commit/26ed56da94fde2df51fa0e12e67a790922116d37.patch

---

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
 




More information about the sr-dev mailing list