mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-02 10:22:46 +00:00
Merge "app_queue.c: Fix clearing of pause reason string." into 13
This commit is contained in:
@@ -7199,12 +7199,10 @@ static void set_queue_member_pause(struct call_queue *q, struct member *mem, con
|
||||
}
|
||||
|
||||
mem->paused = paused;
|
||||
if (paused) {
|
||||
if (!ast_strlen_zero(reason)) {
|
||||
if (paused && !ast_strlen_zero(reason)) {
|
||||
ast_copy_string(mem->reason_paused, reason, sizeof(mem->reason_paused));
|
||||
}
|
||||
} else {
|
||||
ast_copy_string(mem->reason_paused, "", sizeof(mem->reason_paused));
|
||||
mem->reason_paused[0] = '\0';
|
||||
}
|
||||
|
||||
ast_devstate_changed(mem->paused ? QUEUE_PAUSED_DEVSTATE : QUEUE_UNPAUSED_DEVSTATE,
|
||||
|
Reference in New Issue
Block a user