[asterisk-bugs] [Asterisk 0010424]: Allow realtime members on non realtime queues/A member with priorty < 0 is logged out
noreply at bugs.digium.com
noreply at bugs.digium.com
Tue Aug 21 01:51:23 CDT 2007
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=10424
======================================================================
Reported By: irroot
Assigned To: putnopvut
======================================================================
Project: Asterisk
Issue ID: 10424
Category: Applications/app_queue
Reproducibility: N/A
Severity: trivial
Priority: normal
Status: assigned
Asterisk Version: 1.4.10
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 08-10-2007 02:18 CDT
Last Modified: 08-21-2007 01:51 CDT
======================================================================
Summary: Allow realtime members on non realtime queues/A
member with priorty < 0 is logged out
Description:
hi there some trivial patches extending on the recent changes (adding
update_realtime_members) it seems to make logic sence to allow realtime
agents on non realtime queues (ive been doing this for over a year
already).
ive also been setting the priorty field in SQL to a negitive value as
opposed to deleteing the agent to log them off and then back to there
existing value to log them on again.
======================================================================
----------------------------------------------------------------------
irroot - 08-21-07 01:51
----------------------------------------------------------------------
here is a little patchlet i use to log a user off ....
@@ -2855,6 +2944,19 @@
}
}
}
+
+ /*Change Penalty on realtime users*/
+ struct ast_variable
*rtdbid=ast_load_realtime("queue_members", "interface",
last_member->interface, "queue_name", q->name, NULL);
+ if (rtdbid) {
+ while(rtdbid) {
+ if
(!strcasecmp(rtdbid->name,"id"))
+ break;
+ rtdbid=rtdbid->next;
+ }
+ }
+ if (!ast_strlen_zero(rtdbid->value))
+ ast_update_realtime("queue_members",
"id",rtdbid->value, "penalty","-1", NULL);
+
manager_event(EVENT_FLAG_AGENT,
"QueueMemberRemoved",
"Queue: %s\r\n"
"Location: %s\r\n
it works by getting the id and updating the users penalty ... to log him
off ...
i have a autologout function requested by a customer ...
Issue History
Date Modified Username Field Change
======================================================================
08-21-07 01:51 irroot Note Added: 0069137
======================================================================
More information about the asterisk-bugs
mailing list