|
@@ -4,7 +4,13 @@
|
|
#ifndef __ctl_defaults_h
|
|
#ifndef __ctl_defaults_h
|
|
#define __ctl_defaults_h
|
|
#define __ctl_defaults_h
|
|
/*listen by default on: */
|
|
/*listen by default on: */
|
|
|
|
+#ifdef SRNAME
|
|
|
|
+/* this is used when compiling sercmd tool */
|
|
|
|
+#define DEFAULT_CTL_SOCKET "unixs:/tmp/" SRNAME "_ctl"
|
|
|
|
+#else
|
|
|
|
+/* this is used when compiling sip server */
|
|
#define DEFAULT_CTL_SOCKET "unixs:/tmp/" NAME "_ctl"
|
|
#define DEFAULT_CTL_SOCKET "unixs:/tmp/" NAME "_ctl"
|
|
|
|
+#endif
|
|
/* port used by default for tcp/udp if no port is explicitely specified */
|
|
/* port used by default for tcp/udp if no port is explicitely specified */
|
|
#define DEFAULT_CTL_PORT 2049
|
|
#define DEFAULT_CTL_PORT 2049
|
|
|
|
|