[asterisk-bugs] [Asterisk 0013379]: [patch] Mysql CDR logger should not DESC the table every time through.

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Aug 26 17:05:13 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13379 
====================================================================== 
Reported By:                Corydon76
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13379
Category:                   Addons/cdr_addon_mysql
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.0 
SVN Revision (number only!): 649 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-08-26 15:49 CDT
Last Modified:              2008-08-26 17:05 CDT
====================================================================== 
Summary:                    [patch] Mysql CDR logger should not DESC the table
every time through.
Description: 
On Tuesday 26 August 2008 14:28:40 Chris Maciejewski wrote:
> I have just noticed cdr_mysql (addons 1.6) before inserting a CDR
> record into MySQL table, runs "DECS(ribe) cdr" _EVERY_ time.
>
> Would it not be better to load table structure (fields mappings) from
> cdr_mysql.conf and run ONLY "INSERT ...." statement?
>
> It seems to me we are causing unnecessary load on MySQL server and
> slowing things down.
====================================================================== 

---------------------------------------------------------------------- 
 (0091767) chris-mac (reporter) - 2008-08-26 17:05
 http://bugs.digium.com/view.php?id=13379#c91767 
---------------------------------------------------------------------- 
I would like to test this code, but when patching addons 1.6.0 branch
(r651) I am getting the following error:

root at dev2:/usr/src/asterisk-addons-1.6.0# patch -p0 <
../20080826__cdr_mysql.diff.txt
patching file channels/chan_mobile.c
Hunk http://bugs.digium.com/view.php?id=1 succeeded at 558 (offset -10 lines).
Hunk http://bugs.digium.com/view.php?id=2 FAILED at 580.
Hunk http://bugs.digium.com/view.php?id=3 succeeded at 599 (offset -12 lines).
1 out of 3 hunks FAILED -- saving rejects to file
channels/chan_mobile.c.rej
patching file cdr/cdr_addon_mysql.c

Could you please let me know, how should I apply this patch?

Regards,
Chris 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-08-26 17:05 chris-mac      Note Added: 0091767                          
======================================================================




More information about the asterisk-bugs mailing list