[asterisk-commits] irroot: branch irroot/distrotech-customers-10 r336163 - /team/irroot/distrote...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Sep 16 05:01:34 CDT 2011


Author: irroot
Date: Fri Sep 16 05:01:32 2011
New Revision: 336163

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=336163
Log:
Update Queue CDR patch RB1266 use ast_cdr_append while locking the channel

Modified:
    team/irroot/distrotech-customers-10/apps/app_queue.c

Modified: team/irroot/distrotech-customers-10/apps/app_queue.c
URL: http://svnview.digium.com/svn/asterisk/team/irroot/distrotech-customers-10/apps/app_queue.c?view=diff&rev=336163&r1=336162&r2=336163
==============================================================================
--- team/irroot/distrotech-customers-10/apps/app_queue.c (original)
+++ team/irroot/distrotech-customers-10/apps/app_queue.c Fri Sep 16 05:01:32 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