[asterisk-commits] rizzo: branch rizzo/astobj2 r47942 - /team/rizzo/astobj2/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Nov 22 14:16:21 MST 2006


Author: rizzo
Date: Wed Nov 22 15:16:21 2006
New Revision: 47942

URL: http://svn.digium.com/view/asterisk?view=rev&rev=47942
Log:
whoops, swapped the headers a few days ago.
Note that cseq is a 32-bit int that doesn't fit well on 5 digits.


Modified:
    team/rizzo/astobj2/channels/chan_sip.c

Modified: team/rizzo/astobj2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/rizzo/astobj2/channels/chan_sip.c?view=diff&rev=47942&r1=47941&r2=47942
==============================================================================
--- team/rizzo/astobj2/channels/chan_sip.c (original)
+++ team/rizzo/astobj2/channels/chan_sip.c Wed Nov 22 15:16:21 2006
@@ -10839,7 +10839,7 @@
 		ast_cli(arg->fd, FORMAT, ast_inet_ntoa(dst->sin_addr), 
 			S_OR(cur->username, S_OR(cur->cid_num, "(None)")),
 			cur->callid, 
-			cur->ocseq, cur->icseq, 
+			cur->ocseq, cur->icseq, 	/* XXX note, these are uint32, do not fit well in 5 digits */
 			ast_getformatname(cur->owner ? cur->owner->nativeformats : 0), 
 			ast_test_flag(&cur->flags[1], SIP_PAGE2_CALL_ONHOLD) ? "Yes" : "No",
 			test_destroy(cur) ? "(d)" : "",
@@ -10883,7 +10883,7 @@
 	if (a->argc != e->args)
 		return CLI_SHOWUSAGE;
 	arg.subscriptions = !strcasecmp(a->argv[e->args - 1], "subscriptions");
-	if (arg.subscriptions)
+	if (!arg.subscriptions)
 		ast_cli(arg.fd, FORMAT2, "Peer", "User/ANR", "Call ID", "Seq (Tx/Rx)", "Format", "Hold", "Last Message");
 	else 
 		ast_cli(arg.fd, FORMAT3, "Peer", "User", "Call ID", "Extension", "Last state", "Type", "Mailbox");



More information about the asterisk-commits mailing list