[asterisk-commits] file: branch 1.4 r86661 - /branches/1.4/pbx/pbx_dundi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Oct 22 09:05:26 CDT 2007


Author: file
Date: Mon Oct 22 09:05:26 2007
New Revision: 86661

URL: http://svn.digium.com/view/asterisk?view=rev&rev=86661
Log:
Fix tab completion for dundi show peer.
(closes issue #11041)
Reported by: jsmith
Patches:
      asterisk-dundicomplete.diff.txt uploaded by jamesgolovich (license 176)

Modified:
    branches/1.4/pbx/pbx_dundi.c

Modified: branches/1.4/pbx/pbx_dundi.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/pbx/pbx_dundi.c?view=diff&rev=86661&r1=86660&r2=86661
==============================================================================
--- branches/1.4/pbx/pbx_dundi.c (original)
+++ branches/1.4/pbx/pbx_dundi.c Mon Oct 22 09:05:26 2007
@@ -2296,8 +2296,10 @@
 	len = strlen(word);
 	AST_LIST_TRAVERSE(&peers, p, list) {
 		const char *s = dundi_eid_to_str(eid_str, sizeof(eid_str), &p->eid);
-		if (!strncasecmp(word, s, len) && ++which > state)
+		if (!strncasecmp(word, s, len) && ++which > state) {
 			ret = ast_strdup(s);
+			break;
+		}
 	}
 	AST_LIST_UNLOCK(&peers);
 	return ret;




More information about the asterisk-commits mailing list