]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_queue: Fix CLI "queue remove member" queue_log entry.
authorRichard Mudgett <rmudgett@digium.com>
Tue, 22 Oct 2013 19:03:02 +0000 (19:03 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 22 Oct 2013 19:03:02 +0000 (19:03 +0000)
commit5d783eff54a2008c117de1ba36c49eea6388a5cd
tree68319ea4bc521e494e3ac778621802cd659b3ca6
parentaa94b9c148d2d9227aa1d611d3bed15fecb0248f
app_queue: Fix CLI "queue remove member" queue_log entry.

The queue_log entry resulting from CLI "queue remove member" when
log_membername_as_agent is enabled is wrong.  It always uses the interface
name instead of the member name in the queue_log entry.

* Get the queue member before removing it from the queue so the member
name is available for the queue_log entry.

(closes issue ASTERISK-21826)
Reported by: Oscar Esteve
Patches:
      fix_membername.diff (license #6505) patch uploaded by Oscar Esteve
         (modified to fix potential ref leak)
........

Merged revisions 401433 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@401434 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_queue.c