Merged revisions 114245 via svnmerge from
authorSean Bright <sean@malleable.com>
Fri, 18 Apr 2008 13:38:07 +0000 (13:38 +0000)
committerSean Bright <sean@malleable.com>
Fri, 18 Apr 2008 13:38:07 +0000 (13:38 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114245 | seanbright | 2008-04-18 09:33:32 -0400 (Fri, 18 Apr 2008) | 1 line

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114246 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 4c95c33..8a583f7 100644 (file)
@@ -14038,6 +14038,10 @@ static char *complete_sipch(const char *line, const char *word, int pos, int sta
        int wordlen = strlen(word);
        struct ao2_iterator i;
 
+       if (pos != 3) {
+               return NULL;
+       }
+
        i = ao2_iterator_init(dialogs, 0);
        
        while ((cur = ao2_t_iterator_next(&i, "iterate thru dialogs"))) {