[asterisk-commits] tilghman: branch 1.6.2 r303858 - /branches/1.6.2/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jan 25 12:41:31 CST 2011


Author: tilghman
Date: Tue Jan 25 12:41:26 2011
New Revision: 303858

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=303858
Log:
Fix "sip show user <tab>", so that it actually shows results, instead of just completing the last entry.

(closes issue #16675)
Reported by: pj

Modified:
    branches/1.6.2/channels/chan_sip.c

Modified: branches/1.6.2/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/channels/chan_sip.c?view=diff&rev=303858&r1=303857&r2=303858
==============================================================================
--- branches/1.6.2/channels/chan_sip.c (original)
+++ branches/1.6.2/channels/chan_sip.c Tue Jan 25 12:41:26 2011
@@ -15859,6 +15859,9 @@
 		}
 		ao2_unlock(user);
 		unref_peer(user, "complete sip user");
+		if (result) {
+			break;
+		}
 	}
 	ao2_iterator_destroy(&user_iter);
 	return result;




More information about the asterisk-commits mailing list