diff options
author | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-18 13:33:32 +0000 |
---|---|---|
committer | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-18 13:33:32 +0000 |
commit | cd5628309daabeb8589481e75ad9c91a0d24034a (patch) | |
tree | e88c112274c0a0a198e38dfa14a88daf095fbed8 | |
parent | 3507dc659a160147ff5bf748333ef2deb5a3575e (diff) |
Only complete the SIP channel name once for 'sip show channel <channel>'
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@114245 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_sip.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 0f1343877..9e7146a2e 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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) { |