C-Netz: Work on system informations, metering and call queues

- Make system informations configurable
- Simulate call mertering
- Support for call queues on busy voice channels
This commit is contained in:
Andreas Eversberg
2017-08-26 17:48:13 +02:00
parent 3bfba37fff
commit dfdad21e3f
11 changed files with 573 additions and 192 deletions

View File

@@ -36,6 +36,7 @@
#define MELDE_MAXIMAL 3
typedef struct cnetz_database {
struct cnetz_database *next;
uint8_t futln_nat; /* who ... */
uint8_t futln_fuvst;
@@ -154,10 +155,10 @@ int find_db(uint8_t futln_nat, uint8_t futln_fuvst, uint16_t futln_rest)
if (db->futln_nat == futln_nat
&& db->futln_fuvst == futln_fuvst
&& db->futln_rest == futln_rest)
return 1;
return db->extended;
db = db->next;
}
return 0;
return -1;
}
void flush_db(void)