aboutsummaryrefslogtreecommitdiffstats
path: root/pbx
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-22 14:07:14 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-22 14:07:14 +0000
commitf1dff2a0f6d15a17886864beb71efac63805c5c0 (patch)
tree9b93a8b47aec1c74d12fb6384b3af29f2eb6068c /pbx
parentf22fed5270a805a337cd9c9e7802cc1facaa9106 (diff)
Merged revisions 86661 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r86661 | file | 2007-10-22 11:05:26 -0300 (Mon, 22 Oct 2007) | 6 lines Fix tab completion for dundi show peer. (closes issue #11041) Reported by: jsmith Patches: asterisk-dundicomplete.diff.txt uploaded by jamesgolovich (license 176) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86662 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rw-r--r--pbx/pbx_dundi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pbx/pbx_dundi.c b/pbx/pbx_dundi.c
index a03b7d511..989c07a92 100644
--- a/pbx/pbx_dundi.c
+++ b/pbx/pbx_dundi.c
@@ -2377,8 +2377,10 @@ static char *complete_peer_helper(const char *line, const char *word, int pos, i
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;