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.
This commit is contained in:
Andreas Eversberg
2016-05-08 15:34:14 +02:00
parent bae12156a2
commit 57ba648ac4
8 changed files with 265 additions and 18 deletions

View File

@@ -32,6 +32,7 @@
#include "../common/freiton.h"
#include "../common/besetztton.h"
#include "cnetz.h"
#include "database.h"
#include "sysinfo.h"
#include "dsp.h"
#include "telegramm.h"
@@ -292,6 +293,8 @@ fail:
if (use_mncc_sock)
mncc_exit();
flush_db();
/* destroy transceiver instance */
while (sender_head)
cnetz_destroy(sender_head);