app_queue: Member lastpause time reseting

This fixes the reseting members lastpause problem when realtime members is being used,
the function rt_handle_member_record was forcing the reset members lastpause because it
does not exist in realtime

ASTERISK-29034 #close

Change-Id: Ic9107e4456732a1f78412a32adb2ef87f5da40b5
changes/06/14806/2
Evandro César Arruda 5 years ago committed by Friendly Automation
parent 71ceefa75d
commit b2bd38a4f0

@ -3458,7 +3458,7 @@ static void rt_handle_member_record(struct call_queue *q, char *category, struct
ast_copy_string(m->rt_uniqueid, rt_uniqueid, sizeof(m->rt_uniqueid));
if (paused_str) {
m->paused = paused;
if (paused) {
if (paused && m->lastpause == 0) {
time(&m->lastpause); /* XXX: Should this come from realtime? */
}
ast_devstate_changed(m->paused ? QUEUE_PAUSED_DEVSTATE : QUEUE_UNPAUSED_DEVSTATE,

Loading…
Cancel
Save