diff --git a/apps/app_queue.c b/apps/app_queue.c index b6d857be0c..b13dc78131 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,