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

5
src/cnetz/database.h Normal file
View File

@@ -0,0 +1,5 @@
void update_db(cnetz_t *cnetz, uint8_t futln_nat, uint8_t futln_fuvst, uint16_t futln_rest, int busy, int failed);
int find_db(uint8_t futln_nat, uint8_t futln_fuvst, uint16_t futln_rest);
void flush_db(void);