Explorar o código

core: derive default config name from -DNAME

The default config name was hard-wired to sip-router.cfg.

Reported-by: Klaus Darilion  klaus.mailinglists at pernau at
Andrei Pelinescu-Onciul %!s(int64=16) %!d(string=hai) anos
pai
achega
4c969ea99a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      config.h

+ 1 - 1
config.h

@@ -44,7 +44,7 @@
 #define SIP_PORT  5060
 #define SIPS_PORT 5061
 
-#define CFG_FILE CFG_DIR "sip-router.cfg"
+#define CFG_FILE CFG_DIR NAME ".cfg"
 
 #define TLS_PKEY_FILE "cert.pem" 
 #define TLS_CERT_FILE "cert.pem"