diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-22 14:05:26 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-22 14:05:26 +0000 |
commit | 7253b5001c66b5fcfac9a346e88e14493d3bc778 (patch) | |
tree | 60bfbf713d811801e0fb22177bedb6f665cf1ae2 /pbx | |
parent | 9760c92f4360dd0b8c49ff909ac90790a8072702 (diff) |
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/branches/1.4@86661 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rw-r--r-- | pbx/pbx_dundi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pbx/pbx_dundi.c b/pbx/pbx_dundi.c index 0b8a68175..4e35951f8 100644 --- a/pbx/pbx_dundi.c +++ b/pbx/pbx_dundi.c @@ -2296,8 +2296,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; |