From: Evandro César Arruda Date: Fri, 21 Aug 2020 05:05:57 +0000 (-0300) Subject: app_queue: Member lastpause time reseting X-Git-Tag: 17.8.0-rc1~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d135020f59d3c56b768bb72b2df1aea709aa19a;p=thirdparty%2Fasterisk.git 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 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index cfc27df5db..6d5d767bc4 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -3461,7 +3461,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,