Ver Fonte

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 há 16 anos atrás
pai
commit
4c969ea99a
1 ficheiros alterados com 1 adições e 1 exclusões
  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"