mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
app_queue: indicate the paused state of a dynamically added member in queue_log.
Fixes: #1021
(cherry picked from commit 38ef522fd2
)
This commit is contained in:
committed by
Asterisk Development Team
parent
c17dd59d63
commit
effb2f3af3
@@ -8536,9 +8536,9 @@ static int aqm_exec(struct ast_channel *chan, const char *data)
|
||||
switch (add_to_queue(args.queuename, args.interface, args.membername, penalty, paused, queue_persistent_members, args.state_interface, reason, wrapuptime)) {
|
||||
case RES_OKAY:
|
||||
if (ast_strlen_zero(args.membername) || !log_membername_as_agent) {
|
||||
ast_queue_log(args.queuename, ast_channel_uniqueid(chan), args.interface, "ADDMEMBER", "%s", "");
|
||||
ast_queue_log(args.queuename, ast_channel_uniqueid(chan), args.interface, "ADDMEMBER", "%s", paused ? "PAUSED" : "");
|
||||
} else {
|
||||
ast_queue_log(args.queuename, ast_channel_uniqueid(chan), args.membername, "ADDMEMBER", "%s", "");
|
||||
ast_queue_log(args.queuename, ast_channel_uniqueid(chan), args.membername, "ADDMEMBER", "%s", paused ? "PAUSED" : "");
|
||||
}
|
||||
ast_log(LOG_NOTICE, "Added interface '%s' to queue '%s'\n", args.interface, args.queuename);
|
||||
pbx_builtin_setvar_helper(chan, "AQMSTATUS", "ADDED");
|
||||
@@ -11204,9 +11204,9 @@ static char *handle_queue_add_member(struct ast_cli_entry *e, int cmd, struct as
|
||||
switch (add_to_queue(queuename, interface, membername, penalty, paused, queue_persistent_members, state_interface, reason, 0)) {
|
||||
case RES_OKAY:
|
||||
if (ast_strlen_zero(membername) || !log_membername_as_agent) {
|
||||
ast_queue_log(queuename, "CLI", interface, "ADDMEMBER", "%s", "");
|
||||
ast_queue_log(queuename, "CLI", interface, "ADDMEMBER", "%s", paused ? "PAUSED" : "");
|
||||
} else {
|
||||
ast_queue_log(queuename, "CLI", membername, "ADDMEMBER", "%s", "");
|
||||
ast_queue_log(queuename, "CLI", membername, "ADDMEMBER", "%s", paused ? "PAUSED" : "");
|
||||
}
|
||||
ast_cli(a->fd, "Added interface '%s' to queue '%s'\n", interface, queuename);
|
||||
return CLI_SUCCESS;
|
||||
|
Reference in New Issue
Block a user