Add info key 'i' to show some states.
Currently showing C-Netz attached subscribers
This commit is contained in:
@@ -1065,3 +1065,5 @@ again:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void dump_info(void) {}
|
||||||
|
|
||||||
|
@@ -478,3 +478,5 @@ void call_rx_audio(int callref, int16_t *samples, int count)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void dump_info(void) {}
|
||||||
|
|
||||||
|
@@ -926,3 +926,5 @@ void call_rx_audio(int callref, int16_t *samples, int count)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void dump_info(void) {}
|
||||||
|
|
||||||
|
@@ -155,3 +155,19 @@ void flush_db(void)
|
|||||||
remove_db(cnetz_db_head);
|
remove_db(cnetz_db_head);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void dump_db(void)
|
||||||
|
{
|
||||||
|
cnetz_db_t *db = cnetz_db_head;
|
||||||
|
|
||||||
|
PDEBUG(DDB, DEBUG_NOTICE, "Dump of subscriber database:\n");
|
||||||
|
if (!db) {
|
||||||
|
PDEBUG(DDB, DEBUG_NOTICE, " - No subscribers attached!\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
while (db) {
|
||||||
|
PDEBUG(DDB, DEBUG_NOTICE, " - Subscriber '%d,%d,%d' is attached.\n", db->futln_nat, db->futln_fuvst, db->futln_rest);
|
||||||
|
db = db->next;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -2,4 +2,5 @@
|
|||||||
void update_db(cnetz_t *cnetz, uint8_t futln_nat, uint8_t futln_fuvst, uint16_t futln_rest, int busy, int failed);
|
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);
|
int find_db(uint8_t futln_nat, uint8_t futln_fuvst, uint16_t futln_rest);
|
||||||
void flush_db(void);
|
void flush_db(void);
|
||||||
|
void dump_db(void);
|
||||||
|
|
||||||
|
@@ -81,6 +81,7 @@ void print_help(const char *arg0)
|
|||||||
printf(" we just accept any card. With this we get the vendor IDs of the phone.\n");
|
printf(" we just accept any card. With this we get the vendor IDs of the phone.\n");
|
||||||
printf("\nstation-id: Give 7 digit station-id, you don't need to enter it for every\n");
|
printf("\nstation-id: Give 7 digit station-id, you don't need to enter it for every\n");
|
||||||
printf(" start of this program.\n");
|
printf(" start of this program.\n");
|
||||||
|
printf("\nPress 'i' key for dumping currently attached subscribers.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
static int handle_options(int argc, char **argv)
|
static int handle_options(int argc, char **argv)
|
||||||
|
@@ -39,3 +39,5 @@ void sighandler(int sigset);
|
|||||||
|
|
||||||
void main_loop(int *quit, int latency, int interval, void (*myhandler)(void));
|
void main_loop(int *quit, int latency, int interval, void (*myhandler)(void));
|
||||||
|
|
||||||
|
void dump_info(void);
|
||||||
|
|
||||||
|
@@ -329,6 +329,10 @@ next_char:
|
|||||||
/* toggle display */
|
/* toggle display */
|
||||||
display_wave_on(-1);
|
display_wave_on(-1);
|
||||||
goto next_char;
|
goto next_char;
|
||||||
|
case 'i':
|
||||||
|
/* dump info */
|
||||||
|
dump_info();
|
||||||
|
goto next_char;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* process audio of built-in call control */
|
/* process audio of built-in call control */
|
||||||
|
@@ -1833,4 +1833,5 @@ inval:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void dump_info(void) {}
|
||||||
|
|
||||||
|
@@ -5,4 +5,4 @@ void call_out_disconnect() { }
|
|||||||
void print_help() { }
|
void print_help() { }
|
||||||
void sender_send() { }
|
void sender_send() { }
|
||||||
void sender_receive() { }
|
void sender_receive() { }
|
||||||
|
void dump_info() {}
|
||||||
|
Reference in New Issue
Block a user