[asterisk-commits] irroot: branch irroot/distrotech-customers-1.8 r336165 - /team/irroot/distrot...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Sep 16 05:02:23 CDT 2011
Author: irroot
Date: Fri Sep 16 05:02:21 2011
New Revision: 336165
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=336165
Log:
Update Queue CDR patch RB1266 use ast_cdr_append while locking the channel
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=336165&r1=336164&r2=336165
==============================================================================
--- team/irroot/distrotech-customers-1.8/apps/app_queue.c (original)
+++ team/irroot/distrotech-customers-1.8/apps/app_queue.c Fri Sep 16 05:02:21 2011
@@ -5088,8 +5088,10 @@
if ((newcdr = ast_cdr_dup(cdr))) {
ast_cdr_init(newcdr, qe->chan);
ast_cdr_reset(newcdr, 0);
- cdr->next = newcdr;
+ ast_lock_channel(qe->chan);
+ cdr = ast_cdr_append(cdr, newcdr);
cdr = cdr->next;
+ ast_unlock_channel(qe->chan);
}
}
ast_copy_string(cdr->dstchannel, member->membername, sizeof(cdr->dstchannel));
More information about the asterisk-commits
mailing list