app_queue: Fix CLI "queue remove member" queue_log entry.
authorRichard Mudgett <rmudgett@digium.com>
Tue, 22 Oct 2013 19:04:53 +0000 (19:04 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 22 Oct 2013 19:04:53 +0000 (19:04 +0000)
commit4ae7a4b1bad98840171ab374aede43b16c9ac89b
tree023376a0b87ca870915322d668ceb5676f4e7b1f
parentd5db1f76f84f485bb0854b1ed986a04edf72e4c6
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
........

Merged revisions 401434 from http://svn.asterisk.org/svn/asterisk/branches/12

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