[asterisk-commits] trunk r8731 - /trunk/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Jan 26 12:47:43 MST 2006


Author: oej
Date: Thu Jan 26 13:47:40 2006
New Revision: 8731

URL: http://svn.digium.com/view/asterisk?rev=8731&view=rev
Log:
Issue #5954 revisited. Thanks rizzo.

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=8731&r1=8730&r2=8731&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Thu Jan 26 13:47:40 2006
@@ -8671,7 +8671,7 @@
 				ast_cli(fd, "  * SIP Call\n");
 			if (cur->history)
 				AST_LIST_TRAVERSE(cur->history, hist, list)
-					ast_cli(fd, "%d. %s\n", x++, hist->event);
+					ast_cli(fd, "%d. %s\n", ++x, hist->event);
 			if (x == 0)
 				ast_cli(fd, "Call '%s' has no history\n", cur->callid);
 			found++;
@@ -8700,7 +8700,7 @@
 		ast_log(LOG_DEBUG, "  * SIP Call\n");
 	if (dialog->history)
 		AST_LIST_TRAVERSE(dialog->history, hist, list)
-			ast_log(LOG_DEBUG, "  %d. %s\n", x++, hist->event);
+			ast_log(LOG_DEBUG, "  %d. %s\n", ++x, hist->event);
 	if (!x)
 		ast_log(LOG_DEBUG, "Call '%s' has no history\n", dialog->callid);
 	ast_log(LOG_DEBUG, "\n---------- END SIP HISTORY for '%s' \n", dialog->callid);



More information about the asterisk-commits mailing list