[asterisk-commits] file: branch group/sip-object-matching r178063 - /team/group/sip-object-match...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Feb 23 12:27:16 CST 2009


Author: file
Date: Mon Feb 23 12:27:16 2009
New Revision: 178063

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=178063
Log:
Don't let "sip show peer" display users.

Modified:
    team/group/sip-object-matching/channels/chan_sip.c

Modified: team/group/sip-object-matching/channels/chan_sip.c
URL: http://svn.digium.com/svn-view/asterisk/team/group/sip-object-matching/channels/chan_sip.c?view=diff&rev=178063&r1=178062&r2=178063
==============================================================================
--- team/group/sip-object-matching/channels/chan_sip.c (original)
+++ team/group/sip-object-matching/channels/chan_sip.c Mon Feb 23 12:27:16 2009
@@ -14307,6 +14307,11 @@
 
 	load_realtime = (argc == 5 && !strcmp(argv[4], "load")) ? TRUE : FALSE;
 	peer = find_peer(argv[3], NULL, load_realtime, FINDALLDEVICES, FALSE);
+
+	if (!(peer->type & SIP_TYPE_PEER)) {
+		peer = unref_peer(peer, "sip_show_peer: unref_peer: done with peer");
+	}
+
 	if (s) { 	/* Manager */
 		if (peer) {
 			const char *id = astman_get_header(m, "ActionID");




More information about the asterisk-commits mailing list