diff options
author | mnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-21 15:54:29 +0000 |
---|---|---|
committer | mnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-21 15:54:29 +0000 |
commit | bc103f59bea66fa3a041fc4d15552dcb2fae7692 (patch) | |
tree | 1225c80400ce843a98baaa6242c9a9fe2bb5e881 /res/res_fax_spandsp.c | |
parent | aab8f2d6b659c81747dc7f4b69ac58a3d705e829 (diff) |
Properly show the current page being transfered for 'fax show session'
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@278462 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_fax_spandsp.c')
-rw-r--r-- | res/res_fax_spandsp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_fax_spandsp.c b/res/res_fax_spandsp.c index 3faf72267..6b2f103a7 100644 --- a/res/res_fax_spandsp.c +++ b/res/res_fax_spandsp.c @@ -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); |