aboutsummaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2016-05-08 15:34:14 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2016-05-08 15:53:00 +0200
commit57ba648ac4bad5d3f50249ecb0c24d0321282cb1 (patch)
treeb59961d8e28a729a0b3f9575862413b83d58b516 /src/common
parentbae12156a23bc18561a9fd81a550edfd988ef437 (diff)
C-Netz: Add tiny database to track if phones are online
Reject calls, if not online. Use an interval to check if the phones are still online.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/debug.c1
-rw-r--r--src/common/debug.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/common/debug.c b/src/common/debug.c
index 146662d..2749241 100644
--- a/src/common/debug.c
+++ b/src/common/debug.c
@@ -43,6 +43,7 @@ struct debug_cat {
{ "frame", "\033[0;36m" },
{ "call", "\033[1;37m" },
{ "mncc", "\033[1;32m" },
+ { "database", "\033[0;33m" },
};
int debuglevel = DEBUG_INFO;
diff --git a/src/common/debug.h b/src/common/debug.h
index 6351827..f0b0232 100644
--- a/src/common/debug.h
+++ b/src/common/debug.h
@@ -14,6 +14,7 @@
#define DFRAME 7
#define DCALL 8
#define DMNCC 9
+#define DDB 10
#define PDEBUG(cat, level, fmt, arg...) _printdebug(__FILE__, __FUNCTION__, __LINE__, cat, level, fmt, ## arg)
void _printdebug(const char *file, const char *function, int line, int cat, int level, const char *fmt, ...);