mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
Properly show the current page being transfered for 'fax show session'
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@278462 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -675,9 +675,9 @@ static char *spandsp_fax_cli_show_session(struct ast_fax_session *s, int fd)
|
||||
ast_cli(fd, "%-22s : %d\n", "Data Rate", stats.bit_rate);
|
||||
ast_cli(fd, "%-22s : %dx%d\n", "Image Resolution", stats.x_resolution, stats.y_resolution);
|
||||
#if SPANDSP_RELEASE_DATE >= 20090220
|
||||
ast_cli(fd, "%-22s : %d\n", "Page Number", (s->details->caps & AST_FAX_TECH_RECEIVE) ? stats.pages_rx : stats.pages_tx);
|
||||
ast_cli(fd, "%-22s : %d\n", "Page Number", ((s->details->caps & AST_FAX_TECH_RECEIVE) ? stats.pages_rx : stats.pages_tx) + 1);
|
||||
#else
|
||||
ast_cli(fd, "%-22s : %d\n", "Page Number", stats.pages_transferred);
|
||||
ast_cli(fd, "%-22s : %d\n", "Page Number", stats.pages_transferred + 1);
|
||||
#endif
|
||||
ast_cli(fd, "%-22s : %s\n", "File Name", s->details->caps & AST_FAX_TECH_RECEIVE ? p->t30_state->rx_file : p->t30_state->tx_file);
|
||||
|
||||
|
Reference in New Issue
Block a user