]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Tab completion when removing a member should give the member's interface,
authorMark Michelson <mmichelson@digium.com>
Wed, 4 Jun 2008 14:11:12 +0000 (14:11 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 4 Jun 2008 14:11:12 +0000 (14:11 +0000)
not the name, since the interface is what is expected for the command.

(closes issue #12783)
Reported by: davevg

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

apps/app_queue.c

index 6830745d72fe3c8378b73fcd4169177bb664f76a..18b2cd9f9d2a6b0aba2c30f0ed8e67f64cc3f166 100644 (file)
@@ -4815,7 +4815,7 @@ static char *complete_queue_remove_member(const char *line, const char *word, in
                                if (++which > state) {
                                        char *tmp;
                                        ast_mutex_unlock(&q->lock);
-                                       tmp = m->membername;
+                                       tmp = m->interface;
                                        ao2_ref(m, -1);
                                        return ast_strdup(tmp);
                                }