[asterisk-commits] mnicholson: trunk r278462 - /trunk/res/res_fax_spandsp.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 21 10:54:33 CDT 2010


Author: mnicholson
Date: Wed Jul 21 10:54:29 2010
New Revision: 278462

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=278462
Log:
Properly show the current page being transfered for 'fax show session'

Modified:
    trunk/res/res_fax_spandsp.c

Modified: trunk/res/res_fax_spandsp.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_fax_spandsp.c?view=diff&rev=278462&r1=278461&r2=278462
==============================================================================
--- trunk/res/res_fax_spandsp.c (original)
+++ trunk/res/res_fax_spandsp.c Wed Jul 21 10:54:29 2010
@@ -675,9 +675,9 @@
 		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);
 




More information about the asterisk-commits mailing list