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
1.4
Sean Bright 18 years ago
parent 9f6634f7c1
commit da91e55eaf

@ -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) {

Loading…
Cancel
Save