mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user