aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-26 19:47:40 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-26 19:47:40 +0000
commit1c86b8857f46a38cd9f081fccf34bb42bbe0a2da (patch)
treef9c6b0b5b5bb3138bfa52ad45ce0910ad488f953 /channels/chan_sip.c
parent24e1605a2dc6e73b1776e0454804a7232fd0c7b4 (diff)
Issue #5954 revisited. Thanks rizzo.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8731 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 2ddf23e37..aa5c23f66 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -8671,7 +8671,7 @@ static int sip_show_history(int fd, int argc, char *argv[])
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 @@ void sip_dump_history(struct sip_pvt *dialog)
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);