]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_queue: update RT members when the 1st call joins a queue with no agents 93/1693/2
authorCarlos Oliva <carlos.oliva@invoxcontact.com>
Mon, 14 Dec 2015 12:26:35 +0000 (13:26 +0100)
committerCarlos Oliva <carlos.oliva@invoxcontact.com>
Mon, 14 Dec 2015 16:21:27 +0000 (17:21 +0100)
commit3e7522533c7f7e147f792614128cc375a89e02cf
tree055a17aedd1678d25b187941ab3b11fa3a9229fb
parentceebdfce40d278d17ecfb82afdffc41a8cc1cc94
app_queue: update RT members when the 1st call joins a queue with no agents

If a call enters on a queue and the members on that queue are updated in
realtime (ex: using mysql inserting a new agent) the queue members are
never refreshed and the call will stay in the queue until other event occurs.
This happens only if this is the first call of the queue and there is no
agents servicing.
This patch prevent this issue, ensuring realtime members are updated if
there is one call in the queue and no available agents

ASTERISK-25442 #close

Change-Id: If1e036d013a5c1d8b0bf60d71d48fe98694a8682
apps/app_queue.c