Only complete the SIP channel name once for 'sip show channel <channel>'

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@114245 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Sean Bright
2008-04-18 13:33:32 +00:00
parent 9f6634f7c1
commit da91e55eaf

View File

@@ -10872,6 +10872,10 @@ static char *complete_sipch(const char *line, const char *word, int pos, int sta
char *c = NULL;
int wordlen = strlen(word);
if (pos != 3) {
return NULL;
}
ast_mutex_lock(&iflock);
for (cur = iflist; cur; cur = cur->next) {
if (!strncasecmp(word, cur->callid, wordlen) && ++which > state) {