[asterisk-commits] irroot: branch irroot/distrotech-customers-1.8 r333497 - /team/irroot/distrot...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat Aug 27 10:21:54 CDT 2011
Author: irroot
Date: Sat Aug 27 10:21:49 2011
New Revision: 333497
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=333497
Log:
Change app_queue find_member_by_queuename_and_interface
Backport broke things bit OBJ_KEY not in 1.8
Modified:
team/irroot/distrotech-customers-1.8/apps/app_queue.c
Modified: team/irroot/distrotech-customers-1.8/apps/app_queue.c
URL: http://svnview.digium.com/svn/asterisk/team/irroot/distrotech-customers-1.8/apps/app_queue.c?view=diff&rev=333497&r1=333496&r2=333497
==============================================================================
--- team/irroot/distrotech-customers-1.8/apps/app_queue.c (original)
+++ team/irroot/distrotech-customers-1.8/apps/app_queue.c Sat Aug 27 10:21:49 2011
@@ -8670,12 +8670,15 @@
*/
static struct member *find_member_by_queuename_and_interface(const char *queuename, const char *interface)
{
- struct member *mem = NULL;
+ struct member tmpmem, *mem = NULL;
struct call_queue *q;
+ ast_copy_string(tmpmem.interface, interface, sizeof(tmpmem.interface));
if ((q = load_realtime_queue(queuename))) {
ao2_lock(q);
- mem = ao2_find(q->members, interface, OBJ_KEY);
+ if ((mem = ao2_find(q->members, &tmpmem, OBJ_POINTER))) {
+ ao2_ref(mem, -1);
+ }
ao2_unlock(q);
queue_t_unref(q, "Expiring temporary reference.");
}
More information about the asterisk-commits
mailing list