]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_queue.c: Fix setting QUEUE_MEMBER 'paused' and 'ringinuse'. 02/1102/2
authorRichard Mudgett <rmudgett@digium.com>
Fri, 14 Aug 2015 17:55:28 +0000 (12:55 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 18 Aug 2015 20:22:57 +0000 (15:22 -0500)
commit43150cc58d88a79017f930edff2ae8d62bb9bb79
tree85d76a9439f19565dc2f55cebfc1c320e62062af
parent644606161438f21297c985b7f50b7b49f0779476
app_queue.c: Fix setting QUEUE_MEMBER 'paused' and 'ringinuse'.

Setting the 'paused' and 'ringinuse' options on a queue member using the
dialplan function QUEUE_MEMBER did not behave the same way as the
equivalent dialplan applications or AMI actions.

* Made queue_function_mem_write() call the set_member_paused() and
set_member_value() for the 'paused' and 'ringinuse' options respectively.
A beneficial side effect is that the queue name is now optional and sets
the value in all queues the interface is a member.

NOTE: This may fix a consistency issue with the realtime paused setting
since how the value is set is controlled by set_member_paused() which
treats realtime a little better.

* Update QUEUE_MEMBER XML documentation.

* Fix error checking in QUEUE_MEMBER() write.

ASTERISK-25215 #close
Reported by: Lorne Gaetz

Change-Id: I3a016be8dc94d63a9cc155295ff9c9afa5f707cb
apps/app_queue.c